diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2014-06-06 12:26:28 +0000 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2014-06-06 12:26:28 +0000 |
commit | 166c67f42840de6b5518516e7f37b05d2143a733 (patch) | |
tree | ae061c699482c5eb3f5358796415d0cf099ea54d /www-servers | |
parent | Security cleanup, wrt bug #510380 (diff) | |
download | historical-166c67f42840de6b5518516e7f37b05d2143a733.tar.gz historical-166c67f42840de6b5518516e7f37b05d2143a733.tar.bz2 historical-166c67f42840de6b5518516e7f37b05d2143a733.zip |
Drop insecure versions
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0xC42EB5D6
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/lighttpd/ChangeLog | 6 | ||||
-rw-r--r-- | www-servers/lighttpd/Manifest | 24 | ||||
-rw-r--r-- | www-servers/lighttpd/lighttpd-1.4.32-r3.ebuild | 224 | ||||
-rw-r--r-- | www-servers/lighttpd/lighttpd-1.4.34.ebuild | 224 |
4 files changed, 11 insertions, 467 deletions
diff --git a/www-servers/lighttpd/ChangeLog b/www-servers/lighttpd/ChangeLog index 04e138947e05..e2e1487f2119 100644 --- a/www-servers/lighttpd/ChangeLog +++ b/www-servers/lighttpd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for www-servers/lighttpd # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.333 2014/05/14 16:10:36 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.334 2014/06/06 12:26:20 zlogene Exp $ + + 06 Jun 2014; Mikle Kolyada <zlogene@gentoo.org> -lighttpd-1.4.32-r3.ebuild, + -lighttpd-1.4.34.ebuild: + Drop insecure versions 14 May 2014; Agostino Sarubbo <ago@gentoo.org> lighttpd-1.4.35.ebuild: Stable for sparc, wrt bug #504330 diff --git a/www-servers/lighttpd/Manifest b/www-servers/lighttpd/Manifest index 8f37145317db..a839ea17b160 100644 --- a/www-servers/lighttpd/Manifest +++ b/www-servers/lighttpd/Manifest @@ -15,29 +15,17 @@ AUX lighttpd.logrotate 487 SHA256 503ee1cd454e2c0f9a212ef60dc8321893eda06ccf721e AUX lighttpd.logrotate-r1 519 SHA256 4d95b9a3464d866f372ace5b4e4676e81fa6289b53faadc851bac4edf4c6cc17 SHA512 8079b2a2ffbe5c9f4b6cd8793d396268055b6f02d19ad6e4f81fdae2cba75d346b182cb5dd0bb68975e243cd3f7d35890ff51a68a92acf476833e265f5145abc WHIRLPOOL 6f5c87831de1147ebb529955b834155259a969ca691b7e56177d0ffeb00fa173e03a1bf0ad4de24688e4ffd6f5e3af76897025fc6a914a5668f367a2511a4566 AUX lighttpd.service 222 SHA256 0a25ef6bfa69dcf900510e45ec0cc348ad694a0598b1003faf3c72cc09b1e550 SHA512 09914f5f14d0c836bad20770d963b9577b16cd0facbb50b56566ed1b8ff52b3bc1afe5dc39be26356198224a1c7a8dd6675cdff3a614a7e008b4e316e4b27ae7 WHIRLPOOL 31446af4830301b8dbf2b704368c2c2f3fab5c5262acb69224ce087d958efb40b72829fba2b0c0f07a6c242f5d6d1a2007013814ace01f0cde892c21f41137d4 AUX lighttpd.tmpfiles.conf 44 SHA256 a31237336ad02b22579b5e2168485d43d350f78ed010d39a2dbc554dd574bbcb SHA512 795448ad726ebfe7688236a23cb21bf06bbf8edd7e243924e3d1c21d33fffba1e04501734b189eb2081f6737b74af7c978eed802fb5e540dcc5c5aea69544936 WHIRLPOOL 5774c609ead3af3758766cd69111af5e080dc230cb7632ae54ade74313a20f5680d83117a2a369230e2d7c5328e1703ecc315fa1555f79a688e8728a7a209b4a -DIST lighttpd-1.4.32.tar.bz2 681065 SHA256 60691b2dcf3ad2472c06b23d75eb0c164bf48a08a630ed3f308f61319104701f SHA512 ffd5488a2ed57daa26b6d16223f422a94e88f2488cdc50bbb354c45daa535fbf9231fbbe73c23327a0adb708cc2b67fbdc60c34195a2a46a171dcc0f30bb3efb WHIRLPOOL 0f537296ae2a321962a4e4bc9a45631d334cf180a5aee1a182e6d95ebdcabfec6df4d229e888ce9170f526ab716c323cc66947413747ee91e6f73e2a4a0d4526 -DIST lighttpd-1.4.34.tar.bz2 665651 SHA256 e4b5682ef21b0bdea4a18dc7ccac6b5a0bf526b691ad0fe5c25c8b9fc38d0c12 SHA512 ad8b25090f81bcb55d3aac89cd17119ed3574a86756992bf36f7d302cf5966006bbc4a76e2d3926a4f096c0db30b01722aa7fb7fa556200ace6c3b82874d81ee WHIRLPOOL 7a10dcdbaeb47b440e567edc3cec46480af059a2f2556579f1d5f25f31218beb9b1c91ae8b3f3b1e9d87183de0dd23fee3262ba2a09c658d7a145c53146dc61e DIST lighttpd-1.4.35.tar.bz2 665955 SHA256 4a71c1f6d8af41ed894b507720c4c17184dc320590013881d5170ca7f15c5bf7 SHA512 13f8562fb735964fe7ef1b127a15c43907f34be70b6bd2dd4ba61b59275d7c2a8d9a7947ff1a4d7cc5fd7efd309fc66b7de6d954b59424f814ea2eb98fd876b9 WHIRLPOOL edbeb94ae29475be398e9281135fc43f915be68c5836ae3da302f7c94c3af19eeca601cedc9bfe59d552f45c6248a945b2de725613de395087e4e195efe9a62e -EBUILD lighttpd-1.4.32-r3.ebuild 6679 SHA256 120b3dbe294b12c592ea6443dd059b2e8ddef86518193eb7ad0e4fbb98302a18 SHA512 51506dae7baa4dc8e24999a32497487f90f5ee7a596fe9e40f50e4d40c0f94dcfbd184df4322cfe8b973814752bc5a8e9ea8a5481dd75b8f0ed38adf61297cf9 WHIRLPOOL f7e37e4c393d83d9409b143789484c2b714841088e3eff82873c3601fdd15079ff92a973e8ebff7c051b5fecda5891f10832f42541715c068310520f520c3962 -EBUILD lighttpd-1.4.34.ebuild 6691 SHA256 57ec97ff478720f587b4c18732cfe9755429da8d05b34da833a024edc1990762 SHA512 a86dc991f705e13db22fbb73dceccb2d3a7fe3f095a422b1b5c44eae9d17cc44fbfd44e5bf5de64903934fcd160cda31b65fc844e72b2da746d4f596c9a6274b WHIRLPOOL cbbd6c5e0d775998e25926d7c3f6f75d82e1182e8b144f78c1d8151d8ece8192c5f82ba5fac4b2d72fb3ed22e5ca2aaa30ba82a81a1d640128e597086a326b8a EBUILD lighttpd-1.4.35-r1.ebuild 6694 SHA256 6ed6ac9ad16255d0d87ea60d6610ccc465b3fd8f00d2dbba6f8b5e1594fe5a78 SHA512 a0d4f21d2b302f794dcc6958add92275d306b6880d0fdb162b5ce0e175064f5993dc5427e898c84b622d0b24dab20b6e1baccc95e4378182281cde5c92b619d8 WHIRLPOOL 24d036f878714bcd3f414c9e405374728d8f72c9189c414b1fc48e4aa846ed80acbd9bd9e774084f98c45b7712d2878c80d966d5eb089affed7d5d8369d2d2f0 EBUILD lighttpd-1.4.35.ebuild 6678 SHA256 275dca3f8985d637279fb05de86f68e4cc89a9c6bbdabe7b075e9a009229c2de SHA512 e5ac3afeae4f389833f82af04edee67857f62a38b9d2b70bfe5abe35977548773a579cd4b5c83887ae7052863f58013160aa769e5f7845fed853b09db05a77ce WHIRLPOOL c37d3a0696df81c5517fc26e44df50e5d9cbb575c64390b4e43d103708d6c453ad0131ad12fb386bd84a638beb2a662610a68f0dd7ae4d00b436feb1100994fc -MISC ChangeLog 66514 SHA256 806e0a5795aa3bdd5e803dc1ead3fec31a73dc5d2a6fa835298eb954337cbca5 SHA512 d9dad251f180892598986652f5b95d9a301128a4eab27302bb6324be7890ce1b63d3a7b87a18a10bc3597bc6c8da484405150f6bcfb45af51ddc50aebff5e1b5 WHIRLPOOL a6cc649cff1d39dd736183e32c80d75151ad6117992eb6916bf8cf59db9050f7df410366a3a2b6152d7ebac4fc9867d24df8136d7f419a62e934f7c5c6cfb6fa +MISC ChangeLog 66649 SHA256 0bd4fcb14cd9a1251ee345665769ed5cd459b92309660382cde9a8f1fe4e3c5f SHA512 c0227e7f92661ca91ae0b08bcb6f8daa7f45fd557b93f10e6adeeece5bd788dd21ac7f836aa9135a7c6145698ff5dafbd701168add6a2d545d334ded214a5c9c WHIRLPOOL 81d5f1e2645722c059fbb9865fc437be43721810933db33667a238f68fa95a82368568a547fa728713923fe48af19c46e12b93ac3dc61d9eade060e7f010d592 MISC metadata.xml 1315 SHA256 4a5b911cadfb5f48332d4c252cabdae052af96232321f0171e5ed1fa7194abce SHA512 4ff65b32d294a5ff288eafb81561e4160db69bbea3fab90dc7e80135901ce7c6aded4743b88d3e52e936c73d71b2ddef7d65523e6f737fd76994776bb9a6ea77 WHIRLPOOL 83a654aa9c34b778cded6acad83aaa891d57b3effc220a4a006123beef73d69e075eeb580d9b5c3021535da8a8ec64a933d0d62bd1e8ab639ccff4f3592b92f1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJTc5V+AAoJELp701BxlEWfA7YQAMUTL4yq3PXmmZH3f3T5m3k7 -2Q2cRqDxATpvdZOs866FePmmWvjW/JHVKFw+7GZOUzvQmly390bduvdzrOOZ32vw -g2j8MK2VLRe//sI4T7la2SwMPLUTrl3BrUSo/x0fLkl2zBGwER0vQnzTGUYFs4F7 -vQYDg0ypg5JT65Iamx9dh+OscOpAx+0VQT8jJ14PPlYJdjWtNIQRf9qZOPmUCEOm -HA9HtXqXpbWWgjgDHe6nhFDQssB7hewCd9nx4TdhQHBKwUiIyyDeauNhkwCVHn8w -xgQdgXrKsIZf4IsNd73AybyfNg2QFv7gA054FQLUggp7DNQMU49CSp5FhX3+egAS -f97SFaSj8Suyk60t4zUBl2aaeB4QUaRN2qFkro96ptjNFbCXrSHVjdtoRq62l119 -Ksz3Cbzvw65F9NmMTGi2qxiYJnPQzd4x8qB+EzzpCdyrKI9rUXaSRAKiVeaE/WDM -Uj0I7F0hfC8+vmWNR1FRxA3zFSC3q6hBHLKtpJaOi1IWFsSE8+J9jnq6Cv0duUgq -/SZJ9i8ApgMNldrDwN9A9DOfiXkX6QxlUq/U4UdD3N4uXAqJ1FVMAaMUFEN10U3q -IGyGqDQshlrjRP897A3q7IJzn1gmMCM3FSrUhKs44waoHV40l3bD3tXrWjuuHF67 -qIpTeQ9HDWuLGtFC9JTq -=eMxa +iJwEAQEIAAYFAlORtLUACgkQG9wOWsQutdZ2sAP/b5wDifZCMuCn8+DUo9dXL8FU +O6v9K+Wng2gp8C9yW8RwR0xnL/+0jo696WkoywFU4NMTAl5PfXzQx9mUZflUJmIO +x9dmjmYQ1KRxU10iuzRtu7x+e6I58LvfQ3oR0/4ux8U0WCsHI1X33iW9lhswSJbT +ROYY9bjfwbOl8eIqhDA= +=lI3i -----END PGP SIGNATURE----- diff --git a/www-servers/lighttpd/lighttpd-1.4.32-r3.ebuild b/www-servers/lighttpd/lighttpd-1.4.32-r3.ebuild deleted file mode 100644 index aed2036bd7e0..000000000000 --- a/www-servers/lighttpd/lighttpd-1.4.32-r3.ebuild +++ /dev/null @@ -1,224 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.32-r3.ebuild,v 1.8 2013/12/22 11:58:35 ago Exp $ - -EAPI="4" -inherit base autotools eutils depend.php readme.gentoo user systemd - -DESCRIPTION="Lightweight high-performance web server" -HOMEPAGE="http://www.lighttpd.net/" -SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2" - -LICENSE="BSD GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~sparc-fbsd ~x86-fbsd" -IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev lua minimal mmap memcache mysql pcre php rrdtool selinux ssl test uploadprogress webdav xattr zlib" - -REQUIRED_USE="kerberos? ( ssl )" - -RDEPEND=" - bzip2? ( app-arch/bzip2 ) - fam? ( virtual/fam ) - gdbm? ( sys-libs/gdbm ) - ldap? ( >=net-nds/openldap-2.1.26 ) - libev? ( >=dev-libs/libev-4.01 ) - lua? ( >=dev-lang/lua-5.1 ) - memcache? ( dev-libs/libmemcache ) - mysql? ( >=virtual/mysql-4.0 ) - pcre? ( >=dev-libs/libpcre-3.1 ) - php? ( dev-lang/php[cgi] ) - rrdtool? ( net-analyzer/rrdtool ) - selinux? ( sec-policy/selinux-apache ) - ssl? ( >=dev-libs/openssl-0.9.7[kerberos?] ) - webdav? ( - dev-libs/libxml2 - >=dev-db/sqlite-3 - sys-fs/e2fsprogs - ) - xattr? ( kernel_linux? ( sys-apps/attr ) ) - zlib? ( >=sys-libs/zlib-1.1 )" - -DEPEND="${RDEPEND} - virtual/pkgconfig - doc? ( dev-python/docutils ) - test? ( - virtual/perl-Test-Harness - dev-libs/fcgi - )" - -# update certain parts of lighttpd.conf based on conditionals -update_config() { - local config="${D}/etc/lighttpd/lighttpd.conf" - - # enable php/mod_fastcgi settings - use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; } - - # enable stat() caching - use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; } - - # automatically listen on IPv6 if built with USE=ipv6. Bug #234987 - use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; } -} - -# remove non-essential stuff (for USE=minimal) -remove_non_essential() { - local libdir="${D}/usr/$(get_libdir)/${PN}" - - # text docs - use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt - - # non-essential modules - rm -f \ - ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.* - - # allow users to keep some based on USE flags - use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.* - use webdav || rm -f ${libdir}/mod_webdav.* - use mysql || rm -f ${libdir}/mod_mysql_vhost.* - use lua || rm -f ${libdir}/mod_{cml,magnet}.* - use rrdtool || rm -f ${libdir}/mod_rrdtool.* - use zlib || rm -f ${libdir}/mod_compress.* -} - -pkg_setup() { - if ! use pcre ; then - ewarn "It is highly recommended that you build ${PN}" - ewarn "with perl regular expressions support via USE=pcre." - ewarn "Otherwise you lose support for some core options such" - ewarn "as conditionals and modules such as mod_re{write,direct}" - ewarn "and mod_ssi." - fi - if use mmap; then - ewarn "You have enabled the mmap option. This option may allow" - ewarn "local users to trigger SIGBUG crashes. Use this option" - ewarn "with EXTRA care." - fi - enewgroup lighttpd - enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd - - DOC_CONTENTS="IPv6 migration guide:\n - http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config" -} - -src_prepare() { - base_src_prepare - #dev-python/docutils installs rst2html.py not rst2html - sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \ - die "sed doc/Makefile.am failed" - # Experimental patch for progress bar. Bug #380093 - if use uploadprogress; then - epatch "${FILESDIR}"/${PN}-1.4.29-mod_uploadprogress.patch - fi - eautoreconf -} - -src_configure() { - econf --libdir=/usr/$(get_libdir)/${PN} \ - --enable-lfs \ - $(use_enable ipv6) \ - $(use_enable mmap) \ - $(use_with bzip2) \ - $(use_with fam) \ - $(use_with gdbm) \ - $(use_with kerberos kerberos5) \ - $(use_with ldap) \ - $(use_with libev) \ - $(use_with lua) \ - $(use_with memcache) \ - $(use_with mysql) \ - $(use_with pcre) \ - $(use_with ssl openssl) \ - $(use_with webdav webdav-props) \ - $(use_with webdav webdav-locks) \ - $(use_with xattr attr) \ - $(use_with zlib) -} - -src_compile() { - emake - - if use doc ; then - einfo "Building HTML documentation" - cd doc || die - emake html - fi -} - -src_test() { - if [[ ${EUID} -eq 0 ]]; then - default_src_test - else - ewarn "test skipped, please re-run as root if you wish to test ${PN}" - fi -} - -src_install() { - emake DESTDIR="${D}" install - - # init script stuff - newinitd "${FILESDIR}"/lighttpd.initd lighttpd - newconfd "${FILESDIR}"/lighttpd.confd lighttpd - use fam && has_version app-admin/fam && \ - { sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd || die; } - - # configs - insinto /etc/lighttpd - doins "${FILESDIR}"/conf/lighttpd.conf - doins "${FILESDIR}"/conf/mime-types.conf - doins "${FILESDIR}"/conf/mod_cgi.conf - doins "${FILESDIR}"/conf/mod_fastcgi.conf - - # update lighttpd.conf directives based on conditionals - update_config - - # docs - dodoc AUTHORS README NEWS doc/scripts/*.sh - newdoc doc/config//lighttpd.conf lighttpd.conf.distrib - use ipv6 && readme.gentoo_create_doc - - use doc && dohtml -r doc/* - - docinto txt - dodoc doc/outdated/*.txt - - # logrotate - insinto /etc/logrotate.d - newins "${FILESDIR}"/lighttpd.logrotate lighttpd - - keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs - fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd - fperms 0750 /var/l{ib,og}/lighttpd - - #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi - rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.* - - use minimal && remove_non_essential - - systemd_dounit "${FILESDIR}/${PN}.service" - systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf" -} - -pkg_postinst () { - use ipv6 && readme.gentoo_print_elog - - if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then - einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi." - einfo "spawn-fcgi's init script configuration is now located" - einfo "at /etc/conf.d/spawn-fcgi." - fi - - if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then - elog "Gentoo has a customized configuration," - elog "which is now located in /etc/lighttpd. Please migrate your" - elog "existing configuration." - fi - - if use uploadprogress; then - elog "WARNING! mod_uploadprogress is a backported module from the" - elog "1.5x-branch, which is not considered stable yet. Please go to" - elog "http://redmine.lighttpd.net/wiki/1/Docs:ModUploadProgress" - elog "for more information. This configuration also is NOT supported" - elog "by upstream, so please refrain from reporting bugs. You have" - elog "been warned!" - fi -} diff --git a/www-servers/lighttpd/lighttpd-1.4.34.ebuild b/www-servers/lighttpd/lighttpd-1.4.34.ebuild deleted file mode 100644 index 795ac97b623b..000000000000 --- a/www-servers/lighttpd/lighttpd-1.4.34.ebuild +++ /dev/null @@ -1,224 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.34.ebuild,v 1.1 2014/01/17 20:05:11 hwoarang Exp $ - -EAPI="4" -inherit base autotools eutils depend.php readme.gentoo user systemd - -DESCRIPTION="Lightweight high-performance web server" -HOMEPAGE="http://www.lighttpd.net/" -SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2" - -LICENSE="BSD GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" -IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev lua minimal mmap memcache mysql pcre php rrdtool selinux ssl test uploadprogress webdav xattr zlib" - -REQUIRED_USE="kerberos? ( ssl )" - -RDEPEND=" - bzip2? ( app-arch/bzip2 ) - fam? ( virtual/fam ) - gdbm? ( sys-libs/gdbm ) - ldap? ( >=net-nds/openldap-2.1.26 ) - libev? ( >=dev-libs/libev-4.01 ) - lua? ( >=dev-lang/lua-5.1 ) - memcache? ( dev-libs/libmemcache ) - mysql? ( >=virtual/mysql-4.0 ) - pcre? ( >=dev-libs/libpcre-3.1 ) - php? ( dev-lang/php[cgi] ) - rrdtool? ( net-analyzer/rrdtool ) - selinux? ( sec-policy/selinux-apache ) - ssl? ( >=dev-libs/openssl-0.9.7[kerberos?] ) - webdav? ( - dev-libs/libxml2 - >=dev-db/sqlite-3 - sys-fs/e2fsprogs - ) - xattr? ( kernel_linux? ( sys-apps/attr ) ) - zlib? ( >=sys-libs/zlib-1.1 )" - -DEPEND="${RDEPEND} - virtual/pkgconfig - doc? ( dev-python/docutils ) - test? ( - virtual/perl-Test-Harness - dev-libs/fcgi - )" - -# update certain parts of lighttpd.conf based on conditionals -update_config() { - local config="${D}/etc/lighttpd/lighttpd.conf" - - # enable php/mod_fastcgi settings - use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; } - - # enable stat() caching - use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; } - - # automatically listen on IPv6 if built with USE=ipv6. Bug #234987 - use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; } -} - -# remove non-essential stuff (for USE=minimal) -remove_non_essential() { - local libdir="${D}/usr/$(get_libdir)/${PN}" - - # text docs - use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt - - # non-essential modules - rm -f \ - ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.* - - # allow users to keep some based on USE flags - use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.* - use webdav || rm -f ${libdir}/mod_webdav.* - use mysql || rm -f ${libdir}/mod_mysql_vhost.* - use lua || rm -f ${libdir}/mod_{cml,magnet}.* - use rrdtool || rm -f ${libdir}/mod_rrdtool.* - use zlib || rm -f ${libdir}/mod_compress.* -} - -pkg_setup() { - if ! use pcre ; then - ewarn "It is highly recommended that you build ${PN}" - ewarn "with perl regular expressions support via USE=pcre." - ewarn "Otherwise you lose support for some core options such" - ewarn "as conditionals and modules such as mod_re{write,direct}" - ewarn "and mod_ssi." - fi - if use mmap; then - ewarn "You have enabled the mmap option. This option may allow" - ewarn "local users to trigger SIGBUG crashes. Use this option" - ewarn "with EXTRA care." - fi - enewgroup lighttpd - enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd - - DOC_CONTENTS="IPv6 migration guide:\n - http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config" -} - -src_prepare() { - base_src_prepare - #dev-python/docutils installs rst2html.py not rst2html - sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \ - die "sed doc/Makefile.am failed" - # Experimental patch for progress bar. Bug #380093 - if use uploadprogress; then - epatch "${FILESDIR}"/${PN}-1.4.29-mod_uploadprogress.patch - fi - eautoreconf -} - -src_configure() { - econf --libdir=/usr/$(get_libdir)/${PN} \ - --enable-lfs \ - $(use_enable ipv6) \ - $(use_enable mmap) \ - $(use_with bzip2) \ - $(use_with fam) \ - $(use_with gdbm) \ - $(use_with kerberos kerberos5) \ - $(use_with ldap) \ - $(use_with libev) \ - $(use_with lua) \ - $(use_with memcache) \ - $(use_with mysql) \ - $(use_with pcre) \ - $(use_with ssl openssl) \ - $(use_with webdav webdav-props) \ - $(use_with webdav webdav-locks) \ - $(use_with xattr attr) \ - $(use_with zlib) -} - -src_compile() { - emake - - if use doc ; then - einfo "Building HTML documentation" - cd doc || die - emake html - fi -} - -src_test() { - if [[ ${EUID} -eq 0 ]]; then - default_src_test - else - ewarn "test skipped, please re-run as root if you wish to test ${PN}" - fi -} - -src_install() { - emake DESTDIR="${D}" install - - # init script stuff - newinitd "${FILESDIR}"/lighttpd.initd lighttpd - newconfd "${FILESDIR}"/lighttpd.confd lighttpd - use fam && has_version app-admin/fam && \ - { sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd || die; } - - # configs - insinto /etc/lighttpd - doins "${FILESDIR}"/conf/lighttpd.conf - doins "${FILESDIR}"/conf/mime-types.conf - doins "${FILESDIR}"/conf/mod_cgi.conf - doins "${FILESDIR}"/conf/mod_fastcgi.conf - - # update lighttpd.conf directives based on conditionals - update_config - - # docs - dodoc AUTHORS README NEWS doc/scripts/*.sh - newdoc doc/config//lighttpd.conf lighttpd.conf.distrib - use ipv6 && readme.gentoo_create_doc - - use doc && dohtml -r doc/* - - docinto txt - dodoc doc/outdated/*.txt - - # logrotate - insinto /etc/logrotate.d - newins "${FILESDIR}"/lighttpd.logrotate lighttpd - - keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs - fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd - fperms 0750 /var/l{ib,og}/lighttpd - - #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi - rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.* - - use minimal && remove_non_essential - - systemd_dounit "${FILESDIR}/${PN}.service" - systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf" -} - -pkg_postinst () { - use ipv6 && readme.gentoo_print_elog - - if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then - einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi." - einfo "spawn-fcgi's init script configuration is now located" - einfo "at /etc/conf.d/spawn-fcgi." - fi - - if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then - elog "Gentoo has a customized configuration," - elog "which is now located in /etc/lighttpd. Please migrate your" - elog "existing configuration." - fi - - if use uploadprogress; then - elog "WARNING! mod_uploadprogress is a backported module from the" - elog "1.5x-branch, which is not considered stable yet. Please go to" - elog "http://redmine.lighttpd.net/wiki/1/Docs:ModUploadProgress" - elog "for more information. This configuration also is NOT supported" - elog "by upstream, so please refrain from reporting bugs. You have" - elog "been warned!" - fi -} |