Gentoo Archives: gentoo-commits

From: Daniel Campbell <zlg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/lighttpd/
Date: Mon, 02 Jan 2017 14:52:00
Message-Id: 1483368704.bc86a893c3ac6e539849c6194899af320c302173.zlg@gentoo
1 commit: bc86a893c3ac6e539849c6194899af320c302173
2 Author: Daniel Campbell <zlg <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 14:51:25 2017 +0000
4 Commit: Daniel Campbell <zlg <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 14:51:44 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc86a893
7
8 www-servers/lighttpd: version bump, bug 603834
9
10 Gentoo-Bug: 603834
11 Gentoo-Bug-URL: https://bugs.gentoo.org/603834
12
13 Package-Manager: Portage-2.3.3, Repoman-2.3.1
14
15 www-servers/lighttpd/Manifest | 1 +
16 www-servers/lighttpd/lighttpd-1.4.44.ebuild | 217 ++++++++++++++++++++++++++++
17 2 files changed, 218 insertions(+)
18
19 diff --git a/www-servers/lighttpd/Manifest b/www-servers/lighttpd/Manifest
20 index ccae953..e39a003 100644
21 --- a/www-servers/lighttpd/Manifest
22 +++ b/www-servers/lighttpd/Manifest
23 @@ -3,3 +3,4 @@ DIST lighttpd-1.4.37.tar.xz 574020 SHA256 804e6f60567ca1da2b3927f92b7e9332b93aca
24 DIST lighttpd-1.4.39.tar.xz 579180 SHA256 7eb9a1853c3d6dd5851682b0733a729ba4158d6bdff80974d5ef5f1f6887365b SHA512 69bf56afe2bec381566defdc20961554e405e5e7f77b0067e1a29a04e65167b9283cf08655b8dae1c2b6fdddde31245253b5506a532a83f363dce066811b61b3 WHIRLPOOL 5f0fe57afd11a555d5aac76c6abb8b78e34d7f56b0b2921a318297efde420b4762048045274a51e4e030279cbd6d14ee0a344d2c91c18755a0a9d5f83f4bafb8
25 DIST lighttpd-1.4.42.tar.xz 652140 SHA256 b2c9069ed0bade9362c27b469a9b884641786aea1c3d686f9fd9f01d15e2a15f SHA512 eb43a53f1fe7a115d0cf60ed8b79a22472a4fef939937401a475bdfd7244e53efa3aae1f66cd709989e77064aadd40004455b167ea3c4efc07ced261c18bd773 WHIRLPOOL 2886d02c477ffe4a36a4d33656c69c34df65b563e6ee81dad7be957ab472197fb91087e1e494b23f4e83a35939f102494140d34737fd280692503e54b3676fe7
26 DIST lighttpd-1.4.43.tar.xz 656248 SHA256 fe0c4a06dd2408a83ee7a2bfedc45e09597f3313cbda82485507573ae8fa948a SHA512 131e1d96276a6b5ca597bae9ff78df20bfc9907e9c832b6fdea8b86d493764a5dce24cfc3bb2e931755af18a26b0e8c6fd21714fca7d6c6a402c85f7fe4a588a WHIRLPOOL 90110b2b06c3579c435cd5a0539371bba8f0b70f7c1ee344ed98b9a55d6dd07c38d11430589b11257385815183bf208aed3c115554c6822056a7cedf5047341c
27 +DIST lighttpd-1.4.44.tar.xz 660304 SHA256 adb66ca985651957feb209c91c55ebbf917d23630bfc3a216a2f70043c7b5422 SHA512 b7481482bc130c80f076002b2853e1b0ecb2af5d6c6f5428854ae7a60bda591cf96f23e9f3a24cfb36ada3ba97ebff449e102895f7eb4b0aa50ec275eb44725b WHIRLPOOL 69431f5626ca64a8bd4f4e3ada01a22cfa4516e54a11d3050943696aafcb01d0c62db71259054ca24378b1b21b4c33f0a1521e676bff6b37c7bdf661edad6a99
28
29 diff --git a/www-servers/lighttpd/lighttpd-1.4.44.ebuild b/www-servers/lighttpd/lighttpd-1.4.44.ebuild
30 new file mode 100644
31 index 00000000..24ffa8e
32 --- /dev/null
33 +++ b/www-servers/lighttpd/lighttpd-1.4.44.ebuild
34 @@ -0,0 +1,217 @@
35 +# Copyright 1999-2017 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI="6"
40 +inherit autotools eutils readme.gentoo-r1 user systemd
41 +
42 +DESCRIPTION="Lightweight high-performance web server"
43 +HOMEPAGE="http://www.lighttpd.net/"
44 +SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.xz"
45 +
46 +LICENSE="BSD GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
49 +IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev libressl lua minimal mmap memcached mysql pcre php rrdtool selinux ssl test webdav xattr zlib"
50 +
51 +REQUIRED_USE="kerberos? ( ssl !libressl )"
52 +
53 +CDEPEND="
54 + bzip2? ( app-arch/bzip2 )
55 + fam? ( virtual/fam )
56 + gdbm? ( sys-libs/gdbm )
57 + ldap? ( >=net-nds/openldap-2.1.26 )
58 + libev? ( >=dev-libs/libev-4.01 )
59 + lua? ( >=dev-lang/lua-5.1:= )
60 + memcached? ( dev-libs/libmemcache )
61 + mysql? ( >=virtual/mysql-4.0 )
62 + pcre? ( >=dev-libs/libpcre-3.1 )
63 + php? ( dev-lang/php:*[cgi] )
64 + rrdtool? ( net-analyzer/rrdtool )
65 + ssl? (
66 + !libressl? ( >=dev-libs/openssl-0.9.7:0=[kerberos?] )
67 + libressl? ( dev-libs/libressl:= )
68 + )
69 + webdav? (
70 + dev-libs/libxml2
71 + >=dev-db/sqlite-3
72 + sys-fs/e2fsprogs
73 + )
74 + xattr? ( kernel_linux? ( sys-apps/attr ) )
75 + zlib? ( >=sys-libs/zlib-1.1 )"
76 +
77 +DEPEND="${CDEPEND}
78 + virtual/pkgconfig
79 + doc? ( dev-python/docutils )
80 + test? (
81 + virtual/perl-Test-Harness
82 + dev-libs/fcgi
83 + )"
84 +
85 +RDEPEND="${CDEPEND}
86 + selinux? ( sec-policy/selinux-apache )
87 +"
88 +
89 +# update certain parts of lighttpd.conf based on conditionals
90 +update_config() {
91 + local config="${D}/etc/lighttpd/lighttpd.conf"
92 +
93 + # enable php/mod_fastcgi settings
94 + use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; }
95 +
96 + # enable stat() caching
97 + use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; }
98 +
99 + # automatically listen on IPv6 if built with USE=ipv6. Bug #234987
100 + use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; }
101 +}
102 +
103 +# remove non-essential stuff (for USE=minimal)
104 +remove_non_essential() {
105 + local libdir="${D}/usr/$(get_libdir)/${PN}"
106 +
107 + # text docs
108 + use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
109 +
110 + # non-essential modules
111 + rm -f \
112 + ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
113 +
114 + # allow users to keep some based on USE flags
115 + use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
116 + use webdav || rm -f ${libdir}/mod_webdav.*
117 + use mysql || rm -f ${libdir}/mod_mysql_vhost.*
118 + use lua || rm -f ${libdir}/mod_{cml,magnet}.*
119 + use rrdtool || rm -f ${libdir}/mod_rrdtool.*
120 + use zlib || rm -f ${libdir}/mod_compress.*
121 +}
122 +
123 +pkg_setup() {
124 + if ! use pcre ; then
125 + ewarn "It is highly recommended that you build ${PN}"
126 + ewarn "with perl regular expressions support via USE=pcre."
127 + ewarn "Otherwise you lose support for some core options such"
128 + ewarn "as conditionals and modules such as mod_re{write,direct}"
129 + ewarn "and mod_ssi."
130 + fi
131 + if use mmap; then
132 + ewarn "You have enabled the mmap option. This option may allow"
133 + ewarn "local users to trigger SIGBUG crashes. Use this option"
134 + ewarn "with EXTRA care."
135 + fi
136 + enewgroup lighttpd
137 + enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
138 +
139 + DOC_CONTENTS="IPv6 migration guide:\n
140 + http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config"
141 +}
142 +
143 +src_prepare() {
144 + default
145 + #dev-python/docutils installs rst2html.py not rst2html
146 + sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \
147 + die "sed doc/Makefile.am failed"
148 + eautoreconf
149 +}
150 +
151 +src_configure() {
152 + econf --libdir=/usr/$(get_libdir)/${PN} \
153 + --enable-lfs \
154 + $(use_enable ipv6) \
155 + $(use_enable mmap) \
156 + $(use_with bzip2) \
157 + $(use_with fam) \
158 + $(use_with gdbm) \
159 + $(use_with kerberos krb5) \
160 + $(use_with ldap) \
161 + $(use_with libev) \
162 + $(use_with lua) \
163 + $(use_with memcached) \
164 + $(use_with mysql) \
165 + $(use_with pcre) \
166 + $(use_with ssl openssl) \
167 + $(use_with webdav webdav-props) \
168 + $(use_with webdav webdav-locks) \
169 + $(use_with xattr attr) \
170 + $(use_with zlib)
171 +}
172 +
173 +src_compile() {
174 + emake
175 +
176 + if use doc ; then
177 + einfo "Building HTML documentation"
178 + cd doc || die
179 + emake html
180 + fi
181 +}
182 +
183 +src_test() {
184 + if [[ ${EUID} -eq 0 ]]; then
185 + default_src_test
186 + else
187 + ewarn "test skipped, please re-run as root if you wish to test ${PN}"
188 + fi
189 +}
190 +
191 +src_install() {
192 + emake DESTDIR="${D}" install
193 +
194 + # init script stuff
195 + newinitd "${FILESDIR}"/lighttpd.initd lighttpd
196 + newconfd "${FILESDIR}"/lighttpd.confd lighttpd
197 + use fam && has_version app-admin/fam && \
198 + { sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd || die; }
199 +
200 + # configs
201 + insinto /etc/lighttpd
202 + doins "${FILESDIR}"/conf/lighttpd.conf
203 + doins "${FILESDIR}"/conf/mime-types.conf
204 + doins "${FILESDIR}"/conf/mod_cgi.conf
205 + doins "${FILESDIR}"/conf/mod_fastcgi.conf
206 +
207 + # update lighttpd.conf directives based on conditionals
208 + update_config
209 +
210 + # docs
211 + dodoc AUTHORS README NEWS doc/scripts/*.sh
212 + newdoc doc/config//lighttpd.conf lighttpd.conf.distrib
213 + use ipv6 && readme.gentoo_create_doc
214 +
215 + use doc && dohtml -r doc/*
216 +
217 + docinto txt
218 + dodoc doc/outdated/*.txt
219 +
220 + # logrotate
221 + insinto /etc/logrotate.d
222 + newins "${FILESDIR}"/lighttpd.logrotate-r1 lighttpd
223 +
224 + keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
225 + fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
226 + fperms 0750 /var/l{ib,og}/lighttpd
227 +
228 + #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
229 + rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
230 +
231 + use minimal && remove_non_essential
232 +
233 + systemd_dounit "${FILESDIR}/${PN}.service"
234 + systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf"
235 +}
236 +
237 +pkg_postinst () {
238 + use ipv6 && readme.gentoo_print_elog
239 +
240 + if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
241 + einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
242 + einfo "spawn-fcgi's init script configuration is now located"
243 + einfo "at /etc/conf.d/spawn-fcgi."
244 + fi
245 +
246 + if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
247 + elog "Gentoo has a customized configuration,"
248 + elog "which is now located in /etc/lighttpd. Please migrate your"
249 + elog "existing configuration."
250 + fi
251 +}