1 |
commit: fc62e7acfd7b8a63e1dccdfb74c8c87cfb659f7c |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 9 13:41:10 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 9 13:47:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc62e7ac |
7 |
|
8 |
www-servers/lighttpd: remove last ebuild depending on unslotted Lua |
9 |
|
10 |
This effectively drops this package to ~s390, as discussed on IRC. |
11 |
|
12 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
13 |
|
14 |
www-servers/lighttpd/lighttpd-1.4.55-r1.ebuild | 229 ------------------------- |
15 |
1 file changed, 229 deletions(-) |
16 |
|
17 |
diff --git a/www-servers/lighttpd/lighttpd-1.4.55-r1.ebuild b/www-servers/lighttpd/lighttpd-1.4.55-r1.ebuild |
18 |
deleted file mode 100644 |
19 |
index 834f3bcd093..00000000000 |
20 |
--- a/www-servers/lighttpd/lighttpd-1.4.55-r1.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,229 +0,0 @@ |
23 |
-# Copyright 1999-2020 Gentoo Authors |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=7 |
27 |
- |
28 |
-inherit autotools flag-o-matic readme.gentoo-r1 systemd toolchain-funcs |
29 |
- |
30 |
-DESCRIPTION="Lightweight high-performance web server" |
31 |
-HOMEPAGE="https://www.lighttpd.net https://github.com/lighttpd" |
32 |
-SRC_URI="https://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.xz" |
33 |
- |
34 |
-LICENSE="BSD GPL-2" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 s390 sparc x86" |
37 |
-IUSE="bzip2 dbi doc fam gdbm geoip ipv6 kerberos ldap libev libressl lua minimal mmap memcached mysql pcre php postgres rrdtool sasl selinux ssl sqlite test webdav xattr zlib" |
38 |
-RESTRICT="!test? ( test )" |
39 |
- |
40 |
-REQUIRED_USE="kerberos? ( ssl !libressl ) webdav? ( sqlite )" |
41 |
- |
42 |
-BDEPEND="dev-libs/libgamin |
43 |
- virtual/pkgconfig" |
44 |
- |
45 |
-COMMON_DEPEND=" |
46 |
- bzip2? ( app-arch/bzip2 ) |
47 |
- dbi? ( dev-db/libdbi ) |
48 |
- fam? ( virtual/fam ) |
49 |
- gdbm? ( sys-libs/gdbm:= ) |
50 |
- geoip? ( dev-libs/geoip ) |
51 |
- ldap? ( >=net-nds/openldap-2.1.26 ) |
52 |
- libev? ( >=dev-libs/libev-4.01 ) |
53 |
- lua? ( >=dev-lang/lua-5.1:0= ) |
54 |
- memcached? ( dev-libs/libmemcached ) |
55 |
- mysql? ( dev-db/mysql-connector-c:= ) |
56 |
- pcre? ( >=dev-libs/libpcre-3.1 ) |
57 |
- php? ( dev-lang/php:*[cgi] ) |
58 |
- postgres? ( dev-db/postgresql:* ) |
59 |
- rrdtool? ( net-analyzer/rrdtool ) |
60 |
- sasl? ( dev-libs/cyrus-sasl ) |
61 |
- ssl? ( |
62 |
- !libressl? ( >=dev-libs/openssl-0.9.7:0= ) |
63 |
- libressl? ( dev-libs/libressl:= ) |
64 |
- ) |
65 |
- sqlite? ( dev-db/sqlite:3 ) |
66 |
- webdav? ( |
67 |
- dev-libs/libxml2 |
68 |
- sys-fs/e2fsprogs |
69 |
- ) |
70 |
- xattr? ( kernel_linux? ( sys-apps/attr ) ) |
71 |
- zlib? ( >=sys-libs/zlib-1.1 ) |
72 |
- acct-group/lighttpd |
73 |
- acct-user/lighttpd" |
74 |
- |
75 |
-DEPEND="${COMMON_DEPEND} |
76 |
- doc? ( dev-python/docutils ) |
77 |
- test? ( |
78 |
- virtual/perl-Test-Harness |
79 |
- dev-libs/fcgi |
80 |
- )" |
81 |
- |
82 |
-RDEPEND="${COMMON_DEPEND} |
83 |
- selinux? ( sec-policy/selinux-apache ) |
84 |
-" |
85 |
- |
86 |
-# update certain parts of lighttpd.conf based on conditionals |
87 |
-update_config() { |
88 |
- local config="${D}/etc/lighttpd/lighttpd.conf" |
89 |
- |
90 |
- # enable php/mod_fastcgi settings |
91 |
- use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; } |
92 |
- |
93 |
- # enable stat() caching |
94 |
- use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; } |
95 |
- |
96 |
- # automatically listen on IPv6 if built with USE=ipv6. Bug #234987 |
97 |
- use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; } |
98 |
-} |
99 |
- |
100 |
-# remove non-essential stuff (for USE=minimal) |
101 |
-remove_non_essential() { |
102 |
- local libdir="${D}/usr/$(get_libdir)/${PN}" |
103 |
- |
104 |
- # text docs |
105 |
- use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt |
106 |
- |
107 |
- # non-essential modules |
108 |
- rm -f \ |
109 |
- ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.* || die |
110 |
- |
111 |
- # allow users to keep some based on USE flags |
112 |
- use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.* |
113 |
- use webdav || rm -f ${libdir}/mod_webdav.* |
114 |
- use mysql || rm -f ${libdir}/mod_mysql_vhost.* |
115 |
- use lua || rm -f ${libdir}/mod_{cml,magnet}.* |
116 |
- use rrdtool || rm -f ${libdir}/mod_rrdtool.* |
117 |
- use zlib || rm -f ${libdir}/mod_compress.* |
118 |
-} |
119 |
- |
120 |
-pkg_setup() { |
121 |
- if ! use pcre ; then |
122 |
- ewarn "It is highly recommended that you build ${PN}" |
123 |
- ewarn "with perl regular expressions support via USE=pcre." |
124 |
- ewarn "Otherwise you lose support for some core options such" |
125 |
- ewarn "as conditionals and modules such as mod_re{write,direct}" |
126 |
- ewarn "and mod_ssi." |
127 |
- fi |
128 |
- |
129 |
- DOC_CONTENTS="IPv6 migration guide:\n |
130 |
- http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config" |
131 |
-} |
132 |
- |
133 |
-src_prepare() { |
134 |
- default |
135 |
- use memcached && append-ldflags -pthread |
136 |
- #dev-python/docutils installs rst2html.py not rst2html |
137 |
- sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \ |
138 |
- die "sed doc/Makefile.am failed" |
139 |
- eautoreconf |
140 |
-} |
141 |
- |
142 |
-src_configure() { |
143 |
- econf \ |
144 |
- CC_FOR_BUILD=$(tc-getBUILD_CC) \ |
145 |
- --libdir=/usr/$(get_libdir)/${PN} \ |
146 |
- --enable-lfs \ |
147 |
- $(use_enable ipv6) \ |
148 |
- $(use_enable mmap) \ |
149 |
- $(use_with bzip2) \ |
150 |
- $(use_with dbi) \ |
151 |
- $(use_with fam) \ |
152 |
- $(use_with gdbm) \ |
153 |
- $(use_with geoip ) \ |
154 |
- $(use_with kerberos krb5) \ |
155 |
- $(use_with ldap) \ |
156 |
- $(use_with libev) \ |
157 |
- $(use_with lua) \ |
158 |
- $(use_with memcached) \ |
159 |
- $(use_with mysql) \ |
160 |
- $(use_with pcre) \ |
161 |
- $(use_with postgres pgsql) \ |
162 |
- $(use_with sasl) \ |
163 |
- $(use_with ssl openssl) \ |
164 |
- $(use_with sqlite) \ |
165 |
- $(use_with webdav webdav-props) \ |
166 |
- $(use_with webdav webdav-locks) \ |
167 |
- $(use_with xattr attr) \ |
168 |
- $(use_with zlib) |
169 |
-} |
170 |
- |
171 |
-src_compile() { |
172 |
- emake |
173 |
- |
174 |
- if use doc ; then |
175 |
- einfo "Building HTML documentation" |
176 |
- cd doc || die |
177 |
- emake html |
178 |
- fi |
179 |
-} |
180 |
- |
181 |
-src_test() { |
182 |
- if [[ ${EUID} -eq 0 ]]; then |
183 |
- default_src_test |
184 |
- else |
185 |
- ewarn "test skipped, please re-run as root if you wish to test ${PN}" |
186 |
- fi |
187 |
-} |
188 |
- |
189 |
-src_install() { |
190 |
- default |
191 |
- |
192 |
- find "${D}" -name '*.la' -delete || die |
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 && dodoc -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.* || die |
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 |
-} |