summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2015-02-21 21:11:59 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2015-02-21 21:11:59 +0000
commitd4957b9e7ff6fec5d2bf57a7daea9ef8c6d987f7 (patch)
treecc46848a57ba46b61108cc9b97332a30de02b935 /www-servers/lighttpd
parentNew package, dependency of dev-perl/MongoDB (diff)
downloadhistorical-d4957b9e7ff6fec5d2bf57a7daea9ef8c6d987f7.tar.gz
historical-d4957b9e7ff6fec5d2bf57a7daea9ef8c6d987f7.tar.bz2
historical-d4957b9e7ff6fec5d2bf57a7daea9ef8c6d987f7.zip
Fix logrotate script for systemd. Thanks to Karsten Kretschmer
Package-Manager: portage-2.2.17/cvs/Linux x86_64 Manifest-Sign-Key: 0x09BF4F54C2BA7F3C!
Diffstat (limited to 'www-servers/lighttpd')
-rw-r--r--www-servers/lighttpd/ChangeLog8
-rw-r--r--www-servers/lighttpd/Manifest27
-rw-r--r--www-servers/lighttpd/files/lighttpd.logrotate-r14
-rw-r--r--www-servers/lighttpd/files/lighttpd.service1
-rw-r--r--www-servers/lighttpd/lighttpd-1.4.35-r2.ebuild227
5 files changed, 241 insertions, 26 deletions
diff --git a/www-servers/lighttpd/ChangeLog b/www-servers/lighttpd/ChangeLog
index 3bfaacbaa056..3c3959008185 100644
--- a/www-servers/lighttpd/ChangeLog
+++ b/www-servers/lighttpd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-servers/lighttpd
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.343 2015/01/02 12:14:55 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.344 2015/02/21 21:11:57 hwoarang Exp $
+
+*lighttpd-1.4.35-r2 (21 Feb 2015)
+
+ 21 Feb 2015; Markos Chandras <hwoarang@gentoo.org> +lighttpd-1.4.35-r2.ebuild,
+ files/lighttpd.logrotate-r1, files/lighttpd.service:
+ Fix logrotate script for systemd. Thanks to Karsten Kretschmer
02 Jan 2015; Agostino Sarubbo <ago@gentoo.org> lighttpd-1.4.35-r1.ebuild:
Stable for sparc, wrt bug #516842
diff --git a/www-servers/lighttpd/Manifest b/www-servers/lighttpd/Manifest
index 8bf665357787..2d0d584ed028 100644
--- a/www-servers/lighttpd/Manifest
+++ b/www-servers/lighttpd/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX conf/lighttpd.conf 8383 SHA256 52598c3428ede27e2784861df16cc1f7b811feee4f4273b26515aba4a79431b6 SHA512 8befa83dd2ccc1df0187c31c233a3bffd7d059ccc1ce4aa96fbd9a6fd0c402d8ddf0f6b9bd8dc7ff2279103ee92ddd53ecf6aac509deb3ffc17d62ed1cad413e WHIRLPOOL 685806f9e770c803f7a0498b4b9f8f4d1aaad510ec93f61979c3ab8e9ed4e34893bccf03b6e33c9d7798943c1110b3409782d863c345a6e6f1f9312c1106b1fb
AUX conf/mime-types.conf 3436 SHA256 75a6fce072250ebccde2320996fdace0ebfeb525b03322f0b454f8f4e0e29a85 SHA512 a3f2f5763885d7e4f510491b24164e34aaf62bb02daa12991575dc64335c12668355af5bb8d6ce191eb4e9cce95324b1f7c9ba61b323b4e7b50a1e03e021afcf WHIRLPOOL 4302b7ea4d95d35c52f3a4f4d70b7501d5d84ab38a159f1e13a546b072fa051ed99eeac5e234e5788c788d18d1a60e31cca5af0c56a4a6bfd4e468ecbd1550ff
AUX conf/mod_cgi.conf 869 SHA256 322656b4cfd22ca9f1f8ab160e0b932f1646622422fd49c6fc82ab416223eecf SHA512 27cc638d8068dcf47bd9db44943d1db6c6f4e8e6abd6b42af7cea004b1c093440068541d98c68f8bea70b956713adaf8ed59a4b642dea826ee8620a05f8cfde5 WHIRLPOOL 6384804166120172603e92dd1642666b995fe1987fa8033518d0395b7e0b9e029a06edb989515f405dd5a5e4c5e5c0706d98e24a72ca4f1ff6c35c9607200c73
@@ -12,28 +9,12 @@ 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 1674 SHA256 b1515472c32927039b38f6c3a797cbc54a5a300b5d6fa54df9550174afa2b7f8 SHA512 6d945f9f02cba85d0ab6c67508c6853dd4372fc44e16ad1276dce890b5929a175c55286cc95ea974997690fae89d565684897d78f88466e261642d7d83223aad WHIRLPOOL 0474e19680d20b205975b7392929641388f7dfef10524f8aa99580d6213cf04f220842e26c479d3aac880c27838f5e7245f33d49a67fa71b892c13b0e08454a8
AUX lighttpd.logrotate 487 SHA256 503ee1cd454e2c0f9a212ef60dc8321893eda06ccf721ecbe94d189a09e0bc6c SHA512 e1284fe9ab4b9a53c21b40a5ac3e77e66343e187321b8a2f7464db64747f3a99f7e17a9e7c0e298db84a24fa1286cfe344dbff182eddd9de5c0605f5397a6972 WHIRLPOOL 96538a7fb86d6cb19dbc8eb6034e305fbc574edeb29e45d7fd8e58234fb8f1812daf7c1d845f9dfa052ebf9bfdc84b801a8aa68dfbad08aa88f32b0838a5bf5c
-AUX lighttpd.logrotate-r1 519 SHA256 4d95b9a3464d866f372ace5b4e4676e81fa6289b53faadc851bac4edf4c6cc17 SHA512 8079b2a2ffbe5c9f4b6cd8793d396268055b6f02d19ad6e4f81fdae2cba75d346b182cb5dd0bb68975e243cd3f7d35890ff51a68a92acf476833e265f5145abc WHIRLPOOL 6f5c87831de1147ebb529955b834155259a969ca691b7e56177d0ffeb00fa173e03a1bf0ad4de24688e4ffd6f5e3af76897025fc6a914a5668f367a2511a4566
-AUX lighttpd.service 222 SHA256 0a25ef6bfa69dcf900510e45ec0cc348ad694a0598b1003faf3c72cc09b1e550 SHA512 09914f5f14d0c836bad20770d963b9577b16cd0facbb50b56566ed1b8ff52b3bc1afe5dc39be26356198224a1c7a8dd6675cdff3a614a7e008b4e316e4b27ae7 WHIRLPOOL 31446af4830301b8dbf2b704368c2c2f3fab5c5262acb69224ce087d958efb40b72829fba2b0c0f07a6c242f5d6d1a2007013814ace01f0cde892c21f41137d4
+AUX lighttpd.logrotate-r1 510 SHA256 2e279bd7aba9cdcaecc49ba81f48c77733cfe414d661ed90fb028ce296f20335 SHA512 973261841f6238e79778cead98c6ba5c1f0940b0801982c2ffd8f5149d311bde0d5223faeade5d8c7ad372dfa113bd9e23a2ac1abd916862ec91acf8938f465c WHIRLPOOL 58bd37cfda41d412eda318285b53f52203685f77ab1da64d0736a1bb67781ccd0dab155939b8ef10cc0801ff334fcddc5405be7a9f5d7d466504e5233df50d8c
+AUX lighttpd.service 257 SHA256 3e8c6615b46f35e0e585fa6e788d4fc5725c656404d3c47081ceca77f8873c6b SHA512 fbcd7dbf9c6b97284465af133a7cd1f711978ef4318a749ff7d366b053265fac94a1d76f074f56722c382179631d38ed8a07ac2c2fc4b712a93acab2f3609c0f WHIRLPOOL f6078f3b676d753fd130e46367043bc498617d19564c8e78874629f82f2df817e2398774aa41382d6a38826d7bdaf5b2190fa6e298ae83d6819d4aacf758a979
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
EBUILD lighttpd-1.4.35-r1.ebuild 6708 SHA256 917579936f5b2b2cd9b847a36fdce658a1b33b95d218f7da5f9bcdd3c2dc3fdc SHA512 4c1de5bba926c4552497cec828d4476e243d97934f308d1e4800ae069a223676a16cb258e2884043806590ed5b70801903e7f1086239baeed9bd9bcb11b39ae8 WHIRLPOOL cf0ad343c25ec8ca0a72cc71c800d2719bc67f903623846d8ecd5001dae54d89f10d65745e6c1b2e081790028e0971eb4b3ea098101e7892097e537b42ddbf37
+EBUILD lighttpd-1.4.35-r2.ebuild 6726 SHA256 4e7c257a8d89b326dd286090ef8fbae6a90d748f2e14ea00a4cdd975c29b0666 SHA512 fd6bcadc70a98b78dcf9aece6a7fdd057b34b1dcc8d8635af83fe7c9998a3e9f9a0073ed7a3b4c608624f49efcc7d092e9e39de2ec5a9faf034e11fe080db0bd WHIRLPOOL 8b3b2b650e28b807467605a5c34db08cde27aee56da3906e016e0f31ac7e4e25cb72988713345ba21681b8ccc73deede3f244b2832ede9e46ddf97032ccafc69
EBUILD lighttpd-1.4.35.ebuild 6703 SHA256 393997b5acd0630af59abd3cae8ed1a30cdbd528a57ae558e40e3f1efc865df1 SHA512 daeafcc7e4c849dc4920f9fe2adba9fdbf0f77f27ec0f48b9f4ffb82e7fe2e7c528f0ece7475a316c753cbd053b7fa05628877fcd7b1801f98c613c4a5e6bfa8 WHIRLPOOL 9575338595dece1c0b650ca3145a78b4344e794d4ee687c759bd836e08cdfa71215538d310ca881ff56e5659aae2966a052afea5969aaea55285106d268d90dd
-MISC ChangeLog 67717 SHA256 549240c2a18e0af43889ed45955c4c3892c0c1747324f6912a4e1fb52f5d446f SHA512 d100bae25b9a4d0e58a017016da8cf580f144e9b166eeff52bd2db54a4cff678e12fe35c70d7417c620ff312f353fc45703aea2565deb29797450f5eae08fc8c WHIRLPOOL bbde51d1ecf8628c0bec26adbb41c0a9a6dfed13eda91357ab3a2c4db9bc036c3e4d649bce6b5b4090a0f169315ff5b94625ec23e2ba3704e48b30d8ea046d7f
+MISC ChangeLog 67959 SHA256 018a9a0b2b69640520760926486a59732951f78abb6d1edd1672f8ceddaf17d0 SHA512 71ef53bf09a5dd7215e8a77454f0607b41220b1b61073bea1bf9b210183d23750fe41b6d674664bfbbf67ca95a7ff1bc3b12fb988db602f4ab46096597169d94 WHIRLPOOL 6d09674a688fb479ff6ecd12183aed719c7d393301cc0ae0dcebdc513e5359fc8cf57fb3523567a9171f86c8878d8c6f52f5e5b1d7c7ddf733a536e8dfe3fabd
MISC metadata.xml 1315 SHA256 4a5b911cadfb5f48332d4c252cabdae052af96232321f0171e5ed1fa7194abce SHA512 4ff65b32d294a5ff288eafb81561e4160db69bbea3fab90dc7e80135901ce7c6aded4743b88d3e52e936c73d71b2ddef7d65523e6f737fd76994776bb9a6ea77 WHIRLPOOL 83a654aa9c34b778cded6acad83aaa891d57b3effc220a4a006123beef73d69e075eeb580d9b5c3021535da8a8ec64a933d0d62bd1e8ab639ccff4f3592b92f1
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2
-
-iQIcBAEBCAAGBQJUpovBAAoJELp701BxlEWfcIwP/Ag4JATxIh6NcJ5DwQpHHCll
-kuZd92nWTdqzO5zRC60kj/0Ykso5IGAEVMhFePveaJifSZ/vgPX/XNdT4Cmm8M8d
-BdPNTu1ks6G/ZwmY0amivzWkZP5Ph3udOk7RWNRKATfFBl96OUHNabgZoDnzWZFu
-Lt0pyohWT7Hwz3FDEYzMmcpkCiwHvmawHI5m0O4D1L7kGP8rJ/X0cTYIFpM5QohL
-eyCsrgvsb2UeHRu9RrIP2Lg1PqiUSKbMeg/a6omNSCUz1bTe/ar6UzVZlQdvlcnJ
-NVgMIP70UARqnDuJzrfWnVaI3D4aGuQS4QY1tRKeP3DBcwVF4nTw0VlPClUh3of7
-Z7maVWjGmy7aFxdgmITuu8ihlPo9euTh+HgNid+pWhVmAIJsa0vY4S4DcZYCMhKu
-f43lkxNCsWiZlUtjIChk5Trf21EWZLXH/a3kF2NaepEBFpz+IFXQXjrilHUV7pBU
-Ir6glAsWlIuv1XtM+VKUsmjNkGb/UyS2+GRpijDPBp96NTYz/K4dPFrfJ6pPwGeg
-kVSX6MVgmeAE9ykX3AtXw354+pxUs2hBt9JmwadUvcR33laNuWhxzCQnrFbHZJ39
-mCs6FZUfPpB9HYedlTzXJkPPv07mSSwuQQd0X+0KFdhHVQezobSpQboPzKbK8GzR
-y7I27Ps2FLm7PULgMK6k
-=ka0K
------END PGP SIGNATURE-----
diff --git a/www-servers/lighttpd/files/lighttpd.logrotate-r1 b/www-servers/lighttpd/files/lighttpd.logrotate-r1
index 4f648a6c4c23..1bb4d163a7ad 100644
--- a/www-servers/lighttpd/files/lighttpd.logrotate-r1
+++ b/www-servers/lighttpd/files/lighttpd.logrotate-r1
@@ -1,4 +1,4 @@
-# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd.logrotate-r1,v 1.1 2014/05/02 10:57:57 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd.logrotate-r1,v 1.2 2015/02/21 21:11:57 hwoarang Exp $
# lighttpd logrotate script for Gentoo
/var/log/lighttpd/*.log {
@@ -11,6 +11,6 @@
sharedscripts
postrotate
test -e /run/openrc/softlevel && /etc/init.d/lighttpd reload 1>/dev/null || true
- test -e /run/systemd/system && systemctl restart lighttpd reload 1>/dev/null || true
+ test -e /run/systemd/system && systemctl reload lighttpd.service || true
endscript
}
diff --git a/www-servers/lighttpd/files/lighttpd.service b/www-servers/lighttpd/files/lighttpd.service
index 7980a20a527a..f5f5be757626 100644
--- a/www-servers/lighttpd/files/lighttpd.service
+++ b/www-servers/lighttpd/files/lighttpd.service
@@ -4,6 +4,7 @@ After=syslog.target network.target
[Service]
ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
+ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
diff --git a/www-servers/lighttpd/lighttpd-1.4.35-r2.ebuild b/www-servers/lighttpd/lighttpd-1.4.35-r2.ebuild
new file mode 100644
index 000000000000..8951f9ff3060
--- /dev/null
+++ b/www-servers/lighttpd/lighttpd-1.4.35-r2.ebuild
@@ -0,0 +1,227 @@
+# Copyright 1999-2015 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-r2.ebuild,v 1.1 2015/02/21 21:11:57 hwoarang 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 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
+
+ # 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
+
+ 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
+}