1 |
commit: e9b99c9b4238321ae45e56b4a31c60ac79d1c98a |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 26 09:01:16 2018 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 26 09:01:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b99c9b |
7 |
|
8 |
www-servers/lighttpd: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
www-servers/lighttpd/Manifest | 3 - |
13 |
www-servers/lighttpd/lighttpd-1.4.42.ebuild | 216 ---------------------------- |
14 |
www-servers/lighttpd/lighttpd-1.4.43.ebuild | 216 ---------------------------- |
15 |
www-servers/lighttpd/lighttpd-1.4.44.ebuild | 216 ---------------------------- |
16 |
4 files changed, 651 deletions(-) |
17 |
|
18 |
diff --git a/www-servers/lighttpd/Manifest b/www-servers/lighttpd/Manifest |
19 |
index 0b5f64b4217..47fa449231a 100644 |
20 |
--- a/www-servers/lighttpd/Manifest |
21 |
+++ b/www-servers/lighttpd/Manifest |
22 |
@@ -1,6 +1,3 @@ |
23 |
-DIST lighttpd-1.4.42.tar.xz 652140 BLAKE2B 17cd3c7dfb8eb19fd5c374d79030d603fd693fa7ad6565dce6c2f5c88bfcb3c7b32b16a5337e22daf68efa20ff99eca9a622121080fa20597b8aafa59ba3f56d SHA512 eb43a53f1fe7a115d0cf60ed8b79a22472a4fef939937401a475bdfd7244e53efa3aae1f66cd709989e77064aadd40004455b167ea3c4efc07ced261c18bd773 |
24 |
-DIST lighttpd-1.4.43.tar.xz 656248 BLAKE2B 7c1e91c615c380a64784c1b9e33979e5bc339c6ae7fe30c0f53b12e0b1c8b42fc537e95e6dd734beabd8244927265ca572a2c0ba4495a7c5548c977d0b1b4700 SHA512 131e1d96276a6b5ca597bae9ff78df20bfc9907e9c832b6fdea8b86d493764a5dce24cfc3bb2e931755af18a26b0e8c6fd21714fca7d6c6a402c85f7fe4a588a |
25 |
-DIST lighttpd-1.4.44.tar.xz 660304 BLAKE2B b8bf21fc84c525a24c3b2ca66324ed75e3ec63a28455ed6166831a6e729f6f669363d9fe72289cf1f5532b231e23298d120fa57bbcc98cdd5ba37f9b84eb89ee SHA512 b7481482bc130c80f076002b2853e1b0ecb2af5d6c6f5428854ae7a60bda591cf96f23e9f3a24cfb36ada3ba97ebff449e102895f7eb4b0aa50ec275eb44725b |
26 |
DIST lighttpd-1.4.45.tar.xz 660432 BLAKE2B 31ea3209b8efad32c3811d39b1c1a682d9f2d79a2ecd7d90c413ad066b6a7d5f84df9b3af2ffb2d49a701856ac496626f2a744b25f1dc4fe1c3b9af586fc437f SHA512 d030674a8c55aab12d32ac75f8df2628ba2332a5263c8bd2dd4f39342530080edc6ba2a6fee749c1301d601ab766a265d3c630b04d38bb26bba3cf045935573d |
27 |
DIST lighttpd-1.4.47.tar.xz 703012 BLAKE2B 47d8e537c08076b66cd80b35d8d368e7eef55dc0c9edb004e86c033899c13be09ba5f456395647d6c63d461183cfb0be87d36d5e8f26086e0c3ad9bd75791ef4 SHA512 9fac3acc428d9faf69fca2768578dca619f778889e8a3779c429038eec7aff6b3dd497d5437152a070df850861fe2132042fa4418e31c1aab89df23a1c544f99 |
28 |
DIST lighttpd-1.4.49.tar.xz 710964 BLAKE2B 112ceb36b45f51c7d5526caba27d2b2aa57ec9d14751e1334472c9079c25317c5e37faf884788c84d61fa6cfa2efedc0b4ec02e32308beb6a0b6be28eea44fbd SHA512 de766da68b4cacfb6c322210eafe819b6423334272e9fae4688c2282a66a2e55aaf580c5fdbf02676ed6f7b32d13f2f28cefd22518f77127055ec336ec5d6784 |
29 |
|
30 |
diff --git a/www-servers/lighttpd/lighttpd-1.4.42.ebuild b/www-servers/lighttpd/lighttpd-1.4.42.ebuild |
31 |
deleted file mode 100644 |
32 |
index f438237b621..00000000000 |
33 |
--- a/www-servers/lighttpd/lighttpd-1.4.42.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,216 +0,0 @@ |
36 |
-# Copyright 1999-2018 Gentoo Foundation |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
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 ~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 |
-} |
252 |
|
253 |
diff --git a/www-servers/lighttpd/lighttpd-1.4.43.ebuild b/www-servers/lighttpd/lighttpd-1.4.43.ebuild |
254 |
deleted file mode 100644 |
255 |
index 8a691625e6c..00000000000 |
256 |
--- a/www-servers/lighttpd/lighttpd-1.4.43.ebuild |
257 |
+++ /dev/null |
258 |
@@ -1,216 +0,0 @@ |
259 |
-# Copyright 1999-2018 Gentoo Foundation |
260 |
-# Distributed under the terms of the GNU General Public License v2 |
261 |
- |
262 |
-EAPI="6" |
263 |
-inherit autotools eutils readme.gentoo-r1 user systemd |
264 |
- |
265 |
-DESCRIPTION="Lightweight high-performance web server" |
266 |
-HOMEPAGE="http://www.lighttpd.net/" |
267 |
-SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.xz" |
268 |
- |
269 |
-LICENSE="BSD GPL-2" |
270 |
-SLOT="0" |
271 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
272 |
-IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev libressl lua minimal mmap memcached mysql pcre php rrdtool selinux ssl test webdav xattr zlib" |
273 |
- |
274 |
-REQUIRED_USE="kerberos? ( ssl !libressl )" |
275 |
- |
276 |
-CDEPEND=" |
277 |
- bzip2? ( app-arch/bzip2 ) |
278 |
- fam? ( virtual/fam ) |
279 |
- gdbm? ( sys-libs/gdbm ) |
280 |
- ldap? ( >=net-nds/openldap-2.1.26 ) |
281 |
- libev? ( >=dev-libs/libev-4.01 ) |
282 |
- lua? ( >=dev-lang/lua-5.1:= ) |
283 |
- memcached? ( dev-libs/libmemcache ) |
284 |
- mysql? ( >=virtual/mysql-4.0 ) |
285 |
- pcre? ( >=dev-libs/libpcre-3.1 ) |
286 |
- php? ( dev-lang/php:*[cgi] ) |
287 |
- rrdtool? ( net-analyzer/rrdtool ) |
288 |
- ssl? ( |
289 |
- !libressl? ( >=dev-libs/openssl-0.9.7:0=[kerberos?] ) |
290 |
- libressl? ( dev-libs/libressl:= ) |
291 |
- ) |
292 |
- webdav? ( |
293 |
- dev-libs/libxml2 |
294 |
- >=dev-db/sqlite-3 |
295 |
- sys-fs/e2fsprogs |
296 |
- ) |
297 |
- xattr? ( kernel_linux? ( sys-apps/attr ) ) |
298 |
- zlib? ( >=sys-libs/zlib-1.1 )" |
299 |
- |
300 |
-DEPEND="${CDEPEND} |
301 |
- virtual/pkgconfig |
302 |
- doc? ( dev-python/docutils ) |
303 |
- test? ( |
304 |
- virtual/perl-Test-Harness |
305 |
- dev-libs/fcgi |
306 |
- )" |
307 |
- |
308 |
-RDEPEND="${CDEPEND} |
309 |
- selinux? ( sec-policy/selinux-apache ) |
310 |
-" |
311 |
- |
312 |
-# update certain parts of lighttpd.conf based on conditionals |
313 |
-update_config() { |
314 |
- local config="${D}/etc/lighttpd/lighttpd.conf" |
315 |
- |
316 |
- # enable php/mod_fastcgi settings |
317 |
- use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; } |
318 |
- |
319 |
- # enable stat() caching |
320 |
- use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; } |
321 |
- |
322 |
- # automatically listen on IPv6 if built with USE=ipv6. Bug #234987 |
323 |
- use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; } |
324 |
-} |
325 |
- |
326 |
-# remove non-essential stuff (for USE=minimal) |
327 |
-remove_non_essential() { |
328 |
- local libdir="${D}/usr/$(get_libdir)/${PN}" |
329 |
- |
330 |
- # text docs |
331 |
- use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt |
332 |
- |
333 |
- # non-essential modules |
334 |
- rm -f \ |
335 |
- ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.* |
336 |
- |
337 |
- # allow users to keep some based on USE flags |
338 |
- use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.* |
339 |
- use webdav || rm -f ${libdir}/mod_webdav.* |
340 |
- use mysql || rm -f ${libdir}/mod_mysql_vhost.* |
341 |
- use lua || rm -f ${libdir}/mod_{cml,magnet}.* |
342 |
- use rrdtool || rm -f ${libdir}/mod_rrdtool.* |
343 |
- use zlib || rm -f ${libdir}/mod_compress.* |
344 |
-} |
345 |
- |
346 |
-pkg_setup() { |
347 |
- if ! use pcre ; then |
348 |
- ewarn "It is highly recommended that you build ${PN}" |
349 |
- ewarn "with perl regular expressions support via USE=pcre." |
350 |
- ewarn "Otherwise you lose support for some core options such" |
351 |
- ewarn "as conditionals and modules such as mod_re{write,direct}" |
352 |
- ewarn "and mod_ssi." |
353 |
- fi |
354 |
- if use mmap; then |
355 |
- ewarn "You have enabled the mmap option. This option may allow" |
356 |
- ewarn "local users to trigger SIGBUG crashes. Use this option" |
357 |
- ewarn "with EXTRA care." |
358 |
- fi |
359 |
- enewgroup lighttpd |
360 |
- enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd |
361 |
- |
362 |
- DOC_CONTENTS="IPv6 migration guide:\n |
363 |
- http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config" |
364 |
-} |
365 |
- |
366 |
-src_prepare() { |
367 |
- default |
368 |
- #dev-python/docutils installs rst2html.py not rst2html |
369 |
- sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \ |
370 |
- die "sed doc/Makefile.am failed" |
371 |
- eautoreconf |
372 |
-} |
373 |
- |
374 |
-src_configure() { |
375 |
- econf --libdir=/usr/$(get_libdir)/${PN} \ |
376 |
- --enable-lfs \ |
377 |
- $(use_enable ipv6) \ |
378 |
- $(use_enable mmap) \ |
379 |
- $(use_with bzip2) \ |
380 |
- $(use_with fam) \ |
381 |
- $(use_with gdbm) \ |
382 |
- $(use_with kerberos krb5) \ |
383 |
- $(use_with ldap) \ |
384 |
- $(use_with libev) \ |
385 |
- $(use_with lua) \ |
386 |
- $(use_with memcached) \ |
387 |
- $(use_with mysql) \ |
388 |
- $(use_with pcre) \ |
389 |
- $(use_with ssl openssl) \ |
390 |
- $(use_with webdav webdav-props) \ |
391 |
- $(use_with webdav webdav-locks) \ |
392 |
- $(use_with xattr attr) \ |
393 |
- $(use_with zlib) |
394 |
-} |
395 |
- |
396 |
-src_compile() { |
397 |
- emake |
398 |
- |
399 |
- if use doc ; then |
400 |
- einfo "Building HTML documentation" |
401 |
- cd doc || die |
402 |
- emake html |
403 |
- fi |
404 |
-} |
405 |
- |
406 |
-src_test() { |
407 |
- if [[ ${EUID} -eq 0 ]]; then |
408 |
- default_src_test |
409 |
- else |
410 |
- ewarn "test skipped, please re-run as root if you wish to test ${PN}" |
411 |
- fi |
412 |
-} |
413 |
- |
414 |
-src_install() { |
415 |
- emake DESTDIR="${D}" install |
416 |
- |
417 |
- # init script stuff |
418 |
- newinitd "${FILESDIR}"/lighttpd.initd lighttpd |
419 |
- newconfd "${FILESDIR}"/lighttpd.confd lighttpd |
420 |
- use fam && has_version app-admin/fam && \ |
421 |
- { sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd || die; } |
422 |
- |
423 |
- # configs |
424 |
- insinto /etc/lighttpd |
425 |
- doins "${FILESDIR}"/conf/lighttpd.conf |
426 |
- doins "${FILESDIR}"/conf/mime-types.conf |
427 |
- doins "${FILESDIR}"/conf/mod_cgi.conf |
428 |
- doins "${FILESDIR}"/conf/mod_fastcgi.conf |
429 |
- |
430 |
- # update lighttpd.conf directives based on conditionals |
431 |
- update_config |
432 |
- |
433 |
- # docs |
434 |
- dodoc AUTHORS README NEWS doc/scripts/*.sh |
435 |
- newdoc doc/config//lighttpd.conf lighttpd.conf.distrib |
436 |
- use ipv6 && readme.gentoo_create_doc |
437 |
- |
438 |
- use doc && dohtml -r doc/* |
439 |
- |
440 |
- docinto txt |
441 |
- dodoc doc/outdated/*.txt |
442 |
- |
443 |
- # logrotate |
444 |
- insinto /etc/logrotate.d |
445 |
- newins "${FILESDIR}"/lighttpd.logrotate-r1 lighttpd |
446 |
- |
447 |
- keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs |
448 |
- fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd |
449 |
- fperms 0750 /var/l{ib,og}/lighttpd |
450 |
- |
451 |
- #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi |
452 |
- rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.* |
453 |
- |
454 |
- use minimal && remove_non_essential |
455 |
- |
456 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
457 |
- systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf" |
458 |
-} |
459 |
- |
460 |
-pkg_postinst () { |
461 |
- use ipv6 && readme.gentoo_print_elog |
462 |
- |
463 |
- if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then |
464 |
- einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi." |
465 |
- einfo "spawn-fcgi's init script configuration is now located" |
466 |
- einfo "at /etc/conf.d/spawn-fcgi." |
467 |
- fi |
468 |
- |
469 |
- if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then |
470 |
- elog "Gentoo has a customized configuration," |
471 |
- elog "which is now located in /etc/lighttpd. Please migrate your" |
472 |
- elog "existing configuration." |
473 |
- fi |
474 |
-} |
475 |
|
476 |
diff --git a/www-servers/lighttpd/lighttpd-1.4.44.ebuild b/www-servers/lighttpd/lighttpd-1.4.44.ebuild |
477 |
deleted file mode 100644 |
478 |
index 8a691625e6c..00000000000 |
479 |
--- a/www-servers/lighttpd/lighttpd-1.4.44.ebuild |
480 |
+++ /dev/null |
481 |
@@ -1,216 +0,0 @@ |
482 |
-# Copyright 1999-2018 Gentoo Foundation |
483 |
-# Distributed under the terms of the GNU General Public License v2 |
484 |
- |
485 |
-EAPI="6" |
486 |
-inherit autotools eutils readme.gentoo-r1 user systemd |
487 |
- |
488 |
-DESCRIPTION="Lightweight high-performance web server" |
489 |
-HOMEPAGE="http://www.lighttpd.net/" |
490 |
-SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.xz" |
491 |
- |
492 |
-LICENSE="BSD GPL-2" |
493 |
-SLOT="0" |
494 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
495 |
-IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev libressl lua minimal mmap memcached mysql pcre php rrdtool selinux ssl test webdav xattr zlib" |
496 |
- |
497 |
-REQUIRED_USE="kerberos? ( ssl !libressl )" |
498 |
- |
499 |
-CDEPEND=" |
500 |
- bzip2? ( app-arch/bzip2 ) |
501 |
- fam? ( virtual/fam ) |
502 |
- gdbm? ( sys-libs/gdbm ) |
503 |
- ldap? ( >=net-nds/openldap-2.1.26 ) |
504 |
- libev? ( >=dev-libs/libev-4.01 ) |
505 |
- lua? ( >=dev-lang/lua-5.1:= ) |
506 |
- memcached? ( dev-libs/libmemcache ) |
507 |
- mysql? ( >=virtual/mysql-4.0 ) |
508 |
- pcre? ( >=dev-libs/libpcre-3.1 ) |
509 |
- php? ( dev-lang/php:*[cgi] ) |
510 |
- rrdtool? ( net-analyzer/rrdtool ) |
511 |
- ssl? ( |
512 |
- !libressl? ( >=dev-libs/openssl-0.9.7:0=[kerberos?] ) |
513 |
- libressl? ( dev-libs/libressl:= ) |
514 |
- ) |
515 |
- webdav? ( |
516 |
- dev-libs/libxml2 |
517 |
- >=dev-db/sqlite-3 |
518 |
- sys-fs/e2fsprogs |
519 |
- ) |
520 |
- xattr? ( kernel_linux? ( sys-apps/attr ) ) |
521 |
- zlib? ( >=sys-libs/zlib-1.1 )" |
522 |
- |
523 |
-DEPEND="${CDEPEND} |
524 |
- virtual/pkgconfig |
525 |
- doc? ( dev-python/docutils ) |
526 |
- test? ( |
527 |
- virtual/perl-Test-Harness |
528 |
- dev-libs/fcgi |
529 |
- )" |
530 |
- |
531 |
-RDEPEND="${CDEPEND} |
532 |
- selinux? ( sec-policy/selinux-apache ) |
533 |
-" |
534 |
- |
535 |
-# update certain parts of lighttpd.conf based on conditionals |
536 |
-update_config() { |
537 |
- local config="${D}/etc/lighttpd/lighttpd.conf" |
538 |
- |
539 |
- # enable php/mod_fastcgi settings |
540 |
- use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; } |
541 |
- |
542 |
- # enable stat() caching |
543 |
- use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; } |
544 |
- |
545 |
- # automatically listen on IPv6 if built with USE=ipv6. Bug #234987 |
546 |
- use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; } |
547 |
-} |
548 |
- |
549 |
-# remove non-essential stuff (for USE=minimal) |
550 |
-remove_non_essential() { |
551 |
- local libdir="${D}/usr/$(get_libdir)/${PN}" |
552 |
- |
553 |
- # text docs |
554 |
- use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt |
555 |
- |
556 |
- # non-essential modules |
557 |
- rm -f \ |
558 |
- ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.* |
559 |
- |
560 |
- # allow users to keep some based on USE flags |
561 |
- use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.* |
562 |
- use webdav || rm -f ${libdir}/mod_webdav.* |
563 |
- use mysql || rm -f ${libdir}/mod_mysql_vhost.* |
564 |
- use lua || rm -f ${libdir}/mod_{cml,magnet}.* |
565 |
- use rrdtool || rm -f ${libdir}/mod_rrdtool.* |
566 |
- use zlib || rm -f ${libdir}/mod_compress.* |
567 |
-} |
568 |
- |
569 |
-pkg_setup() { |
570 |
- if ! use pcre ; then |
571 |
- ewarn "It is highly recommended that you build ${PN}" |
572 |
- ewarn "with perl regular expressions support via USE=pcre." |
573 |
- ewarn "Otherwise you lose support for some core options such" |
574 |
- ewarn "as conditionals and modules such as mod_re{write,direct}" |
575 |
- ewarn "and mod_ssi." |
576 |
- fi |
577 |
- if use mmap; then |
578 |
- ewarn "You have enabled the mmap option. This option may allow" |
579 |
- ewarn "local users to trigger SIGBUG crashes. Use this option" |
580 |
- ewarn "with EXTRA care." |
581 |
- fi |
582 |
- enewgroup lighttpd |
583 |
- enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd |
584 |
- |
585 |
- DOC_CONTENTS="IPv6 migration guide:\n |
586 |
- http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config" |
587 |
-} |
588 |
- |
589 |
-src_prepare() { |
590 |
- default |
591 |
- #dev-python/docutils installs rst2html.py not rst2html |
592 |
- sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \ |
593 |
- die "sed doc/Makefile.am failed" |
594 |
- eautoreconf |
595 |
-} |
596 |
- |
597 |
-src_configure() { |
598 |
- econf --libdir=/usr/$(get_libdir)/${PN} \ |
599 |
- --enable-lfs \ |
600 |
- $(use_enable ipv6) \ |
601 |
- $(use_enable mmap) \ |
602 |
- $(use_with bzip2) \ |
603 |
- $(use_with fam) \ |
604 |
- $(use_with gdbm) \ |
605 |
- $(use_with kerberos krb5) \ |
606 |
- $(use_with ldap) \ |
607 |
- $(use_with libev) \ |
608 |
- $(use_with lua) \ |
609 |
- $(use_with memcached) \ |
610 |
- $(use_with mysql) \ |
611 |
- $(use_with pcre) \ |
612 |
- $(use_with ssl openssl) \ |
613 |
- $(use_with webdav webdav-props) \ |
614 |
- $(use_with webdav webdav-locks) \ |
615 |
- $(use_with xattr attr) \ |
616 |
- $(use_with zlib) |
617 |
-} |
618 |
- |
619 |
-src_compile() { |
620 |
- emake |
621 |
- |
622 |
- if use doc ; then |
623 |
- einfo "Building HTML documentation" |
624 |
- cd doc || die |
625 |
- emake html |
626 |
- fi |
627 |
-} |
628 |
- |
629 |
-src_test() { |
630 |
- if [[ ${EUID} -eq 0 ]]; then |
631 |
- default_src_test |
632 |
- else |
633 |
- ewarn "test skipped, please re-run as root if you wish to test ${PN}" |
634 |
- fi |
635 |
-} |
636 |
- |
637 |
-src_install() { |
638 |
- emake DESTDIR="${D}" install |
639 |
- |
640 |
- # init script stuff |
641 |
- newinitd "${FILESDIR}"/lighttpd.initd lighttpd |
642 |
- newconfd "${FILESDIR}"/lighttpd.confd lighttpd |
643 |
- use fam && has_version app-admin/fam && \ |
644 |
- { sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd || die; } |
645 |
- |
646 |
- # configs |
647 |
- insinto /etc/lighttpd |
648 |
- doins "${FILESDIR}"/conf/lighttpd.conf |
649 |
- doins "${FILESDIR}"/conf/mime-types.conf |
650 |
- doins "${FILESDIR}"/conf/mod_cgi.conf |
651 |
- doins "${FILESDIR}"/conf/mod_fastcgi.conf |
652 |
- |
653 |
- # update lighttpd.conf directives based on conditionals |
654 |
- update_config |
655 |
- |
656 |
- # docs |
657 |
- dodoc AUTHORS README NEWS doc/scripts/*.sh |
658 |
- newdoc doc/config//lighttpd.conf lighttpd.conf.distrib |
659 |
- use ipv6 && readme.gentoo_create_doc |
660 |
- |
661 |
- use doc && dohtml -r doc/* |
662 |
- |
663 |
- docinto txt |
664 |
- dodoc doc/outdated/*.txt |
665 |
- |
666 |
- # logrotate |
667 |
- insinto /etc/logrotate.d |
668 |
- newins "${FILESDIR}"/lighttpd.logrotate-r1 lighttpd |
669 |
- |
670 |
- keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs |
671 |
- fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd |
672 |
- fperms 0750 /var/l{ib,og}/lighttpd |
673 |
- |
674 |
- #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi |
675 |
- rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.* |
676 |
- |
677 |
- use minimal && remove_non_essential |
678 |
- |
679 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
680 |
- systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf" |
681 |
-} |
682 |
- |
683 |
-pkg_postinst () { |
684 |
- use ipv6 && readme.gentoo_print_elog |
685 |
- |
686 |
- if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then |
687 |
- einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi." |
688 |
- einfo "spawn-fcgi's init script configuration is now located" |
689 |
- einfo "at /etc/conf.d/spawn-fcgi." |
690 |
- fi |
691 |
- |
692 |
- if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then |
693 |
- elog "Gentoo has a customized configuration," |
694 |
- elog "which is now located in /etc/lighttpd. Please migrate your" |
695 |
- elog "existing configuration." |
696 |
- fi |
697 |
-} |