Gentoo Archives: gentoo-commits

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