summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2014-05-02 10:57:58 +0000
committerPacho Ramos <pacho@gentoo.org>2014-05-02 10:57:58 +0000
commit87bf89f6b536fd0e652fa08a70866d838f26c73c (patch)
tree1eb8011a3eeb18c561d47489e4b6eb1660cf3819 /www-servers
parentVersion bump to latest. Remove older shadowed to avoid bugs. (diff)
downloadhistorical-87bf89f6b536fd0e652fa08a70866d838f26c73c.tar.gz
historical-87bf89f6b536fd0e652fa08a70866d838f26c73c.tar.bz2
historical-87bf89f6b536fd0e652fa08a70866d838f26c73c.zip
Handle systemd in logrotate file (#508526 by SN)
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/lighttpd/ChangeLog8
-rw-r--r--www-servers/lighttpd/Manifest22
-rw-r--r--www-servers/lighttpd/files/lighttpd.logrotate-r116
-rw-r--r--www-servers/lighttpd/files/lighttpd.service1
-rw-r--r--www-servers/lighttpd/lighttpd-1.4.35-r1.ebuild224
5 files changed, 254 insertions, 17 deletions
diff --git a/www-servers/lighttpd/ChangeLog b/www-servers/lighttpd/ChangeLog
index c2323aba6e08..0950ceb71c67 100644
--- a/www-servers/lighttpd/ChangeLog
+++ b/www-servers/lighttpd/ChangeLog
@@ -1,6 +1,12 @@
# 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.329 2014/04/21 10:50:09 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.330 2014/05/02 10:57:57 pacho Exp $
+
+*lighttpd-1.4.35-r1 (02 May 2014)
+
+ 02 May 2014; Pacho Ramos <pacho@gentoo.org> +files/lighttpd.logrotate-r1,
+ +lighttpd-1.4.35-r1.ebuild, files/lighttpd.service:
+ Handle systemd in logrotate file (#508526 by SN)
21 Apr 2014; Agostino Sarubbo <ago@gentoo.org> lighttpd-1.4.35.ebuild:
Stable for alpha, wrt bug #504330
diff --git a/www-servers/lighttpd/Manifest b/www-servers/lighttpd/Manifest
index c6c980cecb51..d4f4e39a7b51 100644
--- a/www-servers/lighttpd/Manifest
+++ b/www-servers/lighttpd/Manifest
@@ -12,30 +12,22 @@ 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.service 252 SHA256 bcd5a17df1bf5fe1cd2af9393e18c33a23eca5fb706de44472b214dd0cfb82fc SHA512 0a890005a8eb7d813c687bca8611018cf158152d04eb8355abf963cb74c06d712060bb66cb96d8d6d48ac71839b89bfec74e32b8f143b411c8570ec9c38ae5be WHIRLPOOL 811c4cfe203e261493da5d42dac541001982faffc0335e1a0359cb5d0b174aae136d825d4c63d89d90b3ed33d5d47fb6ce39dce6792443486b3d113ba99fecfb
+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 6680 SHA256 2b777b2d4cc683fcea233bdf9d6e963ca683c3222a9e123ceb4cfd9ce8d5110f SHA512 834a3bd5d9ad453b3e75583a08bb63d0f27214df1d13dffa5ffbdc407e68cedc5a4c92e1864ef5c9a8106c36be9131fb89077b7dab7b41979750b6659c352a20 WHIRLPOOL 85c727be2f7d81da0a74b3ae065ee8c4aff4d98e1d3571b4104abd50747d9c91efb5ba87d9f192fb50079dd9d0e154eab8219367553fd267ace02e30ce985474
-MISC ChangeLog 65968 SHA256 89e032d8d8e54068a0edb5e004a5363bd6f12dc7506f001c159a0d293fa16c62 SHA512 cb96b08f7604c6dd8f1e6ebb111a7204431c2ee6937a6c6786437a07321c6ae41a47a037e115e2928bc1a3570c62675f7950830b80d8e081d95265b0089c5194 WHIRLPOOL b8b2f54a84745a8edd9783b91f63fc32101ff545f8459f82a22ef73f7941d3cb4d53ff339a86c9606fb3a6b039322afb39e6356d93670c9b3014913a2a1c208e
+MISC ChangeLog 66187 SHA256 12509b99965da8da76baea630e8a7fe42080253cff197723eea8cd36c8ab0d06 SHA512 23510f840c3bf7fc3213bffe350131fa93c8858a772c73c225a2cb84f02333105a22028bda002f6519afd8821c677b7e8641405be9ff55ba0b1b7c9d0304f82e WHIRLPOOL 6f765d8ea4622e5417551c7dc10b2394d4a9a60474953e0ac3a2f9dbd3b93376e864f7456996f410e19cb7c0a8c734a29931e18a324607fa45fb279282ffa33e
MISC metadata.xml 1315 SHA256 4a5b911cadfb5f48332d4c252cabdae052af96232321f0171e5ed1fa7194abce SHA512 4ff65b32d294a5ff288eafb81561e4160db69bbea3fab90dc7e80135901ce7c6aded4743b88d3e52e936c73d71b2ddef7d65523e6f737fd76994776bb9a6ea77 WHIRLPOOL 83a654aa9c34b778cded6acad83aaa891d57b3effc220a4a006123beef73d69e075eeb580d9b5c3021535da8a8ec64a933d0d62bd1e8ab639ccff4f3592b92f1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCAAGBQJTVPfiAAoJELp701BxlEWfnhoP+wVsbd2HS+cGGcAehvwwzJZq
-z8Ex5h50J5NoyzDMF355DWHXE3PQHp16wcziclLXVTudphqs9z3soxZjEKCQQ1/5
-N38TySKl/EkM0+/+hYegwYEt0a8Xhd8j9XHBIDEFX+iIWpKGWIMyfyn8/Yv5k/dd
-mAxlfbl8HZsjTfgNR6Sack5pwXFrPgGF/Z554mHJGyLr7o5K1Ll8yxEQYnQGdvI0
-8KbqpjZvlptOJRpPY+jDxx9QXa/oKM9NgIe8zbOHiqEpEnV5C+oLRMSMJ+1A6CIx
-+reO2Vtl6fDdRDUE6QMXt+zGQ9VeVki2/PaXzY7t7nMaiGCJnXiOzj1t9Pp243uj
-jrVcEDD5HaTZJoNsUwjmMoAlynykAnMBZgH6nJRkF+n5lsP4VnL1iZntVw4Ns5ei
-UzKI7razME8Ya7iuZ527UfeUMWBa1wMS5XSNTY5x+aeUddCCqALb+O17bhm6RweZ
-lfO7AAZ9R5E2Rb+y0bFZuAB3kLpAqJKlyNn/noq7f4bpYfZjAylEyamSwX/CLJsk
-iiugi1RuF9HewPQyzE5ps9remT2vipVJPeUlqFbKbG2mQNAfD0OabhooichkWB2W
-yxwIRNbsplzlaAaombbnbI0jOaeBw5UtoMfNKUYfCIh9EkToM8XDw6VpEdMxk+Qv
-TVsTw98yC4lUCDmpqUdR
-=xgSK
+iEYEAREIAAYFAlNjejYACgkQCaWpQKGI+9RPgACcD4gisrO3o3q6iOb7OsHlKnbf
+5rwAn0jLevUGtrZrpSQWnUA+U0N7f4ul
+=ZXyg
-----END PGP SIGNATURE-----
diff --git a/www-servers/lighttpd/files/lighttpd.logrotate-r1 b/www-servers/lighttpd/files/lighttpd.logrotate-r1
new file mode 100644
index 000000000000..4f648a6c4c23
--- /dev/null
+++ b/www-servers/lighttpd/files/lighttpd.logrotate-r1
@@ -0,0 +1,16 @@
+# $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
+ 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
+ endscript
+}
diff --git a/www-servers/lighttpd/files/lighttpd.service b/www-servers/lighttpd/files/lighttpd.service
index 369950c91b13..7980a20a527a 100644
--- a/www-servers/lighttpd/files/lighttpd.service
+++ b/www-servers/lighttpd/files/lighttpd.service
@@ -3,7 +3,6 @@ Description=Lightning Fast Webserver With Light System Requirements
After=syslog.target network.target
[Service]
-PIDFile=/var/run/lighttpd.pid
ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
[Install]
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 000000000000..b710109fb40d
--- /dev/null
+++ b/www-servers/lighttpd/lighttpd-1.4.35-r1.ebuild
@@ -0,0 +1,224 @@
+# 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.1 2014/05/02 10:57:57 pacho 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 )"
+
+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-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
+}