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