Gentoo Archives: gentoo-commits

From: "Christian Ruppert (idl0r)" <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/lighttpd: lighttpd-1.4.29-r4.ebuild lighttpd-1.4.28-r4.ebuild lighttpd-1.4.28-r3.ebuild lighttpd-1.4.26-r2.ebuild lighttpd-1.4.30-r1.ebuild ChangeLog lighttpd-1.4.25-r2.ebuild lighttpd-1.4.23-r1.ebuild lighttpd-1.4.28-r5.ebuild lighttpd-1.4.25-r3.ebuild lighttpd-1.4.26.ebuild lighttpd-1.4.25.ebuild lighttpd-1.4.29-r3.ebuild lighttpd-1.4.28-r2.ebuild lighttpd-1.4.28-r1.ebuild lighttpd-1.4.26-r1.ebuild lighttpd-1.4.23.ebuild lighttpd-1.4.25-r1.ebuild lighttpd-1.4.28.ebuild lighttpd-1.4.30.ebuild
Date: Sun, 01 Jan 2012 00:03:57
Message-Id: 20120101000347.6650F2004C@flycatcher.gentoo.org
1 idl0r 12/01/01 00:03:47
2
3 Modified: ChangeLog
4 Added: lighttpd-1.4.29-r4.ebuild lighttpd-1.4.28-r4.ebuild
5 lighttpd-1.4.28-r3.ebuild lighttpd-1.4.26-r2.ebuild
6 lighttpd-1.4.30-r1.ebuild lighttpd-1.4.25-r2.ebuild
7 lighttpd-1.4.23-r1.ebuild lighttpd-1.4.28-r5.ebuild
8 lighttpd-1.4.25-r3.ebuild
9 Removed: lighttpd-1.4.26.ebuild lighttpd-1.4.25.ebuild
10 lighttpd-1.4.29-r3.ebuild lighttpd-1.4.28-r2.ebuild
11 lighttpd-1.4.28-r1.ebuild lighttpd-1.4.26-r1.ebuild
12 lighttpd-1.4.23.ebuild lighttpd-1.4.25-r1.ebuild
13 lighttpd-1.4.28.ebuild lighttpd-1.4.30.ebuild
14 Log:
15 Revbump. Don't use deprecated start-stop-daemon options and deprecated $opts variable, bug 395945.
16
17 (Portage version: 2.1.10.41/cvs/Linux i686, RepoMan options: --force)
18
19 Revision Changes Path
20 1.269 www-servers/lighttpd/ChangeLog
21
22 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.269&view=markup
23 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.269&content-type=text/plain
24 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/ChangeLog?r1=1.268&r2=1.269
25
26 Index: ChangeLog
27 ===================================================================
28 RCS file: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v
29 retrieving revision 1.268
30 retrieving revision 1.269
31 diff -u -r1.268 -r1.269
32 --- ChangeLog 27 Dec 2011 20:39:29 -0000 1.268
33 +++ ChangeLog 1 Jan 2012 00:03:46 -0000 1.269
34 @@ -1,6 +1,30 @@
35 # ChangeLog for www-servers/lighttpd
36 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
37 -# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.268 2011/12/27 20:39:29 jer Exp $
38 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
39 +# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.269 2012/01/01 00:03:46 idl0r Exp $
40 +
41 +*lighttpd-1.4.30-r1 (01 Jan 2012)
42 +*lighttpd-1.4.29-r4 (01 Jan 2012)
43 +*lighttpd-1.4.28-r5 (01 Jan 2012)
44 +*lighttpd-1.4.28-r4 (01 Jan 2012)
45 +*lighttpd-1.4.28-r3 (01 Jan 2012)
46 +*lighttpd-1.4.26-r2 (01 Jan 2012)
47 +*lighttpd-1.4.25-r3 (01 Jan 2012)
48 +*lighttpd-1.4.25-r2 (01 Jan 2012)
49 +*lighttpd-1.4.23-r1 (01 Jan 2012)
50 +
51 + 01 Jan 2012; Christian Ruppert <idl0r@g.o> -lighttpd-1.4.23.ebuild,
52 + +lighttpd-1.4.23-r1.ebuild, -lighttpd-1.4.25.ebuild,
53 + -lighttpd-1.4.25-r1.ebuild, +lighttpd-1.4.25-r2.ebuild,
54 + +lighttpd-1.4.25-r3.ebuild, -lighttpd-1.4.26.ebuild,
55 + -lighttpd-1.4.26-r1.ebuild, +lighttpd-1.4.26-r2.ebuild,
56 + -lighttpd-1.4.28.ebuild, -lighttpd-1.4.28-r1.ebuild,
57 + -lighttpd-1.4.28-r2.ebuild, +lighttpd-1.4.28-r3.ebuild,
58 + +lighttpd-1.4.28-r4.ebuild, +lighttpd-1.4.28-r5.ebuild,
59 + -lighttpd-1.4.29-r3.ebuild, +lighttpd-1.4.29-r4.ebuild,
60 + -lighttpd-1.4.30.ebuild, +lighttpd-1.4.30-r1.ebuild,
61 + files/lighttpd.initd-1.4.13-r3, files/lighttpd.initd:
62 + Revbump. Don't use deprecated start-stop-daemon options and deprecated $opts
63 + variable, bug 395945.
64
65 27 Dec 2011; Jeroen Roovers <jer@g.o> lighttpd-1.4.30.ebuild:
66 Stable for HPPA (bug #392581).
67
68
69
70 1.1 www-servers/lighttpd/lighttpd-1.4.29-r4.ebuild
71
72 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.29-r4.ebuild?rev=1.1&view=markup
73 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.29-r4.ebuild?rev=1.1&content-type=text/plain
74
75 Index: lighttpd-1.4.29-r4.ebuild
76 ===================================================================
77 # Copyright 1999-2012 Gentoo Foundation
78 # Distributed under the terms of the GNU General Public License v2
79 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.29-r4.ebuild,v 1.1 2012/01/01 00:03:46 idl0r Exp $
80
81 EAPI="4"
82
83 inherit base autotools eutils depend.php
84
85 DESCRIPTION="Lightweight high-performance web server"
86 HOMEPAGE="http://www.lighttpd.net/"
87 SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2"
88
89 LICENSE="BSD"
90 SLOT="0"
91 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ~ppc ~ppc64 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
92 IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev lua minimal memcache mysql pcre php rrdtool ssl test uploadprogress webdav xattr zlib"
93
94 REQUIRED_USE="kerberos? ( ssl )"
95
96 RDEPEND="
97 bzip2? ( app-arch/bzip2 )
98 fam? ( virtual/fam )
99 gdbm? ( sys-libs/gdbm )
100 ldap? ( >=net-nds/openldap-2.1.26 )
101 libev? ( >=dev-libs/libev-4.01 )
102 lua? ( >=dev-lang/lua-5.1 )
103 memcache? ( dev-libs/libmemcache )
104 mysql? ( >=virtual/mysql-4.0 )
105 pcre? ( >=dev-libs/libpcre-3.1 )
106 php? ( dev-lang/php[cgi] )
107 rrdtool? ( net-analyzer/rrdtool )
108 ssl? ( >=dev-libs/openssl-0.9.7[kerberos?] )
109 webdav? (
110 dev-libs/libxml2
111 >=dev-db/sqlite-3
112 sys-fs/e2fsprogs
113 )
114 xattr? ( kernel_linux? ( sys-apps/attr ) )
115 zlib? ( >=sys-libs/zlib-1.1 )"
116
117 DEPEND="${RDEPEND}
118 dev-util/pkgconfig
119 doc? ( dev-python/docutils )
120 test? (
121 virtual/perl-Test-Harness
122 dev-libs/fcgi
123 )"
124
125 # update certain parts of lighttpd.conf based on conditionals
126 update_config() {
127 local config="${D}/etc/lighttpd/lighttpd.conf"
128
129 # enable php/mod_fastcgi settings
130 use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; }
131
132 # enable stat() caching
133 use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; }
134
135 # automatically listen on IPv6 if built with USE=ipv6. Bug #234987
136 use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; }
137 }
138
139 # remove non-essential stuff (for USE=minimal)
140 remove_non_essential() {
141 local libdir="${D}/usr/$(get_libdir)/${PN}"
142
143 # text docs
144 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
145
146 # non-essential modules
147 rm -f \
148 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
149
150 # allow users to keep some based on USE flags
151 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
152 use webdav || rm -f ${libdir}/mod_webdav.*
153 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
154 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
155 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
156 use zlib || rm -f ${libdir}/mod_compress.*
157 }
158
159 pkg_setup() {
160 if ! use pcre ; then
161 ewarn "It is highly recommended that you build ${PN}"
162 ewarn "with perl regular expressions support via USE=pcre."
163 ewarn "Otherwise you lose support for some core options such"
164 ewarn "as conditionals and modules such as mod_re{write,direct}"
165 ewarn "and mod_ssi."
166 fi
167
168 enewgroup lighttpd
169 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
170 }
171
172 src_prepare() {
173 base_src_prepare
174 #dev-python/docutils installs rst2html.py not rst2html
175 sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \
176 die "sed doc/Makefile.am failed"
177 # Experimental patch for progress bar. Bug #380093
178 if use uploadprogress; then
179 epatch "${FILESDIR}"/${P}-mod_uploadprogress.patch
180 fi
181 epatch "${FILESDIR}"/${P}-ssl-no-ecdh.patch
182 eautoreconf
183 }
184 src_configure() {
185 econf --libdir=/usr/$(get_libdir)/${PN} \
186 --enable-lfs \
187 $(use_enable ipv6) \
188 $(use_with bzip2) \
189 $(use_with fam) \
190 $(use_with gdbm) \
191 $(use_with kerberos kerberos5) \
192 $(use_with ldap) \
193 $(use_with libev) \
194 $(use_with lua) \
195 $(use_with memcache) \
196 $(use_with mysql) \
197 $(use_with pcre) \
198 $(use_with ssl openssl) \
199 $(use_with webdav webdav-props) \
200 $(use_with webdav webdav-locks) \
201 $(use_with xattr attr) \
202 $(use_with zlib)
203 }
204
205 src_compile() {
206 emake || die "emake failed"
207
208 if use doc ; then
209 einfo "Building HTML documentation"
210 cd doc
211 emake html || die "failed to build HTML documentation"
212 fi
213 }
214
215 src_test() {
216 if [[ ${EUID} -eq 0 ]]; then
217 default_src_test
218 else
219 ewarn "test skipped, please re-run as root if you wish to test ${PN}"
220 fi
221 }
222
223 src_install() {
224 make DESTDIR="${D}" install || die "make install failed"
225
226 # init script stuff
227 newinitd "${FILESDIR}"/lighttpd.initd lighttpd || die
228 newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die
229 use fam && has_version app-admin/fam && \
230 sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd
231
232 # configs
233 insinto /etc/lighttpd
234 doins "${FILESDIR}"/conf/lighttpd.conf
235 doins "${FILESDIR}"/conf/mime-types.conf
236 doins "${FILESDIR}"/conf/mod_cgi.conf
237 doins "${FILESDIR}"/conf/mod_fastcgi.conf
238 # Secure directory for fastcgi sockets
239 keepdir /var/run/lighttpd/
240 fperms 0750 /var/run/lighttpd/
241 fowners lighttpd:lighttpd /var/run/lighttpd/
242
243 # update lighttpd.conf directives based on conditionals
244 update_config
245
246 # docs
247 dodoc AUTHORS README NEWS doc/scripts/*.sh
248 newdoc doc/config//lighttpd.conf lighttpd.conf.distrib
249
250 use doc && dohtml -r doc/*
251
252 docinto txt
253 dodoc doc/outdated/*.txt || die
254
255 # logrotate
256 insinto /etc/logrotate.d
257 newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die
258
259 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
260 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
261 fperms 0750 /var/l{ib,og}/lighttpd
262
263 #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
264 rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
265
266 use minimal && remove_non_essential
267 }
268
269 pkg_postinst () {
270 if use ipv6; then
271 elog "IPv6 migration guide:"
272 elog "http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config"
273 fi
274 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
275 einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
276 einfo "spawn-fcgi's init script configuration is now located"
277 einfo "at /etc/conf.d/spawn-fcgi."
278 fi
279
280 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
281 elog "Gentoo has a customized configuration,"
282 elog "which is now located in /etc/lighttpd. Please migrate your"
283 elog "existing configuration."
284 fi
285
286 if use uploadprogress; then
287 elog "WARNING! mod_uploadprogress is a backported module from the"
288 elog "1.5x-branch, which is not considered stable yet. Please go to"
289 elog "http://redmine.lighttpd.net/wiki/1/Docs:ModUploadProgress"
290 elog "for more information. This configuration also is NOT supported"
291 elog "by upstream, so please refrain from reporting bugs. You have"
292 elog "been warned!"
293 fi
294 }
295
296
297
298 1.1 www-servers/lighttpd/lighttpd-1.4.28-r4.ebuild
299
300 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.28-r4.ebuild?rev=1.1&view=markup
301 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.28-r4.ebuild?rev=1.1&content-type=text/plain
302
303 Index: lighttpd-1.4.28-r4.ebuild
304 ===================================================================
305 # Copyright 1999-2012 Gentoo Foundation
306 # Distributed under the terms of the GNU General Public License v2
307 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.28-r4.ebuild,v 1.1 2012/01/01 00:03:46 idl0r Exp $
308
309 EAPI="2"
310
311 inherit base eutils autotools depend.php
312
313 DESCRIPTION="Lightweight high-performance web server"
314 HOMEPAGE="http://www.lighttpd.net/"
315 SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2"
316
317 LICENSE="BSD"
318 SLOT="0"
319 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
320 IUSE="bzip2 doc fam gdbm ipv6 ldap libev lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr"
321
322 RDEPEND="
323 >=sys-libs/zlib-1.1
324 bzip2? ( app-arch/bzip2 )
325 fam? ( virtual/fam )
326 gdbm? ( sys-libs/gdbm )
327 ldap? ( >=net-nds/openldap-2.1.26 )
328 libev? ( >=dev-libs/libev-4.01 )
329 lua? ( >=dev-lang/lua-5.1 )
330 memcache? ( dev-libs/libmemcache )
331 mysql? ( >=virtual/mysql-4.0 )
332 pcre? ( >=dev-libs/libpcre-3.1 )
333 php? ( dev-lang/php[cgi] )
334 rrdtool? ( net-analyzer/rrdtool )
335 ssl? ( >=dev-libs/openssl-0.9.7 )
336 webdav? (
337 dev-libs/libxml2
338 >=dev-db/sqlite-3
339 sys-fs/e2fsprogs
340 )
341 xattr? ( kernel_linux? ( sys-apps/attr ) )"
342
343 DEPEND="${RDEPEND}
344 dev-util/pkgconfig
345 doc? ( dev-python/docutils )
346 test? (
347 virtual/perl-Test-Harness
348 dev-libs/fcgi
349 )"
350
351 # update certain parts of lighttpd.conf based on conditionals
352 update_config() {
353 local config="/etc/lighttpd/lighttpd.conf"
354
355 # enable php/mod_fastcgi settings
356 use php && \
357 dosed 's|#.*\(include.*fastcgi.*$\)|\1|' ${config}
358
359 # enable stat() caching
360 use fam && \
361 dosed 's|#\(.*stat-cache.*$\)|\1|' ${config}
362
363 # automatically listen on IPv6 if built with USE=ipv6. Bug #234987
364 use ipv6 && \
365 dosed 's|# server.use-ipv6|server.use-ipv6|' ${config}
366 }
367
368 # remove non-essential stuff (for USE=minimal)
369 remove_non_essential() {
370 local libdir="${D}/usr/$(get_libdir)/${PN}"
371
372 # text docs
373 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
374
375 # non-essential modules
376 rm -f \
377 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
378
379 # allow users to keep some based on USE flags
380 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
381 use webdav || rm -f ${libdir}/mod_webdav.*
382 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
383 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
384 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
385 }
386
387 pkg_setup() {
388 if ! use pcre ; then
389 ewarn "It is highly recommended that you build ${PN}"
390 ewarn "with perl regular expressions support via USE=pcre."
391 ewarn "Otherwise you lose support for some core options such"
392 ewarn "as conditionals and modules such as mod_re{write,direct}"
393 ewarn "and mod_ssi."
394 fi
395
396 enewgroup lighttpd
397 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
398 }
399
400 src_prepare() {
401 base_src_prepare
402 #dev-python/docutils installs rst2html.py not rst2html
403 sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \
404 die "sed doc/Makefile.am failed"
405 epatch "${FILESDIR}"/${P}-detect-libev.patch
406 eautoreconf
407 }
408
409 src_configure() {
410 econf --libdir=/usr/$(get_libdir)/${PN} \
411 --enable-lfs \
412 $(use_enable ipv6) \
413 $(use_with bzip2) \
414 $(use_with fam) \
415 $(use_with gdbm) \
416 $(use_with ldap) \
417 $(use_with libev) \
418 $(use_with lua) \
419 $(use_with memcache) \
420 $(use_with mysql) \
421 $(use_with pcre) \
422 $(use_with ssl openssl) \
423 $(use_with webdav webdav-props) \
424 $(use_with webdav webdav-locks) \
425 $(use_with xattr attr)
426 }
427
428 src_compile() {
429 emake || die "emake failed"
430
431 if use doc ; then
432 einfo "Building HTML documentation"
433 cd doc
434 emake html || die "failed to build HTML documentation"
435 fi
436 }
437
438 src_test() {
439 if [[ ${EUID} -eq 0 ]]; then
440 default_src_test
441 else
442 ewarn "test skipped, please re-run as root if you wish to test ${PN}"
443 fi
444 }
445
446 src_install() {
447 make DESTDIR="${D}" install || die "make install failed"
448
449 # init script stuff
450 newinitd "${FILESDIR}"/lighttpd.initd lighttpd || die
451 newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die
452 use fam && has_version app-admin/fam && \
453 sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd
454
455 # configs
456 insinto /etc/lighttpd
457 doins "${FILESDIR}"/conf/lighttpd.conf
458 doins "${FILESDIR}"/conf/mime-types.conf
459 doins "${FILESDIR}"/conf/mod_cgi.conf
460 doins "${FILESDIR}"/conf/mod_fastcgi.conf
461 # Secure directory for fastcgi sockets
462 keepdir /var/run/lighttpd/
463 fperms 0750 /var/run/lighttpd/
464 fowners lighttpd:lighttpd /var/run/lighttpd/
465
466 # update lighttpd.conf directives based on conditionals
467 update_config
468
469 # docs
470 dodoc AUTHORS README NEWS doc/scripts/*.sh
471 newdoc doc/config//lighttpd.conf lighttpd.conf.distrib
472
473 use doc && dohtml -r doc/*
474
475 docinto txt
476 dodoc doc/*.txt
477
478 # logrotate
479 insinto /etc/logrotate.d
480 newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die
481
482 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
483 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
484 fperms 0750 /var/l{ib,og}/lighttpd
485
486 #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
487 rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
488
489 use minimal && remove_non_essential
490 }
491
492 pkg_postinst () {
493 if use ipv6; then
494 elog "IPv6 migration guide:"
495 elog "http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config"
496 fi
497 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
498 einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
499 einfo "spawn-fcgi's init script configuration is now located"
500 einfo "at /etc/conf.d/spawn-fcgi."
501 fi
502
503 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
504 elog "Gentoo has a customized configuration,"
505 elog "which is now located in /etc/lighttpd. Please migrate your"
506 elog "existing configuration."
507 fi
508 }
509
510
511
512 1.1 www-servers/lighttpd/lighttpd-1.4.28-r3.ebuild
513
514 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.28-r3.ebuild?rev=1.1&view=markup
515 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.28-r3.ebuild?rev=1.1&content-type=text/plain
516
517 Index: lighttpd-1.4.28-r3.ebuild
518 ===================================================================
519 # Copyright 1999-2012 Gentoo Foundation
520 # Distributed under the terms of the GNU General Public License v2
521 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.28-r3.ebuild,v 1.1 2012/01/01 00:03:46 idl0r Exp $
522
523 EAPI="2"
524
525 inherit base eutils autotools depend.php
526
527 DESCRIPTION="Lightweight high-performance web server"
528 HOMEPAGE="http://www.lighttpd.net/"
529 SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2"
530
531 LICENSE="BSD"
532 SLOT="0"
533 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
534 IUSE="bzip2 doc fam gdbm ipv6 ldap libev lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr"
535
536 RDEPEND="
537 >=sys-libs/zlib-1.1
538 bzip2? ( app-arch/bzip2 )
539 fam? ( virtual/fam )
540 gdbm? ( sys-libs/gdbm )
541 ldap? ( >=net-nds/openldap-2.1.26 )
542 libev? ( dev-libs/libev )
543 lua? ( >=dev-lang/lua-5.1 )
544 memcache? ( dev-libs/libmemcache )
545 mysql? ( >=virtual/mysql-4.0 )
546 pcre? ( >=dev-libs/libpcre-3.1 )
547 php? ( dev-lang/php[cgi] )
548 rrdtool? ( net-analyzer/rrdtool )
549 ssl? ( >=dev-libs/openssl-0.9.7 )
550 webdav? (
551 dev-libs/libxml2
552 >=dev-db/sqlite-3
553 sys-fs/e2fsprogs
554 )
555 xattr? ( kernel_linux? ( sys-apps/attr ) )"
556
557 DEPEND="${RDEPEND}
558 dev-util/pkgconfig
559 doc? ( dev-python/docutils )
560 test? (
561 virtual/perl-Test-Harness
562 dev-libs/fcgi
563 )"
564
565 # update certain parts of lighttpd.conf based on conditionals
566 update_config() {
567 local config="/etc/lighttpd/lighttpd.conf"
568
569 # enable php/mod_fastcgi settings
570 use php && \
571 dosed 's|#.*\(include.*fastcgi.*$\)|\1|' ${config}
572
573 # enable stat() caching
574 use fam && \
575 dosed 's|#\(.*stat-cache.*$\)|\1|' ${config}
576
577 # automatically listen on IPv6 if built with USE=ipv6. Bug #234987
578 use ipv6 && \
579 dosed 's|# server.use-ipv6|server.use-ipv6|' ${config}
580 }
581
582 # remove non-essential stuff (for USE=minimal)
583 remove_non_essential() {
584 local libdir="${D}/usr/$(get_libdir)/${PN}"
585
586 # text docs
587 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
588
589 # non-essential modules
590 rm -f \
591 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
592
593 # allow users to keep some based on USE flags
594 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
595 use webdav || rm -f ${libdir}/mod_webdav.*
596 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
597 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
598 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
599 }
600
601 pkg_setup() {
602 if ! use pcre ; then
603 ewarn "It is highly recommended that you build ${PN}"
604 ewarn "with perl regular expressions support via USE=pcre."
605 ewarn "Otherwise you lose support for some core options such"
606 ewarn "as conditionals and modules such as mod_re{write,direct}"
607 ewarn "and mod_ssi."
608 fi
609
610 enewgroup lighttpd
611 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
612 }
613
614 src_prepare() {
615 base_src_prepare
616 #dev-python/docutils installs rst2html.py not rst2html
617 sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \
618 die "sed doc/Makefile.am failed"
619 eautoreconf
620 }
621
622 src_configure() {
623 econf --libdir=/usr/$(get_libdir)/${PN} \
624 --enable-lfs \
625 $(use_enable ipv6) \
626 $(use_with bzip2) \
627 $(use_with fam) \
628 $(use_with gdbm) \
629 $(use_with ldap) \
630 $(use_with libev) \
631 $(use_with lua) \
632 $(use_with memcache) \
633 $(use_with mysql) \
634 $(use_with pcre) \
635 $(use_with ssl openssl) \
636 $(use_with webdav webdav-props) \
637 $(use_with webdav webdav-locks) \
638 $(use_with xattr attr)
639 }
640
641 src_compile() {
642 emake || die "emake failed"
643
644 if use doc ; then
645 einfo "Building HTML documentation"
646 cd doc
647 emake html || die "failed to build HTML documentation"
648 fi
649 }
650
651 src_test() {
652 if [[ ${EUID} -eq 0 ]]; then
653 default_src_test
654 else
655 ewarn "test skipped, please re-run as root if you wish to test ${PN}"
656 fi
657 }
658
659 src_install() {
660 make DESTDIR="${D}" install || die "make install failed"
661
662 # init script stuff
663 newinitd "${FILESDIR}"/lighttpd.initd lighttpd || die
664 newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die
665 use fam && has_version app-admin/fam && \
666 sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd
667
668 # configs
669 insinto /etc/lighttpd
670 doins "${FILESDIR}"/conf/lighttpd.conf
671 doins "${FILESDIR}"/conf/mime-types.conf
672 doins "${FILESDIR}"/conf/mod_cgi.conf
673 doins "${FILESDIR}"/conf/mod_fastcgi.conf
674 # Secure directory for fastcgi sockets
675 keepdir /var/run/lighttpd/
676 fperms 0750 /var/run/lighttpd/
677 fowners lighttpd:lighttpd /var/run/lighttpd/
678
679 # update lighttpd.conf directives based on conditionals
680 update_config
681
682 # docs
683 dodoc AUTHORS README NEWS doc/scripts/*.sh
684 newdoc doc/config//lighttpd.conf lighttpd.conf.distrib
685
686 use doc && dohtml -r doc/*
687
688 docinto txt
689 dodoc doc/*.txt
690
691 # logrotate
692 insinto /etc/logrotate.d
693 newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die
694
695 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
696 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
697 fperms 0750 /var/l{ib,og}/lighttpd
698
699 #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
700 rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
701
702 use minimal && remove_non_essential
703 }
704
705 pkg_postinst () {
706 if use ipv6; then
707 elog "IPv6 migration guide:"
708 elog "http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config"
709 fi
710 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
711 einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
712 einfo "spawn-fcgi's init script configuration is now located"
713 einfo "at /etc/conf.d/spawn-fcgi."
714 fi
715
716 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
717 elog "Gentoo has a customized configuration,"
718 elog "which is now located in /etc/lighttpd. Please migrate your"
719 elog "existing configuration."
720 fi
721 }
722
723
724
725 1.1 www-servers/lighttpd/lighttpd-1.4.26-r2.ebuild
726
727 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.26-r2.ebuild?rev=1.1&view=markup
728 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.26-r2.ebuild?rev=1.1&content-type=text/plain
729
730 Index: lighttpd-1.4.26-r2.ebuild
731 ===================================================================
732 # Copyright 1999-2012 Gentoo Foundation
733 # Distributed under the terms of the GNU General Public License v2
734 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.26-r2.ebuild,v 1.1 2012/01/01 00:03:46 idl0r Exp $
735
736 EAPI="2"
737
738 inherit eutils autotools depend.php
739
740 DESCRIPTION="Lightweight high-performance web server"
741 HOMEPAGE="http://www.lighttpd.net/"
742 SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2"
743
744 LICENSE="BSD"
745 SLOT="0"
746 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
747 IUSE="bzip2 doc fam fastcgi gdbm ipv6 ldap lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr"
748
749 RDEPEND="
750 >=sys-libs/zlib-1.1
751 bzip2? ( app-arch/bzip2 )
752 fam? ( virtual/fam )
753 gdbm? ( sys-libs/gdbm )
754 ldap? ( >=net-nds/openldap-2.1.26 )
755 lua? ( >=dev-lang/lua-5.1 )
756 memcache? ( dev-libs/libmemcache )
757 mysql? ( >=virtual/mysql-4.0 )
758 pcre? ( >=dev-libs/libpcre-3.1 )
759 php? ( virtual/httpd-php )
760 rrdtool? ( net-analyzer/rrdtool )
761 ssl? ( >=dev-libs/openssl-0.9.7 )
762 webdav? (
763 dev-libs/libxml2
764 >=dev-db/sqlite-3
765 sys-fs/e2fsprogs
766 )
767 xattr? ( kernel_linux? ( sys-apps/attr ) )"
768
769 DEPEND="${RDEPEND}
770 dev-util/pkgconfig
771 doc? ( dev-python/docutils )
772 test? (
773 virtual/perl-Test-Harness
774 dev-libs/fcgi
775 )"
776
777 # update certain parts of lighttpd.conf based on conditionals
778 update_config() {
779 local config="/etc/lighttpd/lighttpd.conf"
780
781 # enable php/mod_fastcgi settings
782 use php && \
783 dosed 's|#.*\(include.*fastcgi.*$\)|\1|' ${config}
784
785 # enable stat() caching
786 use fam && \
787 dosed 's|#\(.*stat-cache.*$\)|\1|' ${config}
788 }
789
790 # remove non-essential stuff (for USE=minimal)
791 remove_non_essential() {
792 local libdir="${D}/usr/$(get_libdir)/${PN}"
793
794 # text docs
795 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
796
797 # non-essential modules
798 rm -f \
799 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
800
801 # allow users to keep some based on USE flags
802 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
803 use webdav || rm -f ${libdir}/mod_webdav.*
804 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
805 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
806 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
807
808 if ! use fastcgi ; then
809 rm -f ${libdir}/mod_fastcgi.*
810 fi
811 }
812
813 pkg_setup() {
814 if ! use pcre ; then
815 ewarn "It is highly recommended that you build ${PN}"
816 ewarn "with perl regular expressions support via USE=pcre."
817 ewarn "Otherwise you lose support for some core options such"
818 ewarn "as conditionals and modules such as mod_re{write,direct}"
819 ewarn "and mod_ssi."
820 ebeep 5
821 fi
822
823 use php && require_php_with_use cgi
824
825 enewgroup lighttpd
826 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
827 }
828
829 src_prepare() {
830 # dev-python/docutils installs rst2html.py not rst2html
831 sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \
832 die "sed doc/Makefile.am failed"
833
834 epatch "${FILESDIR}/1.4.26-fix-ssl-return-check-r2716.patch"
835 eautoreconf
836 }
837
838 src_configure() {
839 econf --libdir=/usr/$(get_libdir)/${PN} \
840 --enable-lfs \
841 $(use_enable ipv6) \
842 $(use_with bzip2) \
843 $(use_with fam) \
844 $(use_with gdbm) \
845 $(use_with lua) \
846 $(use_with ldap) \
847 $(use_with memcache) \
848 $(use_with mysql) \
849 $(use_with pcre) \
850 $(use_with ssl openssl) \
851 $(use_with webdav webdav-props) \
852 $(use_with webdav webdav-locks) \
853 $(use_with xattr attr)
854 }
855
856 src_compile() {
857 emake || die "emake failed"
858
859 if use doc ; then
860 einfo "Building HTML documentation"
861 cd doc
862 emake html || die "failed to build HTML documentation"
863 fi
864 }
865
866 src_test() {
867 if [[ ${EUID} -eq 0 ]]; then
868 default_src_test
869 else
870 ewarn "test skipped, please re-run as root if you wish to test ${PN}"
871 fi
872 }
873
874 src_install() {
875 make DESTDIR="${D}" install || die "make install failed"
876
877 # init script stuff
878 newinitd "${FILESDIR}"/lighttpd.initd lighttpd || die
879 newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die
880 use fam && has_version app-admin/fam && \
881 sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd
882
883 # configs
884 insinto /etc/lighttpd
885 doins "${FILESDIR}"/conf/lighttpd.conf
886 doins "${FILESDIR}"/conf/mime-types.conf
887 doins "${FILESDIR}"/conf/mod_cgi.conf
888 doins "${FILESDIR}"/conf/mod_fastcgi.conf
889 # Secure directory for fastcgi sockets
890 keepdir /var/run/lighttpd/
891 fperms 0750 /var/run/lighttpd/
892 fowners lighttpd:lighttpd /var/run/lighttpd/
893
894 # update lighttpd.conf directives based on conditionals
895 update_config
896
897 # docs
898 dodoc AUTHORS README NEWS doc/*.sh
899 newdoc doc/lighttpd.conf lighttpd.conf.distrib
900
901 use doc && dohtml -r doc/*
902
903 docinto txt
904 dodoc doc/*.txt
905
906 # logrotate
907 insinto /etc/logrotate.d
908 newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die
909
910 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
911 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
912 fperms 0750 /var/l{ib,og}/lighttpd
913
914 #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
915 rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
916
917 use minimal && remove_non_essential
918 }
919
920 pkg_postinst () {
921 echo
922 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
923 einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
924 einfo "spawn-fcgi's init script configuration is now located"
925 einfo "at /etc/conf.d/spawn-fcgi."
926 echo
927 fi
928
929 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
930 ewarn "Gentoo has a customized configuration,"
931 ewarn "which is now located in /etc/lighttpd. Please migrate your"
932 ewarn "existing configuration."
933 ebeep 5
934 fi
935
936 if use fastcgi; then
937 ewarn "As of lighttpd-1.4.22, spawn-fcgi is provided by the separate"
938 ewarn "www-servers/spawn-fcgi package. Please install it manually, if"
939 ewarn "you use spawn-fcgi."
940 ewarn "It features a new, more featurefull init script - please migrate"
941 ewarn "your configuration!"
942 fi
943 }
944
945
946
947 1.1 www-servers/lighttpd/lighttpd-1.4.30-r1.ebuild
948
949 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.30-r1.ebuild?rev=1.1&view=markup
950 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.30-r1.ebuild?rev=1.1&content-type=text/plain
951
952 Index: lighttpd-1.4.30-r1.ebuild
953 ===================================================================
954 # Copyright 1999-2012 Gentoo Foundation
955 # Distributed under the terms of the GNU General Public License v2
956 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.30-r1.ebuild,v 1.1 2012/01/01 00:03:46 idl0r Exp $
957
958 EAPI="4"
959
960 inherit base autotools eutils depend.php
961
962 DESCRIPTION="Lightweight high-performance web server"
963 HOMEPAGE="http://www.lighttpd.net/"
964 SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2"
965
966 LICENSE="BSD"
967 SLOT="0"
968 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
969 IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev lua minimal memcache mysql pcre php rrdtool ssl test uploadprogress webdav xattr zlib"
970
971 REQUIRED_USE="kerberos? ( ssl )"
972
973 RDEPEND="
974 bzip2? ( app-arch/bzip2 )
975 fam? ( virtual/fam )
976 gdbm? ( sys-libs/gdbm )
977 ldap? ( >=net-nds/openldap-2.1.26 )
978 libev? ( >=dev-libs/libev-4.01 )
979 lua? ( >=dev-lang/lua-5.1 )
980 memcache? ( dev-libs/libmemcache )
981 mysql? ( >=virtual/mysql-4.0 )
982 pcre? ( >=dev-libs/libpcre-3.1 )
983 php? ( dev-lang/php[cgi] )
984 rrdtool? ( net-analyzer/rrdtool )
985 ssl? ( >=dev-libs/openssl-0.9.7[kerberos?] )
986 webdav? (
987 dev-libs/libxml2
988 >=dev-db/sqlite-3
989 sys-fs/e2fsprogs
990 )
991 xattr? ( kernel_linux? ( sys-apps/attr ) )
992 zlib? ( >=sys-libs/zlib-1.1 )"
993
994 DEPEND="${RDEPEND}
995 dev-util/pkgconfig
996 doc? ( dev-python/docutils )
997 test? (
998 virtual/perl-Test-Harness
999 dev-libs/fcgi
1000 )"
1001
1002 # update certain parts of lighttpd.conf based on conditionals
1003 update_config() {
1004 local config="${D}/etc/lighttpd/lighttpd.conf"
1005
1006 # enable php/mod_fastcgi settings
1007 use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; }
1008
1009 # enable stat() caching
1010 use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; }
1011
1012 # automatically listen on IPv6 if built with USE=ipv6. Bug #234987
1013 use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; }
1014 }
1015
1016 # remove non-essential stuff (for USE=minimal)
1017 remove_non_essential() {
1018 local libdir="${D}/usr/$(get_libdir)/${PN}"
1019
1020 # text docs
1021 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
1022
1023 # non-essential modules
1024 rm -f \
1025 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
1026
1027 # allow users to keep some based on USE flags
1028 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
1029 use webdav || rm -f ${libdir}/mod_webdav.*
1030 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
1031 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
1032 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
1033 use zlib || rm -f ${libdir}/mod_compress.*
1034 }
1035
1036 pkg_setup() {
1037 if ! use pcre ; then
1038 ewarn "It is highly recommended that you build ${PN}"
1039 ewarn "with perl regular expressions support via USE=pcre."
1040 ewarn "Otherwise you lose support for some core options such"
1041 ewarn "as conditionals and modules such as mod_re{write,direct}"
1042 ewarn "and mod_ssi."
1043 fi
1044
1045 enewgroup lighttpd
1046 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
1047 }
1048
1049 src_prepare() {
1050 base_src_prepare
1051 #dev-python/docutils installs rst2html.py not rst2html
1052 sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \
1053 die "sed doc/Makefile.am failed"
1054 # Experimental patch for progress bar. Bug #380093
1055 if use uploadprogress; then
1056 epatch "${FILESDIR}"/${PN}-1.4.29-mod_uploadprogress.patch
1057 fi
1058 eautoreconf
1059 }
1060 src_configure() {
1061 econf --libdir=/usr/$(get_libdir)/${PN} \
1062 --enable-lfs \
1063 $(use_enable ipv6) \
1064 $(use_with bzip2) \
1065 $(use_with fam) \
1066 $(use_with gdbm) \
1067 $(use_with kerberos kerberos5) \
1068 $(use_with ldap) \
1069 $(use_with libev) \
1070 $(use_with lua) \
1071 $(use_with memcache) \
1072 $(use_with mysql) \
1073 $(use_with pcre) \
1074 $(use_with ssl openssl) \
1075 $(use_with webdav webdav-props) \
1076 $(use_with webdav webdav-locks) \
1077 $(use_with xattr attr) \
1078 $(use_with zlib)
1079 }
1080
1081 src_compile() {
1082 emake || die "emake failed"
1083
1084 if use doc ; then
1085 einfo "Building HTML documentation"
1086 cd doc
1087 emake html || die "failed to build HTML documentation"
1088 fi
1089 }
1090
1091 src_test() {
1092 if [[ ${EUID} -eq 0 ]]; then
1093 default_src_test
1094 else
1095 ewarn "test skipped, please re-run as root if you wish to test ${PN}"
1096 fi
1097 }
1098
1099 src_install() {
1100 make DESTDIR="${D}" install || die "make install failed"
1101
1102 # init script stuff
1103 newinitd "${FILESDIR}"/lighttpd.initd lighttpd || die
1104 newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die
1105 use fam && has_version app-admin/fam && \
1106 sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd
1107
1108 # configs
1109 insinto /etc/lighttpd
1110 doins "${FILESDIR}"/conf/lighttpd.conf
1111 doins "${FILESDIR}"/conf/mime-types.conf
1112 doins "${FILESDIR}"/conf/mod_cgi.conf
1113 doins "${FILESDIR}"/conf/mod_fastcgi.conf
1114 # Secure directory for fastcgi sockets
1115 keepdir /var/run/lighttpd/
1116 fperms 0750 /var/run/lighttpd/
1117 fowners lighttpd:lighttpd /var/run/lighttpd/
1118
1119 # update lighttpd.conf directives based on conditionals
1120 update_config
1121
1122 # docs
1123 dodoc AUTHORS README NEWS doc/scripts/*.sh
1124 newdoc doc/config//lighttpd.conf lighttpd.conf.distrib
1125
1126 use doc && dohtml -r doc/*
1127
1128 docinto txt
1129 dodoc doc/outdated/*.txt || die
1130
1131 # logrotate
1132 insinto /etc/logrotate.d
1133 newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die
1134
1135 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
1136 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
1137 fperms 0750 /var/l{ib,og}/lighttpd
1138
1139 #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
1140 rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
1141
1142 use minimal && remove_non_essential
1143 }
1144
1145 pkg_postinst () {
1146 if use ipv6; then
1147 elog "IPv6 migration guide:"
1148 elog "http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config"
1149 fi
1150 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
1151 einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
1152 einfo "spawn-fcgi's init script configuration is now located"
1153 einfo "at /etc/conf.d/spawn-fcgi."
1154 fi
1155
1156 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
1157 elog "Gentoo has a customized configuration,"
1158 elog "which is now located in /etc/lighttpd. Please migrate your"
1159 elog "existing configuration."
1160 fi
1161
1162 if use uploadprogress; then
1163 elog "WARNING! mod_uploadprogress is a backported module from the"
1164 elog "1.5x-branch, which is not considered stable yet. Please go to"
1165 elog "http://redmine.lighttpd.net/wiki/1/Docs:ModUploadProgress"
1166 elog "for more information. This configuration also is NOT supported"
1167 elog "by upstream, so please refrain from reporting bugs. You have"
1168 elog "been warned!"
1169 fi
1170 }
1171
1172
1173
1174 1.1 www-servers/lighttpd/lighttpd-1.4.25-r2.ebuild
1175
1176 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.25-r2.ebuild?rev=1.1&view=markup
1177 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.25-r2.ebuild?rev=1.1&content-type=text/plain
1178
1179 Index: lighttpd-1.4.25-r2.ebuild
1180 ===================================================================
1181 # Copyright 1999-2012 Gentoo Foundation
1182 # Distributed under the terms of the GNU General Public License v2
1183 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.25-r2.ebuild,v 1.1 2012/01/01 00:03:46 idl0r Exp $
1184
1185 EAPI="2"
1186
1187 inherit eutils autotools depend.php
1188
1189 DESCRIPTION="Lightweight high-performance web server"
1190 HOMEPAGE="http://www.lighttpd.net/"
1191 SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2"
1192
1193 LICENSE="BSD"
1194 SLOT="0"
1195 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
1196 IUSE="bzip2 doc fam fastcgi gdbm ipv6 ldap lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr"
1197
1198 RDEPEND="
1199 >=sys-libs/zlib-1.1
1200 bzip2? ( app-arch/bzip2 )
1201 fam? ( virtual/fam )
1202 gdbm? ( sys-libs/gdbm )
1203 ldap? ( >=net-nds/openldap-2.1.26 )
1204 lua? ( >=dev-lang/lua-5.1 )
1205 memcache? ( dev-libs/libmemcache )
1206 mysql? ( >=virtual/mysql-4.0 )
1207 pcre? ( >=dev-libs/libpcre-3.1 )
1208 php? ( virtual/httpd-php )
1209 rrdtool? ( net-analyzer/rrdtool )
1210 ssl? ( >=dev-libs/openssl-0.9.7 )
1211 webdav? (
1212 dev-libs/libxml2
1213 >=dev-db/sqlite-3
1214 sys-fs/e2fsprogs
1215 )
1216 xattr? ( kernel_linux? ( sys-apps/attr ) )"
1217
1218 DEPEND="${RDEPEND}
1219 dev-util/pkgconfig
1220 doc? ( dev-python/docutils )
1221 test? (
1222 virtual/perl-Test-Harness
1223 dev-libs/fcgi
1224 )"
1225
1226 # update certain parts of lighttpd.conf based on conditionals
1227 update_config() {
1228 local config="/etc/lighttpd/lighttpd.conf"
1229
1230 # enable php/mod_fastcgi settings
1231 use php && \
1232 dosed 's|#.*\(include.*fastcgi.*$\)|\1|' ${config}
1233
1234 # enable stat() caching
1235 use fam && \
1236 dosed 's|#\(.*stat-cache.*$\)|\1|' ${config}
1237 }
1238
1239 # remove non-essential stuff (for USE=minimal)
1240 remove_non_essential() {
1241 local libdir="${D}/usr/$(get_libdir)/${PN}"
1242
1243 # text docs
1244 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
1245
1246 # non-essential modules
1247 rm -f \
1248 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
1249
1250 # allow users to keep some based on USE flags
1251 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
1252 use webdav || rm -f ${libdir}/mod_webdav.*
1253 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
1254 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
1255 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
1256
1257 if ! use fastcgi ; then
1258 rm -f ${libdir}/mod_fastcgi.*
1259 fi
1260 }
1261
1262 pkg_setup() {
1263 if ! use pcre ; then
1264 ewarn "It is highly recommended that you build ${PN}"
1265 ewarn "with perl regular expressions support via USE=pcre."
1266 ewarn "Otherwise you lose support for some core options such"
1267 ewarn "as conditionals and modules such as mod_re{write,direct}"
1268 ewarn "and mod_ssi."
1269 ebeep 5
1270 fi
1271
1272 use php && require_php_with_use cgi
1273
1274 enewgroup lighttpd
1275 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
1276 }
1277
1278 src_prepare() {
1279 epatch "${FILESDIR}"/1.4.25-fix-unknown-AM_SILENT_RULES.patch
1280 # dev-python/docutils installs rst2html.py not rst2html
1281 sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \
1282 die "sed doc/Makefile.am failed"
1283
1284 eautoreconf
1285 }
1286
1287 src_configure() {
1288 econf --libdir=/usr/$(get_libdir)/${PN} \
1289 --enable-lfs \
1290 $(use_enable ipv6) \
1291 $(use_with bzip2) \
1292 $(use_with fam) \
1293 $(use_with gdbm) \
1294 $(use_with lua) \
1295 $(use_with ldap) \
1296 $(use_with memcache) \
1297 $(use_with mysql) \
1298 $(use_with pcre) \
1299 $(use_with ssl openssl) \
1300 $(use_with webdav webdav-props) \
1301 $(use_with webdav webdav-locks) \
1302 $(use_with xattr attr)
1303 }
1304
1305 src_compile() {
1306 emake || die "emake failed"
1307
1308 if use doc ; then
1309 einfo "Building HTML documentation"
1310 cd doc
1311 emake html || die "failed to build HTML documentation"
1312 fi
1313 }
1314
1315 src_test() {
1316 if [[ ${EUID} -eq 0 ]]; then
1317 default_src_test
1318 else
1319 ewarn "test skipped, please re-run as root if you wish to test ${PN}"
1320 fi
1321 }
1322
1323 src_install() {
1324 make DESTDIR="${D}" install || die "make install failed"
1325
1326 # init script stuff
1327 newinitd "${FILESDIR}"/lighttpd.initd lighttpd || die
1328 newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die
1329 use fam && has_version app-admin/fam && \
1330 sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd
1331
1332 # configs
1333 insinto /etc/lighttpd
1334 doins "${FILESDIR}"/conf/lighttpd.conf
1335 doins "${FILESDIR}"/conf/mime-types.conf
1336 doins "${FILESDIR}"/conf/mod_cgi.conf
1337 doins "${FILESDIR}"/conf/mod_fastcgi.conf
1338 # Secure directory for fastcgi sockets
1339 keepdir /var/run/lighttpd/
1340 fperms 0750 /var/run/lighttpd/
1341 fowners lighttpd:lighttpd /var/run/lighttpd/
1342
1343 # update lighttpd.conf directives based on conditionals
1344 update_config
1345
1346 # docs
1347 dodoc AUTHORS README NEWS doc/*.sh
1348 newdoc doc/lighttpd.conf lighttpd.conf.distrib
1349
1350 use doc && dohtml -r doc/*
1351
1352 docinto txt
1353 dodoc doc/*.txt
1354
1355 # logrotate
1356 insinto /etc/logrotate.d
1357 newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die
1358
1359 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
1360 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
1361 fperms 0750 /var/l{ib,og}/lighttpd
1362
1363 #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
1364 rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
1365
1366 use minimal && remove_non_essential
1367 }
1368
1369 pkg_postinst () {
1370 echo
1371 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
1372 einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
1373 einfo "spawn-fcgi's init script configuration is now located"
1374 einfo "at /etc/conf.d/spawn-fcgi."
1375 echo
1376 fi
1377
1378 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
1379 ewarn "Gentoo has a customized configuration,"
1380 ewarn "which is now located in /etc/lighttpd. Please migrate your"
1381 ewarn "existing configuration."
1382 ebeep 5
1383 fi
1384
1385 if use fastcgi; then
1386 ewarn "As of lighttpd-1.4.22, spawn-fcgi is provided by the separate"
1387 ewarn "www-servers/spawn-fcgi package. Please install it manually, if"
1388 ewarn "you use spawn-fcgi."
1389 ewarn "It features a new, more featurefull init script - please migrate"
1390 ewarn "your configuration!"
1391 fi
1392 }
1393
1394
1395
1396 1.1 www-servers/lighttpd/lighttpd-1.4.23-r1.ebuild
1397
1398 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.23-r1.ebuild?rev=1.1&view=markup
1399 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.23-r1.ebuild?rev=1.1&content-type=text/plain
1400
1401 Index: lighttpd-1.4.23-r1.ebuild
1402 ===================================================================
1403 # Copyright 1999-2012 Gentoo Foundation
1404 # Distributed under the terms of the GNU General Public License v2
1405 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.23-r1.ebuild,v 1.1 2012/01/01 00:03:46 idl0r Exp $
1406
1407 EAPI="2"
1408
1409 inherit eutils autotools depend.php
1410
1411 DESCRIPTION="Lightweight high-performance web server"
1412 HOMEPAGE="http://www.lighttpd.net/"
1413 SRC_URI="http://www.lighttpd.net/download/${P}.tar.bz2"
1414
1415 LICENSE="BSD"
1416 SLOT="0"
1417 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~sparc-fbsd ~x86-fbsd"
1418 IUSE="bzip2 doc fam fastcgi gdbm ipv6 ldap lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr"
1419
1420 RDEPEND="
1421 >=sys-libs/zlib-1.1
1422 bzip2? ( app-arch/bzip2 )
1423 fam? ( virtual/fam )
1424 gdbm? ( sys-libs/gdbm )
1425 ldap? ( >=net-nds/openldap-2.1.26 )
1426 lua? ( >=dev-lang/lua-5.1 )
1427 memcache? ( dev-libs/libmemcache )
1428 mysql? ( >=virtual/mysql-4.0 )
1429 pcre? ( >=dev-libs/libpcre-3.1 )
1430 php? ( virtual/httpd-php )
1431 rrdtool? ( net-analyzer/rrdtool )
1432 ssl? ( >=dev-libs/openssl-0.9.7 )
1433 webdav? (
1434 dev-libs/libxml2
1435 >=dev-db/sqlite-3
1436 sys-fs/e2fsprogs
1437 )
1438 xattr? ( kernel_linux? ( sys-apps/attr ) )"
1439
1440 DEPEND="${RDEPEND}
1441 dev-util/pkgconfig
1442 doc? ( dev-python/docutils )
1443 test? (
1444 virtual/perl-Test-Harness
1445 dev-libs/fcgi
1446 )"
1447
1448 # update certain parts of lighttpd.conf based on conditionals
1449 update_config() {
1450 local config="/etc/lighttpd/lighttpd.conf"
1451
1452 # enable php/mod_fastcgi settings
1453 use php && \
1454 dosed 's|#.*\(include.*fastcgi.*$\)|\1|' ${config}
1455
1456 # enable stat() caching
1457 use fam && \
1458 dosed 's|#\(.*stat-cache.*$\)|\1|' ${config}
1459 }
1460
1461 # remove non-essential stuff (for USE=minimal)
1462 remove_non_essential() {
1463 local libdir="${D}/usr/$(get_libdir)/${PN}"
1464
1465 # text docs
1466 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
1467
1468 # non-essential modules
1469 rm -f \
1470 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
1471
1472 # allow users to keep some based on USE flags
1473 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
1474 use webdav || rm -f ${libdir}/mod_webdav.*
1475 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
1476 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
1477 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
1478
1479 if ! use fastcgi ; then
1480 rm -f ${libdir}/mod_fastcgi.*
1481 fi
1482 }
1483
1484 pkg_setup() {
1485 if ! use pcre ; then
1486 ewarn "It is highly recommended that you build ${PN}"
1487 ewarn "with perl regular expressions support via USE=pcre."
1488 ewarn "Otherwise you lose support for some core options such"
1489 ewarn "as conditionals and modules such as mod_re{write,direct}"
1490 ewarn "and mod_ssi."
1491 ebeep 5
1492 fi
1493
1494 use php && require_php_with_use cgi
1495
1496 enewgroup lighttpd
1497 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
1498 }
1499
1500 src_prepare() {
1501 # dev-python/docutils installs rst2html.py not rst2html
1502 sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \
1503 die "sed doc/Makefile.am failed"
1504
1505 eautoreconf || die
1506 }
1507
1508 src_configure() {
1509 econf --libdir=/usr/$(get_libdir)/${PN} \
1510 --enable-lfs \
1511 $(use_enable ipv6) \
1512 $(use_with bzip2) \
1513 $(use_with fam) \
1514 $(use_with gdbm) \
1515 $(use_with lua) \
1516 $(use_with ldap) \
1517 $(use_with memcache) \
1518 $(use_with mysql) \
1519 $(use_with pcre) \
1520 $(use_with ssl openssl) \
1521 $(use_with webdav webdav-props) \
1522 $(use_with webdav webdav-locks) \
1523 $(use_with xattr attr) \
1524 || die "econf failed"
1525 }
1526
1527 src_compile() {
1528 emake || die "emake failed"
1529
1530 if use doc ; then
1531 einfo "Building HTML documentation"
1532 cd doc
1533 emake html || die "failed to build HTML documentation"
1534 fi
1535 }
1536
1537 src_test() {
1538 if [[ ${EUID} -eq 0 ]]; then
1539 default_src_test
1540 else
1541 ewarn "test skipped, please re-run as root if you wish to test ${PN}"
1542 fi
1543 }
1544
1545 src_install() {
1546 make DESTDIR="${D}" install || die "make install failed"
1547
1548 # init script stuff
1549 newinitd "${FILESDIR}"/lighttpd.initd lighttpd || die
1550 newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die
1551 use fam && has_version app-admin/fam && \
1552 sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd
1553
1554 # configs
1555 insinto /etc/lighttpd
1556 doins "${FILESDIR}"/conf/lighttpd.conf
1557 doins "${FILESDIR}"/conf/mime-types.conf
1558 doins "${FILESDIR}"/conf/mod_cgi.conf
1559 doins "${FILESDIR}"/conf/mod_fastcgi.conf
1560 # Secure directory for fastcgi sockets
1561 keepdir /var/run/lighttpd/
1562 fperms 0750 /var/run/lighttpd/
1563 fowners lighttpd:lighttpd /var/run/lighttpd/
1564
1565 # update lighttpd.conf directives based on conditionals
1566 update_config
1567
1568 # docs
1569 dodoc AUTHORS README NEWS ChangeLog doc/*.sh
1570 newdoc doc/lighttpd.conf lighttpd.conf.distrib
1571
1572 use doc && dohtml -r doc/*
1573
1574 docinto txt
1575 dodoc doc/*.txt
1576
1577 # logrotate
1578 insinto /etc/logrotate.d
1579 newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die
1580
1581 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
1582 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
1583 fperms 0750 /var/l{ib,og}/lighttpd
1584
1585 #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
1586 rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
1587
1588 use minimal && remove_non_essential
1589 }
1590
1591 pkg_postinst () {
1592 echo
1593 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
1594 einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
1595 einfo "spawn-fcgi's init script configuration is now located"
1596 einfo "at /etc/conf.d/spawn-fcgi."
1597 echo
1598 fi
1599
1600 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
1601 ewarn "Gentoo has a customized configuration,"
1602 ewarn "which is now located in /etc/lighttpd. Please migrate your"
1603 ewarn "existing configuration."
1604 ebeep 5
1605 fi
1606
1607 if use fastcgi; then
1608 ewarn "As of lighttpd-1.4.22, spawn-fcgi is provided by the separate"
1609 ewarn "www-servers/spawn-fcgi package. Please install it manually, if"
1610 ewarn "you use spawn-fcgi."
1611 ewarn "It features a new, more featurefull init script - please migrate"
1612 ewarn "your configuration!"
1613 fi
1614 }
1615
1616
1617
1618 1.1 www-servers/lighttpd/lighttpd-1.4.28-r5.ebuild
1619
1620 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.28-r5.ebuild?rev=1.1&view=markup
1621 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.28-r5.ebuild?rev=1.1&content-type=text/plain
1622
1623 Index: lighttpd-1.4.28-r5.ebuild
1624 ===================================================================
1625 # Copyright 1999-2012 Gentoo Foundation
1626 # Distributed under the terms of the GNU General Public License v2
1627 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.28-r5.ebuild,v 1.1 2012/01/01 00:03:46 idl0r Exp $
1628
1629 EAPI="2"
1630
1631 inherit base eutils autotools depend.php
1632
1633 DESCRIPTION="Lightweight high-performance web server"
1634 HOMEPAGE="http://www.lighttpd.net/"
1635 SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2"
1636
1637 LICENSE="BSD"
1638 SLOT="0"
1639 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
1640 IUSE="bzip2 doc fam gdbm ipv6 ldap libev lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr"
1641
1642 RDEPEND="
1643 >=sys-libs/zlib-1.1
1644 bzip2? ( app-arch/bzip2 )
1645 fam? ( virtual/fam )
1646 gdbm? ( sys-libs/gdbm )
1647 ldap? ( >=net-nds/openldap-2.1.26 )
1648 libev? ( >=dev-libs/libev-4.01 )
1649 lua? ( >=dev-lang/lua-5.1 )
1650 memcache? ( dev-libs/libmemcache )
1651 mysql? ( >=virtual/mysql-4.0 )
1652 pcre? ( >=dev-libs/libpcre-3.1 )
1653 php? ( dev-lang/php[cgi] )
1654 rrdtool? ( net-analyzer/rrdtool )
1655 ssl? ( >=dev-libs/openssl-0.9.7 )
1656 webdav? (
1657 dev-libs/libxml2
1658 >=dev-db/sqlite-3
1659 sys-fs/e2fsprogs
1660 )
1661 xattr? ( kernel_linux? ( sys-apps/attr ) )"
1662
1663 DEPEND="${RDEPEND}
1664 dev-util/pkgconfig
1665 doc? ( dev-python/docutils )
1666 test? (
1667 virtual/perl-Test-Harness
1668 dev-libs/fcgi
1669 )"
1670
1671 # update certain parts of lighttpd.conf based on conditionals
1672 update_config() {
1673 local config="/etc/lighttpd/lighttpd.conf"
1674
1675 # enable php/mod_fastcgi settings
1676 use php && \
1677 dosed 's|#.*\(include.*fastcgi.*$\)|\1|' ${config}
1678
1679 # enable stat() caching
1680 use fam && \
1681 dosed 's|#\(.*stat-cache.*$\)|\1|' ${config}
1682
1683 # automatically listen on IPv6 if built with USE=ipv6. Bug #234987
1684 use ipv6 && \
1685 dosed 's|# server.use-ipv6|server.use-ipv6|' ${config}
1686 }
1687
1688 # remove non-essential stuff (for USE=minimal)
1689 remove_non_essential() {
1690 local libdir="${D}/usr/$(get_libdir)/${PN}"
1691
1692 # text docs
1693 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
1694
1695 # non-essential modules
1696 rm -f \
1697 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
1698
1699 # allow users to keep some based on USE flags
1700 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
1701 use webdav || rm -f ${libdir}/mod_webdav.*
1702 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
1703 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
1704 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
1705 }
1706
1707 pkg_setup() {
1708 if ! use pcre ; then
1709 ewarn "It is highly recommended that you build ${PN}"
1710 ewarn "with perl regular expressions support via USE=pcre."
1711 ewarn "Otherwise you lose support for some core options such"
1712 ewarn "as conditionals and modules such as mod_re{write,direct}"
1713 ewarn "and mod_ssi."
1714 fi
1715
1716 enewgroup lighttpd
1717 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
1718 }
1719
1720 src_prepare() {
1721 base_src_prepare
1722 #dev-python/docutils installs rst2html.py not rst2html
1723 sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \
1724 die "sed doc/Makefile.am failed"
1725 epatch "${FILESDIR}"/${P}-detect-libev.patch
1726 eautoreconf
1727 }
1728
1729 src_configure() {
1730 econf --libdir=/usr/$(get_libdir)/${PN} \
1731 --enable-lfs \
1732 $(use_enable ipv6) \
1733 $(use_with bzip2) \
1734 $(use_with fam) \
1735 $(use_with gdbm) \
1736 $(use_with ldap) \
1737 $(use_with libev) \
1738 $(use_with lua) \
1739 $(use_with memcache) \
1740 $(use_with mysql) \
1741 $(use_with pcre) \
1742 $(use_with ssl openssl) \
1743 $(use_with webdav webdav-props) \
1744 $(use_with webdav webdav-locks) \
1745 $(use_with xattr attr)
1746 }
1747
1748 src_compile() {
1749 emake || die "emake failed"
1750
1751 if use doc ; then
1752 einfo "Building HTML documentation"
1753 cd doc
1754 emake html || die "failed to build HTML documentation"
1755 fi
1756 }
1757
1758 src_test() {
1759 if [[ ${EUID} -eq 0 ]]; then
1760 default_src_test
1761 else
1762 ewarn "test skipped, please re-run as root if you wish to test ${PN}"
1763 fi
1764 }
1765
1766 src_install() {
1767 make DESTDIR="${D}" install || die "make install failed"
1768
1769 # init script stuff
1770 newinitd "${FILESDIR}"/lighttpd.initd lighttpd || die
1771 newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die
1772 use fam && has_version app-admin/fam && \
1773 sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd
1774
1775 # configs
1776 insinto /etc/lighttpd
1777 doins "${FILESDIR}"/conf/lighttpd.conf
1778 doins "${FILESDIR}"/conf/mime-types.conf
1779 doins "${FILESDIR}"/conf/mod_cgi.conf
1780 doins "${FILESDIR}"/conf/mod_fastcgi.conf
1781 # Secure directory for fastcgi sockets
1782 keepdir /var/run/lighttpd/
1783 fperms 0750 /var/run/lighttpd/
1784 fowners lighttpd:lighttpd /var/run/lighttpd/
1785
1786 # update lighttpd.conf directives based on conditionals
1787 update_config
1788
1789 # docs
1790 dodoc AUTHORS README NEWS doc/scripts/*.sh
1791 newdoc doc/config//lighttpd.conf lighttpd.conf.distrib
1792
1793 use doc && dohtml -r doc/*
1794
1795 docinto txt
1796 dodoc doc/*.txt
1797
1798 # logrotate
1799 insinto /etc/logrotate.d
1800 newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die
1801
1802 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
1803 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
1804 fperms 0750 /var/l{ib,og}/lighttpd
1805
1806 #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
1807 rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
1808
1809 use minimal && remove_non_essential
1810 }
1811
1812 pkg_postinst () {
1813 if use ipv6; then
1814 elog "IPv6 migration guide:"
1815 elog "http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config"
1816 fi
1817 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
1818 einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
1819 einfo "spawn-fcgi's init script configuration is now located"
1820 einfo "at /etc/conf.d/spawn-fcgi."
1821 fi
1822
1823 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
1824 elog "Gentoo has a customized configuration,"
1825 elog "which is now located in /etc/lighttpd. Please migrate your"
1826 elog "existing configuration."
1827 fi
1828 }
1829
1830
1831
1832 1.1 www-servers/lighttpd/lighttpd-1.4.25-r3.ebuild
1833
1834 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.25-r3.ebuild?rev=1.1&view=markup
1835 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.25-r3.ebuild?rev=1.1&content-type=text/plain
1836
1837 Index: lighttpd-1.4.25-r3.ebuild
1838 ===================================================================
1839 # Copyright 1999-2012 Gentoo Foundation
1840 # Distributed under the terms of the GNU General Public License v2
1841 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.25-r3.ebuild,v 1.1 2012/01/01 00:03:46 idl0r Exp $
1842
1843 EAPI="2"
1844
1845 inherit eutils autotools depend.php
1846
1847 DESCRIPTION="Lightweight high-performance web server"
1848 HOMEPAGE="http://www.lighttpd.net/"
1849 SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2"
1850
1851 LICENSE="BSD"
1852 SLOT="0"
1853 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
1854 IUSE="bzip2 doc fam fastcgi gdbm ipv6 ldap lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr"
1855
1856 RDEPEND="
1857 >=sys-libs/zlib-1.1
1858 bzip2? ( app-arch/bzip2 )
1859 fam? ( virtual/fam )
1860 gdbm? ( sys-libs/gdbm )
1861 ldap? ( >=net-nds/openldap-2.1.26 )
1862 lua? ( >=dev-lang/lua-5.1 )
1863 memcache? ( dev-libs/libmemcache )
1864 mysql? ( >=virtual/mysql-4.0 )
1865 pcre? ( >=dev-libs/libpcre-3.1 )
1866 php? ( virtual/httpd-php )
1867 rrdtool? ( net-analyzer/rrdtool )
1868 ssl? ( >=dev-libs/openssl-0.9.7 )
1869 webdav? (
1870 dev-libs/libxml2
1871 >=dev-db/sqlite-3
1872 sys-fs/e2fsprogs
1873 )
1874 xattr? ( kernel_linux? ( sys-apps/attr ) )"
1875
1876 DEPEND="${RDEPEND}
1877 dev-util/pkgconfig
1878 doc? ( dev-python/docutils )
1879 test? (
1880 virtual/perl-Test-Harness
1881 dev-libs/fcgi
1882 )"
1883
1884 # update certain parts of lighttpd.conf based on conditionals
1885 update_config() {
1886 local config="/etc/lighttpd/lighttpd.conf"
1887
1888 # enable php/mod_fastcgi settings
1889 use php && \
1890 dosed 's|#.*\(include.*fastcgi.*$\)|\1|' ${config}
1891
1892 # enable stat() caching
1893 use fam && \
1894 dosed 's|#\(.*stat-cache.*$\)|\1|' ${config}
1895 }
1896
1897 # remove non-essential stuff (for USE=minimal)
1898 remove_non_essential() {
1899 local libdir="${D}/usr/$(get_libdir)/${PN}"
1900
1901 # text docs
1902 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
1903
1904 # non-essential modules
1905 rm -f \
1906 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
1907
1908 # allow users to keep some based on USE flags
1909 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
1910 use webdav || rm -f ${libdir}/mod_webdav.*
1911 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
1912 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
1913 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
1914
1915 if ! use fastcgi ; then
1916 rm -f ${libdir}/mod_fastcgi.*
1917 fi
1918 }
1919
1920 pkg_setup() {
1921 if ! use pcre ; then
1922 ewarn "It is highly recommended that you build ${PN}"
1923 ewarn "with perl regular expressions support via USE=pcre."
1924 ewarn "Otherwise you lose support for some core options such"
1925 ewarn "as conditionals and modules such as mod_re{write,direct}"
1926 ewarn "and mod_ssi."
1927 ebeep 5
1928 fi
1929
1930 use php && require_php_with_use cgi
1931
1932 enewgroup lighttpd
1933 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
1934 }
1935
1936 src_prepare() {
1937 epatch "${FILESDIR}"/1.4.25-fix-unknown-AM_SILENT_RULES.patch
1938 epatch "${FILESDIR}"/1.4.25-fix-CVE-2010-0295.patch
1939 # dev-python/docutils installs rst2html.py not rst2html
1940 sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \
1941 die "sed doc/Makefile.am failed"
1942
1943 eautoreconf
1944 }
1945
1946 src_configure() {
1947 econf --libdir=/usr/$(get_libdir)/${PN} \
1948 --enable-lfs \
1949 $(use_enable ipv6) \
1950 $(use_with bzip2) \
1951 $(use_with fam) \
1952 $(use_with gdbm) \
1953 $(use_with lua) \
1954 $(use_with ldap) \
1955 $(use_with memcache) \
1956 $(use_with mysql) \
1957 $(use_with pcre) \
1958 $(use_with ssl openssl) \
1959 $(use_with webdav webdav-props) \
1960 $(use_with webdav webdav-locks) \
1961 $(use_with xattr attr)
1962 }
1963
1964 src_compile() {
1965 emake || die "emake failed"
1966
1967 if use doc ; then
1968 einfo "Building HTML documentation"
1969 cd doc
1970 emake html || die "failed to build HTML documentation"
1971 fi
1972 }
1973
1974 src_test() {
1975 if [[ ${EUID} -eq 0 ]]; then
1976 default_src_test
1977 else
1978 ewarn "test skipped, please re-run as root if you wish to test ${PN}"
1979 fi
1980 }
1981
1982 src_install() {
1983 make DESTDIR="${D}" install || die "make install failed"
1984
1985 # init script stuff
1986 newinitd "${FILESDIR}"/lighttpd.initd lighttpd || die
1987 newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die
1988 use fam && has_version app-admin/fam && \
1989 sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd
1990
1991 # configs
1992 insinto /etc/lighttpd
1993 doins "${FILESDIR}"/conf/lighttpd.conf
1994 doins "${FILESDIR}"/conf/mime-types.conf
1995 doins "${FILESDIR}"/conf/mod_cgi.conf
1996 doins "${FILESDIR}"/conf/mod_fastcgi.conf
1997 # Secure directory for fastcgi sockets
1998 keepdir /var/run/lighttpd/
1999 fperms 0750 /var/run/lighttpd/
2000 fowners lighttpd:lighttpd /var/run/lighttpd/
2001
2002 # update lighttpd.conf directives based on conditionals
2003 update_config
2004
2005 # docs
2006 dodoc AUTHORS README NEWS doc/*.sh
2007 newdoc doc/lighttpd.conf lighttpd.conf.distrib
2008
2009 use doc && dohtml -r doc/*
2010
2011 docinto txt
2012 dodoc doc/*.txt
2013
2014 # logrotate
2015 insinto /etc/logrotate.d
2016 newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die
2017
2018 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
2019 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
2020 fperms 0750 /var/l{ib,og}/lighttpd
2021
2022 #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
2023 rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
2024
2025 use minimal && remove_non_essential
2026 }
2027
2028 pkg_postinst () {
2029 echo
2030 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
2031 einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
2032 einfo "spawn-fcgi's init script configuration is now located"
2033 einfo "at /etc/conf.d/spawn-fcgi."
2034 echo
2035 fi
2036
2037 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
2038 ewarn "Gentoo has a customized configuration,"
2039 ewarn "which is now located in /etc/lighttpd. Please migrate your"
2040 ewarn "existing configuration."
2041 ebeep 5
2042 fi
2043
2044 if use fastcgi; then
2045 ewarn "As of lighttpd-1.4.22, spawn-fcgi is provided by the separate"
2046 ewarn "www-servers/spawn-fcgi package. Please install it manually, if"
2047 ewarn "you use spawn-fcgi."
2048 ewarn "It features a new, more featurefull init script - please migrate"
2049 ewarn "your configuration!"
2050 fi
2051 }