1 |
commit: 9f44646796c028e78f4572e82088bf011496a435 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 28 12:52:57 2018 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 28 12:53:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f446467 |
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 | 1 - |
13 |
...ighttpd-1.4.47-3d257ec3-respect-HAVE_IPV6.patch | 31 --- |
14 |
www-servers/lighttpd/lighttpd-1.4.47.ebuild | 220 --------------------- |
15 |
3 files changed, 252 deletions(-) |
16 |
|
17 |
diff --git a/www-servers/lighttpd/Manifest b/www-servers/lighttpd/Manifest |
18 |
index 47fa449231a..893e300c08d 100644 |
19 |
--- a/www-servers/lighttpd/Manifest |
20 |
+++ b/www-servers/lighttpd/Manifest |
21 |
@@ -1,3 +1,2 @@ |
22 |
DIST lighttpd-1.4.45.tar.xz 660432 BLAKE2B 31ea3209b8efad32c3811d39b1c1a682d9f2d79a2ecd7d90c413ad066b6a7d5f84df9b3af2ffb2d49a701856ac496626f2a744b25f1dc4fe1c3b9af586fc437f SHA512 d030674a8c55aab12d32ac75f8df2628ba2332a5263c8bd2dd4f39342530080edc6ba2a6fee749c1301d601ab766a265d3c630b04d38bb26bba3cf045935573d |
23 |
-DIST lighttpd-1.4.47.tar.xz 703012 BLAKE2B 47d8e537c08076b66cd80b35d8d368e7eef55dc0c9edb004e86c033899c13be09ba5f456395647d6c63d461183cfb0be87d36d5e8f26086e0c3ad9bd75791ef4 SHA512 9fac3acc428d9faf69fca2768578dca619f778889e8a3779c429038eec7aff6b3dd497d5437152a070df850861fe2132042fa4418e31c1aab89df23a1c544f99 |
24 |
DIST lighttpd-1.4.49.tar.xz 710964 BLAKE2B 112ceb36b45f51c7d5526caba27d2b2aa57ec9d14751e1334472c9079c25317c5e37faf884788c84d61fa6cfa2efedc0b4ec02e32308beb6a0b6be28eea44fbd SHA512 de766da68b4cacfb6c322210eafe819b6423334272e9fae4688c2282a66a2e55aaf580c5fdbf02676ed6f7b32d13f2f28cefd22518f77127055ec336ec5d6784 |
25 |
|
26 |
diff --git a/www-servers/lighttpd/files/lighttpd-1.4.47-3d257ec3-respect-HAVE_IPV6.patch b/www-servers/lighttpd/files/lighttpd-1.4.47-3d257ec3-respect-HAVE_IPV6.patch |
27 |
deleted file mode 100644 |
28 |
index 7916ac0b53f..00000000000 |
29 |
--- a/www-servers/lighttpd/files/lighttpd-1.4.47-3d257ec3-respect-HAVE_IPV6.patch |
30 |
+++ /dev/null |
31 |
@@ -1,31 +0,0 @@ |
32 |
-Backport upstream fixes for Gentoo bug #636650 |
33 |
- |
34 |
-Original upstream commit message: |
35 |
- |
36 |
-Author: nicorac <claudio.nicora@×××××.com> |
37 |
-Date: Wed Oct 25 16:48:24 2017 +0200 |
38 |
- |
39 |
- [core] fix build --disable-ipv6 (fixes #2832) |
40 |
- |
41 |
- x-ref: |
42 |
- "Build error on systems without IPV6 support (regression from 1.4.46)" |
43 |
- https://redmine.lighttpd.net/issues/2832 |
44 |
- |
45 |
- github: closes #87 |
46 |
- |
47 |
---- a/src/network.c |
48 |
-+++ b/src/network.c |
49 |
-@@ -77,9 +77,13 @@ static void network_host_normalize_addr_str(buffer *host, sock_addr *addr) { |
50 |
- if (addr->plain.sa_family == AF_INET6) |
51 |
- buffer_append_string_len(host, CONST_STR_LEN("]")); |
52 |
- if (addr->plain.sa_family != AF_UNIX) { |
53 |
-+ #ifdef HAVE_IPV6 |
54 |
- unsigned short port = (addr->plain.sa_family == AF_INET) |
55 |
- ? ntohs(addr->ipv4.sin_port) |
56 |
- : ntohs(addr->ipv6.sin6_port); |
57 |
-+ #else |
58 |
-+ unsigned short port = ntohs(addr->ipv4.sin_port); |
59 |
-+ #endif |
60 |
- buffer_append_string_len(host, CONST_STR_LEN(":")); |
61 |
- buffer_append_int(host, (int)port); |
62 |
- } |
63 |
|
64 |
diff --git a/www-servers/lighttpd/lighttpd-1.4.47.ebuild b/www-servers/lighttpd/lighttpd-1.4.47.ebuild |
65 |
deleted file mode 100644 |
66 |
index 87c89b4727a..00000000000 |
67 |
--- a/www-servers/lighttpd/lighttpd-1.4.47.ebuild |
68 |
+++ /dev/null |
69 |
@@ -1,220 +0,0 @@ |
70 |
-# Copyright 1999-2018 Gentoo Foundation |
71 |
-# Distributed under the terms of the GNU General Public License v2 |
72 |
- |
73 |
-EAPI="6" |
74 |
-inherit autotools eutils readme.gentoo-r1 user systemd |
75 |
- |
76 |
-DESCRIPTION="Lightweight high-performance web server" |
77 |
-HOMEPAGE="http://www.lighttpd.net/" |
78 |
-SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.xz" |
79 |
- |
80 |
-LICENSE="BSD GPL-2" |
81 |
-SLOT="0" |
82 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
83 |
-IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev libressl lua minimal mmap memcached mysql pcre php rrdtool selinux ssl test webdav xattr zlib" |
84 |
- |
85 |
-REQUIRED_USE="kerberos? ( ssl !libressl )" |
86 |
- |
87 |
-CDEPEND=" |
88 |
- bzip2? ( app-arch/bzip2 ) |
89 |
- fam? ( virtual/fam ) |
90 |
- gdbm? ( sys-libs/gdbm ) |
91 |
- ldap? ( >=net-nds/openldap-2.1.26 ) |
92 |
- libev? ( >=dev-libs/libev-4.01 ) |
93 |
- lua? ( >=dev-lang/lua-5.1:= ) |
94 |
- memcached? ( dev-libs/libmemcache ) |
95 |
- mysql? ( >=virtual/mysql-4.0 ) |
96 |
- pcre? ( >=dev-libs/libpcre-3.1 ) |
97 |
- php? ( dev-lang/php:*[cgi] ) |
98 |
- rrdtool? ( net-analyzer/rrdtool ) |
99 |
- ssl? ( |
100 |
- !libressl? ( >=dev-libs/openssl-0.9.7:0=[kerberos?] ) |
101 |
- libressl? ( dev-libs/libressl:= ) |
102 |
- ) |
103 |
- webdav? ( |
104 |
- dev-libs/libxml2 |
105 |
- >=dev-db/sqlite-3 |
106 |
- sys-fs/e2fsprogs |
107 |
- ) |
108 |
- xattr? ( kernel_linux? ( sys-apps/attr ) ) |
109 |
- zlib? ( >=sys-libs/zlib-1.1 )" |
110 |
- |
111 |
-DEPEND="${CDEPEND} |
112 |
- virtual/pkgconfig |
113 |
- doc? ( dev-python/docutils ) |
114 |
- test? ( |
115 |
- virtual/perl-Test-Harness |
116 |
- dev-libs/fcgi |
117 |
- )" |
118 |
- |
119 |
-RDEPEND="${CDEPEND} |
120 |
- selinux? ( sec-policy/selinux-apache ) |
121 |
-" |
122 |
- |
123 |
-PATCHES=( |
124 |
- "${FILESDIR}/${P}-3d257ec3-respect-HAVE_IPV6.patch" |
125 |
-) |
126 |
- |
127 |
-# update certain parts of lighttpd.conf based on conditionals |
128 |
-update_config() { |
129 |
- local config="${D}/etc/lighttpd/lighttpd.conf" |
130 |
- |
131 |
- # enable php/mod_fastcgi settings |
132 |
- use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; } |
133 |
- |
134 |
- # enable stat() caching |
135 |
- use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; } |
136 |
- |
137 |
- # automatically listen on IPv6 if built with USE=ipv6. Bug #234987 |
138 |
- use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; } |
139 |
-} |
140 |
- |
141 |
-# remove non-essential stuff (for USE=minimal) |
142 |
-remove_non_essential() { |
143 |
- local libdir="${D}/usr/$(get_libdir)/${PN}" |
144 |
- |
145 |
- # text docs |
146 |
- use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt |
147 |
- |
148 |
- # non-essential modules |
149 |
- rm -f \ |
150 |
- ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.* |
151 |
- |
152 |
- # allow users to keep some based on USE flags |
153 |
- use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.* |
154 |
- use webdav || rm -f ${libdir}/mod_webdav.* |
155 |
- use mysql || rm -f ${libdir}/mod_mysql_vhost.* |
156 |
- use lua || rm -f ${libdir}/mod_{cml,magnet}.* |
157 |
- use rrdtool || rm -f ${libdir}/mod_rrdtool.* |
158 |
- use zlib || rm -f ${libdir}/mod_compress.* |
159 |
-} |
160 |
- |
161 |
-pkg_setup() { |
162 |
- if ! use pcre ; then |
163 |
- ewarn "It is highly recommended that you build ${PN}" |
164 |
- ewarn "with perl regular expressions support via USE=pcre." |
165 |
- ewarn "Otherwise you lose support for some core options such" |
166 |
- ewarn "as conditionals and modules such as mod_re{write,direct}" |
167 |
- ewarn "and mod_ssi." |
168 |
- fi |
169 |
- if use mmap; then |
170 |
- ewarn "You have enabled the mmap option. This option may allow" |
171 |
- ewarn "local users to trigger SIGBUG crashes. Use this option" |
172 |
- ewarn "with EXTRA care." |
173 |
- fi |
174 |
- enewgroup lighttpd |
175 |
- enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd |
176 |
- |
177 |
- DOC_CONTENTS="IPv6 migration guide:\n |
178 |
- http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config" |
179 |
-} |
180 |
- |
181 |
-src_prepare() { |
182 |
- default |
183 |
- #dev-python/docutils installs rst2html.py not rst2html |
184 |
- sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \ |
185 |
- die "sed doc/Makefile.am failed" |
186 |
- eautoreconf |
187 |
-} |
188 |
- |
189 |
-src_configure() { |
190 |
- econf --libdir=/usr/$(get_libdir)/${PN} \ |
191 |
- --enable-lfs \ |
192 |
- $(use_enable ipv6) \ |
193 |
- $(use_enable mmap) \ |
194 |
- $(use_with bzip2) \ |
195 |
- $(use_with fam) \ |
196 |
- $(use_with gdbm) \ |
197 |
- $(use_with kerberos krb5) \ |
198 |
- $(use_with ldap) \ |
199 |
- $(use_with libev) \ |
200 |
- $(use_with lua) \ |
201 |
- $(use_with memcached) \ |
202 |
- $(use_with mysql) \ |
203 |
- $(use_with pcre) \ |
204 |
- $(use_with ssl openssl) \ |
205 |
- $(use_with webdav webdav-props) \ |
206 |
- $(use_with webdav webdav-locks) \ |
207 |
- $(use_with xattr attr) \ |
208 |
- $(use_with zlib) |
209 |
-} |
210 |
- |
211 |
-src_compile() { |
212 |
- emake |
213 |
- |
214 |
- if use doc ; then |
215 |
- einfo "Building HTML documentation" |
216 |
- cd doc || die |
217 |
- emake html |
218 |
- fi |
219 |
-} |
220 |
- |
221 |
-src_test() { |
222 |
- if [[ ${EUID} -eq 0 ]]; then |
223 |
- default_src_test |
224 |
- else |
225 |
- ewarn "test skipped, please re-run as root if you wish to test ${PN}" |
226 |
- fi |
227 |
-} |
228 |
- |
229 |
-src_install() { |
230 |
- emake DESTDIR="${D}" install |
231 |
- |
232 |
- # init script stuff |
233 |
- newinitd "${FILESDIR}"/lighttpd.initd lighttpd |
234 |
- newconfd "${FILESDIR}"/lighttpd.confd lighttpd |
235 |
- use fam && has_version app-admin/fam && \ |
236 |
- { sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd || die; } |
237 |
- |
238 |
- # configs |
239 |
- insinto /etc/lighttpd |
240 |
- doins "${FILESDIR}"/conf/lighttpd.conf |
241 |
- doins "${FILESDIR}"/conf/mime-types.conf |
242 |
- doins "${FILESDIR}"/conf/mod_cgi.conf |
243 |
- doins "${FILESDIR}"/conf/mod_fastcgi.conf |
244 |
- |
245 |
- # update lighttpd.conf directives based on conditionals |
246 |
- update_config |
247 |
- |
248 |
- # docs |
249 |
- dodoc AUTHORS README NEWS doc/scripts/*.sh |
250 |
- newdoc doc/config//lighttpd.conf lighttpd.conf.distrib |
251 |
- use ipv6 && readme.gentoo_create_doc |
252 |
- |
253 |
- use doc && dohtml -r doc/* |
254 |
- |
255 |
- docinto txt |
256 |
- dodoc doc/outdated/*.txt |
257 |
- |
258 |
- # logrotate |
259 |
- insinto /etc/logrotate.d |
260 |
- newins "${FILESDIR}"/lighttpd.logrotate-r1 lighttpd |
261 |
- |
262 |
- keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs |
263 |
- fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd |
264 |
- fperms 0750 /var/l{ib,og}/lighttpd |
265 |
- |
266 |
- #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi |
267 |
- rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.* |
268 |
- |
269 |
- use minimal && remove_non_essential |
270 |
- |
271 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
272 |
- systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf" |
273 |
-} |
274 |
- |
275 |
-pkg_postinst () { |
276 |
- use ipv6 && readme.gentoo_print_elog |
277 |
- |
278 |
- if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then |
279 |
- einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi." |
280 |
- einfo "spawn-fcgi's init script configuration is now located" |
281 |
- einfo "at /etc/conf.d/spawn-fcgi." |
282 |
- fi |
283 |
- |
284 |
- if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then |
285 |
- elog "Gentoo has a customized configuration," |
286 |
- elog "which is now located in /etc/lighttpd. Please migrate your" |
287 |
- elog "existing configuration." |
288 |
- fi |
289 |
-} |