diff options
author | 2017-04-27 20:50:34 +0100 | |
---|---|---|
committer | 2017-04-27 20:50:34 +0100 | |
commit | 0545225c92e5919e7879728e26cb6749d2ed4aed (patch) | |
tree | e58ff6a473a3603df9f7618fce702e4080ccf651 /www-servers | |
parent | Update sys-fs/lvm2-2.02.145-r2 (diff) | |
download | srcshelton-0545225c92e5919e7879728e26cb6749d2ed4aed.tar.gz srcshelton-0545225c92e5919e7879728e26cb6749d2ed4aed.tar.bz2 srcshelton-0545225c92e5919e7879728e26cb6749d2ed4aed.zip |
Add www-servers/lighttpd-1.4.45
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/lighttpd/Manifest | 4 | ||||
-rw-r--r-- | www-servers/lighttpd/files/Manifest.gentoo | 2 | ||||
-rw-r--r-- | www-servers/lighttpd/lighttpd-1.4.45.ebuild | 220 |
3 files changed, 224 insertions, 2 deletions
diff --git a/www-servers/lighttpd/Manifest b/www-servers/lighttpd/Manifest index c221134e..511fcfc7 100644 --- a/www-servers/lighttpd/Manifest +++ b/www-servers/lighttpd/Manifest @@ -1,4 +1,4 @@ -AUX Manifest.gentoo 905 SHA256 7846a0045ae1ffbe1ff8fe8588a0efec386b40fdcd3c8ec6ebed88dc6e6f7ff5 SHA512 561a0f3f47f080167fd56e4183ebd42c8348d7064abba6b0e595d00ce712d4735191e98cbf8cec75c310951efd9f568e315e5991f3a279232c4df89ecec0a70a WHIRLPOOL 81a6394ec28d2bf2d834d754fdb27963bf282ecbdd83ffc04d5e72ae55479adefb89bb92f799a58d4fc07efa2c0c0056506d6b279e3fa3543e1bbd21a1835e40 +AUX Manifest.gentoo 905 SHA256 4800d95a0f9ebdf5c11286d47007df9463ac3bd1a5078a88ea39870083bbad9f SHA512 c9614fc84f6c4e6601b8a7d020e8ecc6ce5b710b5800364def49d6e2c23cab145ae7e5c41cabc5e6a703bbe6ab53266a1ff59095cae9f7d8025bb971b61d60d8 WHIRLPOOL 721ecab69a707e2d13378cbc5c592047fd733ec9d076ab88c696b55884ad0d0dbe74aced9c451f7359d482fffa45a9482885a49d7c354be5c8d9b1f603fb947e AUX Manifest.gentoo_prefix 905 SHA256 7846a0045ae1ffbe1ff8fe8588a0efec386b40fdcd3c8ec6ebed88dc6e6f7ff5 SHA512 561a0f3f47f080167fd56e4183ebd42c8348d7064abba6b0e595d00ce712d4735191e98cbf8cec75c310951efd9f568e315e5991f3a279232c4df89ecec0a70a WHIRLPOOL 81a6394ec28d2bf2d834d754fdb27963bf282ecbdd83ffc04d5e72ae55479adefb89bb92f799a58d4fc07efa2c0c0056506d6b279e3fa3543e1bbd21a1835e40 AUX conf/lighttpd.conf 8311 SHA256 cac1fe4567d5a7bc9007b3d533396865da4a126b076870c972ea73c10337f223 SHA512 125f7fdfcd16f8138d3ce6bf8bdca43f79bdcc0cada1bae7d688c533898374374effb3cfa7b8b3a675849ca45120158fcf22de5105738074a63cb7bada5815f7 WHIRLPOOL b125a007233d599f41f626ecdfab1666927e86564dd616461c4f0fdef598679c9729c471101d3f4422386da465f109787014eced4f15431cdd38e3fe9bfdb2d1 AUX conf/mime-types.conf 3363 SHA256 56a053c83c1c60b5efd1a25a629ff44daf0170e80b1304d896ba795162a932cb SHA512 ca51096fbfe0e3166919fc80aac830801371f553e0b6d7ac9378cc6d3977748f37a578413e772ced16844e09a73c058795de95015c91eb6b731f588fa852516a WHIRLPOOL 16590795c8e011c5345975720d7e31d00048bd978ce332efd23bf4247ab970bb68a3432b2150b7d0dd4bc2b917b349c22a844a7201ac22743d3d038fe544147c @@ -13,6 +13,8 @@ AUX lighttpd.service 257 SHA256 3e8c6615b46f35e0e585fa6e788d4fc5725c656404d3c470 AUX lighttpd.tmpfiles.conf 44 SHA256 a31237336ad02b22579b5e2168485d43d350f78ed010d39a2dbc554dd574bbcb SHA512 795448ad726ebfe7688236a23cb21bf06bbf8edd7e243924e3d1c21d33fffba1e04501734b189eb2081f6737b74af7c978eed802fb5e540dcc5c5aea69544936 WHIRLPOOL 5774c609ead3af3758766cd69111af5e080dc230cb7632ae54ade74313a20f5680d83117a2a369230e2d7c5328e1703ecc315fa1555f79a688e8728a7a209b4a DIST lighttpd-1.4.35.tar.bz2 665955 SHA256 4a71c1f6d8af41ed894b507720c4c17184dc320590013881d5170ca7f15c5bf7 SHA512 13f8562fb735964fe7ef1b127a15c43907f34be70b6bd2dd4ba61b59275d7c2a8d9a7947ff1a4d7cc5fd7efd309fc66b7de6d954b59424f814ea2eb98fd876b9 WHIRLPOOL edbeb94ae29475be398e9281135fc43f915be68c5836ae3da302f7c94c3af19eeca601cedc9bfe59d552f45c6248a945b2de725613de395087e4e195efe9a62e DIST lighttpd-1.4.42.tar.xz 652140 SHA256 b2c9069ed0bade9362c27b469a9b884641786aea1c3d686f9fd9f01d15e2a15f SHA512 eb43a53f1fe7a115d0cf60ed8b79a22472a4fef939937401a475bdfd7244e53efa3aae1f66cd709989e77064aadd40004455b167ea3c4efc07ced261c18bd773 WHIRLPOOL 2886d02c477ffe4a36a4d33656c69c34df65b563e6ee81dad7be957ab472197fb91087e1e494b23f4e83a35939f102494140d34737fd280692503e54b3676fe7 +DIST lighttpd-1.4.45.tar.xz 660432 SHA256 1c97225deea33eefba6d4158c2cef27913d47553263516bbe9d2e2760fc43a3f SHA512 d030674a8c55aab12d32ac75f8df2628ba2332a5263c8bd2dd4f39342530080edc6ba2a6fee749c1301d601ab766a265d3c630b04d38bb26bba3cf045935573d WHIRLPOOL 8bf52ab4a33a1ede77185d6bb1a420cc61333bff67cc641625efb5e5c101eeb55ce1a177a5bd273408c857675c7ed91aeccffe5bc2109be145430e32979052c8 EBUILD lighttpd-1.4.35-r1.ebuild 6875 SHA256 7f7c00733a27e792cf136e828b05e1033527b1c3e8e33a3b1b8ef83e53bfd27c SHA512 79b7ade90b8390a7910aaaca5f0cdf27dbd2a29c22b7ee46302d6f8eca6586b10fb64db950efb6088eded9458774a324947eb8f1d4a0ad348bdf21fe80f0c982 WHIRLPOOL d2a64ee7b98309379e274e38511def5203f8bf8fbe7a77eba9e677beaac847b00a3255f1d93945ef57cb201e599de5ae31b48863cba3ce5575c9228203d28066 EBUILD lighttpd-1.4.35.ebuild 6838 SHA256 11d875d4ad91549603258fe7e82cbd1238d9092ccbd9d1d695d7654f947edabf SHA512 84e6f16b7d7cec9179b8568a06964fe28134540d23c906e773ae288c24d46ffd49ab3c55ad7c808a82a05bd3e47f03efb0c35869a64207cce30994ed27875fcd WHIRLPOOL 6fc3b9f6f144dfd3714d36e36e0774fa20e2c637dcb8f93ebf7afb84cf9ea875dc01f13ccaea3d244c2cb4cf72fffe065a3dc90fc049a5956205c04d927c41ad EBUILD lighttpd-1.4.42.ebuild 6191 SHA256 dd842f33b5e4f9edd3962565e1e90fd6ca5bf92cbbc3e37fcfdd3dbaa9043d68 SHA512 7fb08a6e228622b5d6d251504dfcff22cc260bdb68ba39202c37a98d6ecb814fb0e0ec0c74db12fc9f274819d4f5f5e9a46787181b8d4ca130d24e11266e2bad WHIRLPOOL 1295329726717a4e0c42e9dad4eb310ebd3dd163bea15dd84d05b6d4f0b3be6b96f14a47afb8437443699c8e1197ebc2d55f2b0de90170ca0923e53e20f82284 +EBUILD lighttpd-1.4.45.ebuild 6145 SHA256 8e366d265168f02edd8e0d585cd1c796a38769b5bf1fba78195bf13b3c390010 SHA512 4b40bf69e0dbc6f0f329c9ec0cef33e987adc25eee9a96e4f628408fe437711ed4f1bdd5f9eca99dd82e06594843221531a43ebd27898e0604112a7079944065 WHIRLPOOL 5752b0c8154dbfb2c29eb515f388ba74f7918f2b523c2d8688564c2ff86985a1251cc928b1db9f729b24c67f686b57544e14ec24564bc431c135eff0f9d0123f diff --git a/www-servers/lighttpd/files/Manifest.gentoo b/www-servers/lighttpd/files/Manifest.gentoo index bb771f65..609358a3 100644 --- a/www-servers/lighttpd/files/Manifest.gentoo +++ b/www-servers/lighttpd/files/Manifest.gentoo @@ -11,6 +11,6 @@ files/lighttpd.tmpfiles.conf 97e72818cd7adae729174c2c5e3a716c lighttpd-1.4.42.ebuild f1a113138c76e883e1c2c41cc186ccde lighttpd-1.4.43.ebuild 019e781ae36d94c31234d7a104971752 lighttpd-1.4.44.ebuild a62996809ab10f33b9520099da54524e -lighttpd-1.4.45.ebuild a62996809ab10f33b9520099da54524e +lighttpd-1.4.45.ebuild 3dc452b6a5367d0b91703b1bbffd0737 lighttpd-9999.ebuild b3fbf9f07b596552977565125ca0cdc8 metadata.xml 54cc6b344e7951a8cff9dd97e02b793a diff --git a/www-servers/lighttpd/lighttpd-1.4.45.ebuild b/www-servers/lighttpd/lighttpd-1.4.45.ebuild new file mode 100644 index 00000000..7f215784 --- /dev/null +++ b/www-servers/lighttpd/lighttpd-1.4.45.ebuild @@ -0,0 +1,220 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +inherit autotools eutils readme.gentoo-r1 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.xz" + +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 libressl lua minimal mmap memcached mysql pcre php rrdtool selinux ssl systemd test webdav xattr zlib" + +REQUIRED_USE="kerberos? ( ssl !libressl )" + +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:= ) + memcached? ( dev-libs/libmemcache ) + mysql? ( >=virtual/mysql-4.0 ) + pcre? ( >=dev-libs/libpcre-3.1 ) + php? ( dev-lang/php:*[cgi] ) + rrdtool? ( net-analyzer/rrdtool ) + ssl? ( + !libressl? ( >=dev-libs/openssl-0.9.7:0=[kerberos?] ) + libressl? ( dev-libs/libressl:= ) + ) + 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() { + default + #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" + 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 krb5) \ + $(use_with ldap) \ + $(use_with libev) \ + $(use_with lua) \ + $(use_with memcached) \ + $(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-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 +} + +# vi: set diffopt=iwhite,filler: |