diff options
author | Stuart Shelton <stuart@shelton.me> | 2014-12-29 02:09:22 +0000 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2014-12-29 15:24:48 +0000 |
commit | cf01a0c82fcc5603fd03b63bdbfcabb07a357dd7 (patch) | |
tree | 4f2f2e6b549910f715068e70dbcc3f0dd65eda78 /www-servers | |
parent | Update sys-devel/llvm-3.5.0 (diff) | |
download | srcshelton-cf01a0c82fcc5603fd03b63bdbfcabb07a357dd7.tar.gz srcshelton-cf01a0c82fcc5603fd03b63bdbfcabb07a357dd7.tar.bz2 srcshelton-cf01a0c82fcc5603fd03b63bdbfcabb07a357dd7.zip |
Add www-servers/lighttpd-1.4.35-r1
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/lighttpd/Manifest | 2 | ||||
-rw-r--r-- | www-servers/lighttpd/files/lighttpd.logrotate-r1 | 23 | ||||
-rw-r--r-- | www-servers/lighttpd/lighttpd-1.4.35-r1.ebuild | 237 |
3 files changed, 262 insertions, 0 deletions
diff --git a/www-servers/lighttpd/Manifest b/www-servers/lighttpd/Manifest index 63af4278..0f0c5ffb 100644 --- a/www-servers/lighttpd/Manifest +++ b/www-servers/lighttpd/Manifest @@ -9,6 +9,7 @@ AUX lighttpd-1.4.33-fix-ipv6-build.patch 661 SHA256 28d892b34d60151dbb8ccbd3d57c AUX lighttpd.confd 383 SHA256 bb6e6721f33e6582a91025f3500e159a599fb856d699e9394093e1018c7925e0 SHA512 a28bf860ed23836063c37c14ca33dcd70f4b1234326442f8c0bc23b44efb53f5752292a98cf5f4a6c6cfc0f9e06b3c8a2f9d3b9512b0146e680af021570ad16d WHIRLPOOL cea38f5edf0e0d30c46e815adbb03579816979215789944564f1b1bdb53a97f566857bb8bd72954bc91ae641a3a898ed87033980f7f69466ae33fbad5df88b35 AUX lighttpd.initd 1682 SHA256 4e7741cf9f702c981f14852357e7e1dcac7bb26b32dd5e872af01fce6026ffc8 SHA512 fe4e755c95355bb9c81f2a13b30df37e282238b3e5288335ca7ac66d6a2b6353ae3187446d0e2537f5094b37de884ef207859cc3ac7fd9f69df58c711dab405a WHIRLPOOL 764ceb47fa89eb81e930bedbf1401a04d0dbdf3c02e115bd5da991a77d35c7bd402d1753b8bd37df9206220874b8d1ae735f2ac0c176a4a7a15b70f497fe6b78 AUX lighttpd.logrotate 487 SHA256 503ee1cd454e2c0f9a212ef60dc8321893eda06ccf721ecbe94d189a09e0bc6c SHA512 e1284fe9ab4b9a53c21b40a5ac3e77e66343e187321b8a2f7464db64747f3a99f7e17a9e7c0e298db84a24fa1286cfe344dbff182eddd9de5c0605f5397a6972 WHIRLPOOL 96538a7fb86d6cb19dbc8eb6034e305fbc574edeb29e45d7fd8e58234fb8f1812daf7c1d845f9dfa052ebf9bfdc84b801a8aa68dfbad08aa88f32b0838a5bf5c +AUX lighttpd.logrotate-r1 713 SHA256 3906cfa13ce8c1c81b30140378fd2be18e469a5c933fb576061ed3ff738c0e2a SHA512 a556960d51e30a0f73ab84ec530ffee333658965d804dc4ff3748d4af3e4a89ae4ebc775af3a3b16c55de093c154b3bbbf548e03f3b1d606e033c806cbc2fc1c WHIRLPOOL e284a76018c52c219a928384bf8a0f888653241c3cd0ed794ed73a9cadc2d6ea4f0871e887321f670648f32fd5c34d08d3f24624fca058dd0fc41c3a29b9259a AUX lighttpd.service 252 SHA256 bcd5a17df1bf5fe1cd2af9393e18c33a23eca5fb706de44472b214dd0cfb82fc SHA512 0a890005a8eb7d813c687bca8611018cf158152d04eb8355abf963cb74c06d712060bb66cb96d8d6d48ac71839b89bfec74e32b8f143b411c8570ec9c38ae5be WHIRLPOOL 811c4cfe203e261493da5d42dac541001982faffc0335e1a0359cb5d0b174aae136d825d4c63d89d90b3ed33d5d47fb6ce39dce6792443486b3d113ba99fecfb 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 @@ -17,4 +18,5 @@ DIST lighttpd-1.4.35.tar.bz2 665955 SHA256 4a71c1f6d8af41ed894b507720c4c17184dc3 EBUILD lighttpd-1.4.32-r2.ebuild 6797 SHA256 18ab40b5fb8c8adb2a6a945fbd0524cca3d20356e4a788633db41a1abed2f2d8 SHA512 86b4ebb01988fa68c53ea28c53417e76150048f29909a61acc1c5ebc0c5ad2cc93d41f6e7182b22802ea874e75fd7eca530dae6ea3e2d7470021da3d959779bf WHIRLPOOL 1fbd878c2e1e440e37cb5083cbab3f872fbb34f81ed8ddae8e8c9f0d4f6ff1e38c6efb83fb2d89927760ae2589e842abe87ef8da1589938b07e5f6c2036fef1e EBUILD lighttpd-1.4.32-r3.ebuild 6893 SHA256 00d91849d121c75ad5602fa57bb6879f52ea5246f4f756fa4e44467007c39d18 SHA512 01f1278cd03e20b99365ce3c97d22b9cfd57c4728679f46ec570845e7898893fa7dad7a87ac38c19033336cf863604424d7b22fb7de723c69babb5402afc8e5f WHIRLPOOL 5645c3033afd829682c0879c08931b0752cc2f7ee3eab1d51fa019a58e8371703375c75db510acfe9291b0a2fa5295e329da0fdae63c7efb41f54968417f06f1 EBUILD lighttpd-1.4.33.ebuild 6958 SHA256 6e753b3c9f61e5ce0bd36cf88635a15c17685694f7c954cd6280bdae78b51c08 SHA512 db64ccfabdc0b2e0dc4b11734576381c88f496f198e58083b67f8d2d7f0fc9a06e4fcd5b8b67a5866724ab66d38453d6c5d6aefe3dbd5b21dfcf9a5d11782cce WHIRLPOOL 1ed4d37371f029fef2c39f06f6cc35b31bc7b78185232d9bce2ac92deafbc6410cc63f2fde67fdea0acefbca2b6eaa3adef305ae47f1a6b69fe81585027923aa +EBUILD lighttpd-1.4.35-r1.ebuild 6959 SHA256 177b395721babe5b355a030b7996457f439924487e93fd3eb71480d52fce4c58 SHA512 4058fe7e04efc6725fcd7be5c141c6688cb9dfd52b47c925295cd5c91f54c4adab0c4db8b75d50facf59171b3604ba3e636bd53a29f21fd14ff1e866f3b93e05 WHIRLPOOL d6e46d1f96aea1a9c2153b00ed6fd8bd7761ae071fb3cda4111f8f5e25d1ae84f145fc2821b7340ba9c442826b03298f85afcef7f96e33090a64f37896bb551c EBUILD lighttpd-1.4.35.ebuild 6917 SHA256 9db0fa819c2ceb4dc9a6127d8c8b88128f529f514f209170d03c20f62900678a SHA512 84ff8f693fb39f5683700fb04de2096286f88c361719ee05477dcaf957af617b29796e8dbc76adc59a00d1412a62d6025c4340a01b5c7c7c3dd68928495fff21 WHIRLPOOL db4756002d44db1f158c4ac00194ed3d413abcd562d7caee2d36f7599089e375cca709874f255aedcfb91719350ff1fa5b67ccfda36c7aeef50efeb45778e9e1 diff --git a/www-servers/lighttpd/files/lighttpd.logrotate-r1 b/www-servers/lighttpd/files/lighttpd.logrotate-r1 new file mode 100644 index 00000000..6657b25f --- /dev/null +++ b/www-servers/lighttpd/files/lighttpd.logrotate-r1 @@ -0,0 +1,23 @@ +# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd.logrotate-r1,v 1.1 2014/05/02 10:57:57 pacho Exp $ +# lighttpd logrotate script for Gentoo + +/var/log/lighttpd/*.log { + daily + missingok + copytruncate + rotate 7 + compress + notifempty + sharedscripts + postrotate + if [ -x /etc/init.d/lighttpd ]; then \ + if /etc/init.d/lighttpd --quiet status; then \ + /etc/init.d/lighttpd --quiet reload || true ; \ + fi; \ + elif test -e /var/run/systemd/system; then \ + systemctl restart lighttpd reload 1>/dev/null || true ; \ + else \ + true ; \ + fi; + endscript +} diff --git a/www-servers/lighttpd/lighttpd-1.4.35-r1.ebuild b/www-servers/lighttpd/lighttpd-1.4.35-r1.ebuild new file mode 100644 index 00000000..5686c689 --- /dev/null +++ b/www-servers/lighttpd/lighttpd-1.4.35-r1.ebuild @@ -0,0 +1,237 @@ +# 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.35-r1.ebuild,v 1.6 2014/12/26 13:14:21 ago Exp $ + +EAPI="5" +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 systemd test uploadprogress webdav xattr zlib" + +REQUIRED_USE="kerberos? ( ssl )" + +CDEPEND=" + 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 ) + 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="${CDEPEND} + virtual/pkgconfig + doc? ( dev-python/docutils ) + test? ( + virtual/perl-Test-Harness + dev-libs/fcgi + )" + +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-apache ) +" + +# 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 + if ! use systemd; then + # Secure directory for fastcgi sockets + keepdir /var/run/lighttpd/ + fperms 0750 /var/run/lighttpd/ + fowners lighttpd:lighttpd /var/run/lighttpd/ + fi + + # 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-r1 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 + + if use systemd; then + systemd_dounit "${FILESDIR}/${PN}.service" + systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf" + fi +} + +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 +} + +# vi: set diffopt=iwhite,filler: |