Gentoo Archives: gentoo-commits

From: "Peter Weller (welp)" <welp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/lighttpd: ChangeLog lighttpd-1.4.18-r1.ebuild
Date: Sun, 24 Feb 2008 16:34:11
Message-Id: E1JTJnk-0005xu-Ka@stork.gentoo.org
1 welp 08/02/24 16:34:08
2
3 Modified: ChangeLog
4 Added: lighttpd-1.4.18-r1.ebuild
5 Log:
6 Patch and revbump for security; bug 211230
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.152 www-servers/lighttpd/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.152&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.152&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/ChangeLog?r1=1.151&r2=1.152
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v
19 retrieving revision 1.151
20 retrieving revision 1.152
21 diff -u -r1.151 -r1.152
22 --- ChangeLog 12 Feb 2008 23:18:40 -0000 1.151
23 +++ ChangeLog 24 Feb 2008 16:34:08 -0000 1.152
24 @@ -1,6 +1,14 @@
25 # ChangeLog for www-servers/lighttpd
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.151 2008/02/12 23:18:40 bangert Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.152 2008/02/24 16:34:08 welp Exp $
29 +
30 +*lighttpd-1.4.18-r1 (24 Feb 2008)
31 +
32 + 24 Feb 2008; <welp@g.o>
33 + +files/1.4.18-r1/03_all_lighttpd-1.4.11-errorlog-pipe.diff,
34 + +files/1.4.18-r1/04_all_lighttpd-1.4.13-deprecated-ldap-api.diff,
35 + +files/1.4.18-r1/05_all_lighttpd-fix-DoS.diff, +lighttpd-1.4.18-r1.ebuild:
36 + Patch and revbump for security; bug 211230
37
38 12 Feb 2008; Thilo Bangert <bangert@g.o>
39 -files/lighttpd-1.3.10.initd, -files/lighttpd-1.3.11-gentoo.diff,
40
41
42
43 1.1 www-servers/lighttpd/lighttpd-1.4.18-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.18-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.18-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: lighttpd-1.4.18-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.18-r1.ebuild,v 1.1 2008/02/24 16:34:08 welp Exp $
53
54 WANT_AUTOCONF=latest
55 WANT_AUTOMAKE=latest
56 inherit eutils autotools depend.php
57
58 DESCRIPTION="Lightweight high-performance web server"
59 HOMEPAGE="http://www.lighttpd.net/"
60 SRC_URI="http://www.lighttpd.net/download/${P}.tar.bz2"
61
62 LICENSE="BSD"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
65 IUSE="bzip2 doc fam fastcgi gdbm ipv6 ldap lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr"
66
67 RDEPEND=">=sys-libs/zlib-1.1
68 bzip2? ( app-arch/bzip2 )
69 fam? ( virtual/fam )
70 gdbm? ( sys-libs/gdbm )
71 ldap? ( >=net-nds/openldap-2.1.26 )
72 lua? ( >=dev-lang/lua-5.1 )
73 memcache? ( dev-libs/libmemcache )
74 mysql? ( >=virtual/mysql-4.0 )
75 pcre? ( >=dev-libs/libpcre-3.1 )
76 php? ( virtual/httpd-php )
77 rrdtool? ( net-analyzer/rrdtool )
78 ssl? ( >=dev-libs/openssl-0.9.7 )
79 webdav? (
80 dev-libs/libxml2
81 >=dev-db/sqlite-3
82 sys-fs/e2fsprogs
83 )
84 xattr? ( kernel_linux? ( sys-apps/attr ) )"
85
86 DEPEND="${RDEPEND}
87 doc? ( dev-python/docutils )
88 test? (
89 virtual/perl-Test-Harness
90 dev-libs/fcgi
91 )"
92
93 # update certain parts of lighttpd.conf based on conditionals
94 update_config() {
95 local config="/etc/lighttpd/lighttpd.conf"
96
97 # enable php/mod_fastcgi settings
98 use php && \
99 dosed 's|#.*\(include.*fastcgi.*$\)|\1|' ${config}
100
101 # enable stat() caching
102 use fam && \
103 dosed 's|#\(.*stat-cache.*$\)|\1|' ${config}
104 }
105
106 # remove non-essential stuff (for USE=minimal)
107 remove_non_essential() {
108 local libdir="${D}/usr/$(get_libdir)/${PN}"
109
110 # text docs
111 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
112
113 # non-essential modules
114 rm -f \
115 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
116
117 # allow users to keep some based on USE flags
118 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
119 use webdav || rm -f ${libdir}/mod_webdav.*
120 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
121 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
122 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
123
124 if ! use fastcgi ; then
125 rm -f ${libdir}/mod_fastcgi.* "${D}"/usr/bin/spawn-fcgi \
126 "${D}"/usr/share/man/man1/spawn-fcgi.*
127 fi
128 }
129
130 pkg_setup() {
131 if ! use pcre ; then
132 ewarn "It is highly recommended that you build ${PN}"
133 ewarn "with perl regular expressions support via USE=pcre."
134 ewarn "Otherwise you lose support for some core options such"
135 ewarn "as conditionals and modules such as mod_re{write,direct}"
136 ewarn "and mod_ssi."
137 ebeep 5
138 fi
139
140 use php && require_php_with_use cgi
141
142 enewgroup lighttpd
143 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
144 }
145
146 src_unpack() {
147 unpack ${A}
148 cd "${S}"
149
150 EPATCH_SUFFIX="diff" EPATCH_OPTS="-l" epatch "${FILESDIR}"/"${PVR}" || die "Patching failed!"
151
152 eautoreconf || die
153
154 # dev-python/docutils installs rst2html.py not rst2html
155 sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.in || \
156 die "sed doc/Makefile.in failed"
157
158 # fix typo
159 sed -i -e 's|\(output_content\)_\(type\)|\1\2|' doc/cml.txt || \
160 die "sed doc/cml.txt failed"
161 }
162
163 src_compile() {
164 econf --libdir=/usr/$(get_libdir)/${PN} \
165 --enable-lfs \
166 $(use_enable ipv6) \
167 $(use_with bzip2) \
168 $(use_with fam) \
169 $(use_with gdbm) \
170 $(use_with lua) \
171 $(use_with ldap) \
172 $(use_with memcache) \
173 $(use_with mysql) \
174 $(use_with pcre) \
175 $(use_with ssl openssl) \
176 $(use_with webdav webdav-props) \
177 $(use_with webdav webdav-locks) \
178 $(use_with xattr attr) \
179 || die "econf failed"
180
181 emake || die "emake failed"
182
183 if use doc ; then
184 einfo "Building HTML documentation"
185 cd doc
186 emake html || die "failed to build HTML documentation"
187 fi
188 }
189
190 src_install() {
191 make DESTDIR="${D}" install || die "make install failed"
192
193 # init script stuff
194 newinitd "${FILESDIR}"/lighttpd.initd-1.4.13-r3 lighttpd || die
195 newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die
196 use fam && has_version app-admin/fam && \
197 sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd
198
199 if use php || use fastcgi ; then
200 newinitd "${FILESDIR}"/spawn-fcgi.initd spawn-fcgi || die
201 newconfd "${FILESDIR}"/spawn-fcgi.confd spawn-fcgi || die
202 fi
203
204 # configs
205 insinto /etc/lighttpd
206 doins "${FILESDIR}"/conf/lighttpd.conf
207 doins "${FILESDIR}"/conf/mime-types.conf
208 doins "${FILESDIR}"/conf/mod_cgi.conf
209 newins "${FILESDIR}"/conf/mod_fastcgi.conf-1.4.13-r2 mod_fastcgi.conf
210 # Secure directory for fastcgi sockets
211 keepdir /var/run/lighttpd/
212 fperms 0750 /var/run/lighttpd/
213 fowners lighttpd:lighttpd /var/run/lighttpd/
214
215 # update lighttpd.conf directives based on conditionals
216 update_config
217
218 # docs
219 dodoc AUTHORS README NEWS ChangeLog doc/*.sh
220 newdoc doc/lighttpd.conf lighttpd.conf.distrib
221
222 use doc && dohtml -r doc/*
223
224 docinto txt
225 dodoc doc/*.txt
226
227 # logrotate
228 insinto /etc/logrotate.d
229 newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die
230
231 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
232 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
233 fperms 0750 /var/l{ib,og}/lighttpd
234
235 use minimal && remove_non_essential
236 }
237
238 pkg_postinst () {
239 echo
240 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
241 einfo "spawn-fcgi is now included with lighttpd"
242 einfo "spawn-fcgi's init script configuration is now located"
243 einfo "at /etc/conf.d/spawn-fcgi."
244 echo
245 fi
246
247 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
248 ewarn "As of lighttpd-1.4.1, Gentoo has a customized configuration,"
249 ewarn "which is now located in /etc/lighttpd. Please migrate your"
250 ewarn "existing configuration."
251 ebeep 5
252 fi
253
254 if use fam ; then
255 einfo "Remember to re-emerge lighttpd should you switch from"
256 einfo "app-admin/famd to app-admin/gamin or vice versa."
257 fi
258 echo
259 }
260
261
262
263 --
264 gentoo-commits@l.g.o mailing list