1 |
commit: f01b4779d27c0005e1087c652f08c0a740a86a1d |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 30 09:06:51 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 30 09:07:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f01b4779 |
7 |
|
8 |
www-servers/lighttpd: Version bump (v1.4.53) |
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.53.ebuild | 227 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 228 insertions(+) |
16 |
|
17 |
diff --git a/www-servers/lighttpd/Manifest b/www-servers/lighttpd/Manifest |
18 |
index 53cce0d910a..e8e331119c9 100644 |
19 |
--- a/www-servers/lighttpd/Manifest |
20 |
+++ b/www-servers/lighttpd/Manifest |
21 |
@@ -1,2 +1,3 @@ |
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.53.ebuild b/www-servers/lighttpd/lighttpd-1.4.53.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..aab14ef82eb |
29 |
--- /dev/null |
30 |
+++ b/www-servers/lighttpd/lighttpd-1.4.53.ebuild |
31 |
@@ -0,0 +1,227 @@ |
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="dev-libs/libgamin |
51 |
+ virtual/pkgconfig" |
52 |
+ |
53 |
+COMMON_DEPEND=" |
54 |
+ bzip2? ( app-arch/bzip2 ) |
55 |
+ dbi? ( dev-db/libdbi ) |
56 |
+ fam? ( virtual/fam ) |
57 |
+ gdbm? ( sys-libs/gdbm ) |
58 |
+ geoip? ( dev-libs/geoip ) |
59 |
+ ldap? ( >=net-nds/openldap-2.1.26 ) |
60 |
+ libev? ( >=dev-libs/libev-4.01 ) |
61 |
+ lua? ( >=dev-lang/lua-5.1:= ) |
62 |
+ memcached? ( dev-libs/libmemcached ) |
63 |
+ mysql? ( dev-db/mysql-connector-c:= ) |
64 |
+ pcre? ( >=dev-libs/libpcre-3.1 ) |
65 |
+ php? ( dev-lang/php:*[cgi] ) |
66 |
+ postgres? ( dev-db/postgresql:* ) |
67 |
+ rrdtool? ( net-analyzer/rrdtool ) |
68 |
+ sasl? ( dev-libs/cyrus-sasl ) |
69 |
+ ssl? ( |
70 |
+ !libressl? ( >=dev-libs/openssl-0.9.7:0=[kerberos(-)?] ) |
71 |
+ libressl? ( dev-libs/libressl:= ) |
72 |
+ ) |
73 |
+ sqlite? ( dev-db/sqlite:3 ) |
74 |
+ webdav? ( |
75 |
+ dev-libs/libxml2 |
76 |
+ sys-fs/e2fsprogs |
77 |
+ ) |
78 |
+ xattr? ( kernel_linux? ( sys-apps/attr ) ) |
79 |
+ zlib? ( >=sys-libs/zlib-1.1 )" |
80 |
+ |
81 |
+DEPEND="${COMMON_DEPEND} |
82 |
+ doc? ( dev-python/docutils ) |
83 |
+ test? ( |
84 |
+ virtual/perl-Test-Harness |
85 |
+ dev-libs/fcgi |
86 |
+ )" |
87 |
+ |
88 |
+RDEPEND="${COMMON_DEPEND} |
89 |
+ selinux? ( sec-policy/selinux-apache ) |
90 |
+" |
91 |
+ |
92 |
+# update certain parts of lighttpd.conf based on conditionals |
93 |
+update_config() { |
94 |
+ local config="${D}/etc/lighttpd/lighttpd.conf" |
95 |
+ |
96 |
+ # enable php/mod_fastcgi settings |
97 |
+ use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; } |
98 |
+ |
99 |
+ # enable stat() caching |
100 |
+ use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; } |
101 |
+ |
102 |
+ # automatically listen on IPv6 if built with USE=ipv6. Bug #234987 |
103 |
+ use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; } |
104 |
+} |
105 |
+ |
106 |
+# remove non-essential stuff (for USE=minimal) |
107 |
+remove_non_essential() { |
108 |
+ local libdir="${D}/usr/$(get_libdir)/${PN}" |
109 |
+ |
110 |
+ # text docs |
111 |
+ use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt |
112 |
+ |
113 |
+ # non-essential modules |
114 |
+ rm -f \ |
115 |
+ ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.* || die |
116 |
+ |
117 |
+ # allow users to keep some based on USE flags |
118 |
+ use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.* |
119 |
+ use webdav || rm -f ${libdir}/mod_webdav.* |
120 |
+ use mysql || rm -f ${libdir}/mod_mysql_vhost.* |
121 |
+ use lua || rm -f ${libdir}/mod_{cml,magnet}.* |
122 |
+ use rrdtool || rm -f ${libdir}/mod_rrdtool.* |
123 |
+ use zlib || rm -f ${libdir}/mod_compress.* |
124 |
+} |
125 |
+ |
126 |
+pkg_setup() { |
127 |
+ if ! use pcre ; then |
128 |
+ ewarn "It is highly recommended that you build ${PN}" |
129 |
+ ewarn "with perl regular expressions support via USE=pcre." |
130 |
+ ewarn "Otherwise you lose support for some core options such" |
131 |
+ ewarn "as conditionals and modules such as mod_re{write,direct}" |
132 |
+ ewarn "and mod_ssi." |
133 |
+ fi |
134 |
+ |
135 |
+ enewgroup lighttpd |
136 |
+ enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd |
137 |
+ |
138 |
+ DOC_CONTENTS="IPv6 migration guide:\n |
139 |
+ http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config" |
140 |
+} |
141 |
+ |
142 |
+src_prepare() { |
143 |
+ default |
144 |
+ use memcached && append-ldflags -pthread |
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 dbi) \ |
158 |
+ $(use_with fam) \ |
159 |
+ $(use_with gdbm) \ |
160 |
+ $(use_with geoip ) \ |
161 |
+ $(use_with kerberos krb5) \ |
162 |
+ $(use_with ldap) \ |
163 |
+ $(use_with libev) \ |
164 |
+ $(use_with lua) \ |
165 |
+ $(use_with memcached) \ |
166 |
+ $(use_with mysql) \ |
167 |
+ $(use_with pcre) \ |
168 |
+ $(use_with postgres pgsql) \ |
169 |
+ $(use_with sasl) \ |
170 |
+ $(use_with ssl openssl) \ |
171 |
+ $(use_with sqlite sqlite) \ |
172 |
+ $(use_with webdav webdav-props) \ |
173 |
+ $(use_with webdav webdav-locks) \ |
174 |
+ $(use_with xattr attr) \ |
175 |
+ $(use_with zlib) |
176 |
+} |
177 |
+ |
178 |
+src_compile() { |
179 |
+ emake |
180 |
+ |
181 |
+ if use doc ; then |
182 |
+ einfo "Building HTML documentation" |
183 |
+ cd doc || die |
184 |
+ emake html |
185 |
+ fi |
186 |
+} |
187 |
+ |
188 |
+src_test() { |
189 |
+ if [[ ${EUID} -eq 0 ]]; then |
190 |
+ default_src_test |
191 |
+ else |
192 |
+ ewarn "test skipped, please re-run as root if you wish to test ${PN}" |
193 |
+ fi |
194 |
+} |
195 |
+ |
196 |
+src_install() { |
197 |
+ default |
198 |
+ |
199 |
+ find "${D}" -name '*.la' -delete || die |
200 |
+ |
201 |
+ # init script stuff |
202 |
+ newinitd "${FILESDIR}"/lighttpd.initd lighttpd |
203 |
+ newconfd "${FILESDIR}"/lighttpd.confd lighttpd |
204 |
+ use fam && has_version app-admin/fam && \ |
205 |
+ { sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd || die; } |
206 |
+ |
207 |
+ # configs |
208 |
+ insinto /etc/lighttpd |
209 |
+ doins "${FILESDIR}"/conf/lighttpd.conf |
210 |
+ doins "${FILESDIR}"/conf/mime-types.conf |
211 |
+ doins "${FILESDIR}"/conf/mod_cgi.conf |
212 |
+ doins "${FILESDIR}"/conf/mod_fastcgi.conf |
213 |
+ |
214 |
+ # update lighttpd.conf directives based on conditionals |
215 |
+ update_config |
216 |
+ |
217 |
+ # docs |
218 |
+ dodoc AUTHORS README NEWS doc/scripts/*.sh |
219 |
+ newdoc doc/config//lighttpd.conf lighttpd.conf.distrib |
220 |
+ use ipv6 && readme.gentoo_create_doc |
221 |
+ |
222 |
+ use doc && dodoc -r doc |
223 |
+ |
224 |
+ docinto txt |
225 |
+ dodoc doc/outdated/*.txt |
226 |
+ |
227 |
+ # logrotate |
228 |
+ insinto /etc/logrotate.d |
229 |
+ newins "${FILESDIR}"/lighttpd.logrotate-r1 lighttpd |
230 |
+ |
231 |
+ keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs |
232 |
+ fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd |
233 |
+ fperms 0750 /var/l{ib,og}/lighttpd |
234 |
+ |
235 |
+ #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi |
236 |
+ rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.* || die |
237 |
+ |
238 |
+ use minimal && remove_non_essential |
239 |
+ |
240 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
241 |
+ systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf" |
242 |
+} |
243 |
+ |
244 |
+pkg_postinst () { |
245 |
+ use ipv6 && readme.gentoo_print_elog |
246 |
+ |
247 |
+ if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then |
248 |
+ einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi." |
249 |
+ einfo "spawn-fcgi's init script configuration is now located" |
250 |
+ einfo "at /etc/conf.d/spawn-fcgi." |
251 |
+ fi |
252 |
+ |
253 |
+ if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then |
254 |
+ elog "Gentoo has a customized configuration," |
255 |
+ elog "which is now located in /etc/lighttpd. Please migrate your" |
256 |
+ elog "existing configuration." |
257 |
+ fi |
258 |
+} |