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: Sun, 09 Feb 2020 16:48:24
Message-Id: 1581266897.71989131caac4f0f438788ae019ab4806a1fdb7c.zlogene@gentoo
1 commit: 71989131caac4f0f438788ae019ab4806a1fdb7c
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 9 16:48:07 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 9 16:48:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71989131
7
8 www-servers/lighttpd: Drop live ebuild
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 www-servers/lighttpd/lighttpd-9999.ebuild | 217 ------------------------------
14 1 file changed, 217 deletions(-)
15
16 diff --git a/www-servers/lighttpd/lighttpd-9999.ebuild b/www-servers/lighttpd/lighttpd-9999.ebuild
17 deleted file mode 100644
18 index 4db91887f92..00000000000
19 --- a/www-servers/lighttpd/lighttpd-9999.ebuild
20 +++ /dev/null
21 @@ -1,217 +0,0 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -inherit autotools eutils readme.gentoo-r1 systemd git-r3
28 -
29 -DESCRIPTION="Lightweight high-performance web server"
30 -HOMEPAGE="https://www.lighttpd.net
31 - https://github.com/lighttpd"
32 -EGIT_REPO_URI="https://git.lighttpd.net/lighttpd1.4.git git+ssh://git@××××××××.net/lighttpd/lighttpd1.4.git git://git.lighttpd.net/lighttpd/lighttpd1.4.git"
33 -
34 -LICENSE="BSD GPL-2"
35 -SLOT="0"
36 -KEYWORDS=""
37 -IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev libressl lua minimal mmap memcached mysql pcre php rrdtool selinux ssl test webdav xattr zlib"
38 -RESTRICT="!test? ( test )"
39 -
40 -REQUIRED_USE="kerberos? ( ssl !libressl )"
41 -
42 -COMMON_DEPEND="
43 - bzip2? ( app-arch/bzip2 )
44 - fam? ( virtual/fam )
45 - gdbm? ( sys-libs/gdbm )
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? ( >=virtual/mysql-4.0 )
51 - pcre? ( >=dev-libs/libpcre-3.1 )
52 - php? ( dev-lang/php:*[cgi] )
53 - rrdtool? ( net-analyzer/rrdtool )
54 - ssl? (
55 - !libressl? ( >=dev-libs/openssl-0.9.7:0= )
56 - libressl? ( dev-libs/libressl:= )
57 - )
58 - webdav? (
59 - dev-libs/libxml2
60 - >=dev-db/sqlite-3
61 - sys-fs/e2fsprogs
62 - )
63 - xattr? ( kernel_linux? ( sys-apps/attr ) )
64 - zlib? ( >=sys-libs/zlib-1.1 )
65 - acct-group/lighttpd
66 - acct-user/lighttpd"
67 -
68 -DEPEND="${COMMON_DEPEND}
69 - virtual/pkgconfig
70 - doc? ( dev-python/docutils )
71 - test? (
72 - virtual/perl-Test-Harness
73 - dev-libs/fcgi
74 - )"
75 -
76 -RDEPEND="${COMMON_DEPEND}
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}.*
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 - #dev-python/docutils installs rst2html.py not rst2html
132 - sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \
133 - die "sed doc/Makefile.am failed"
134 - eautoreconf
135 - default
136 -}
137 -
138 -src_configure() {
139 - econf --libdir=/usr/$(get_libdir)/${PN} \
140 - --enable-lfs \
141 - $(use_enable ipv6) \
142 - $(use_enable mmap) \
143 - $(use_with bzip2) \
144 - $(use_with fam) \
145 - $(use_with gdbm) \
146 - $(use_with kerberos kerberos5) \
147 - $(use_with ldap) \
148 - $(use_with libev) \
149 - $(use_with lua) \
150 - $(use_with memcached memcache) \
151 - $(use_with mysql) \
152 - $(use_with pcre) \
153 - $(use_with ssl openssl) \
154 - $(use_with webdav webdav-props) \
155 - $(use_with webdav webdav-locks) \
156 - $(use_with xattr attr) \
157 - $(use_with zlib)
158 -}
159 -
160 -src_compile() {
161 - emake
162 -
163 - if use doc ; then
164 - einfo "Building HTML documentation"
165 - cd doc || die
166 - emake html
167 - fi
168 -}
169 -
170 -src_test() {
171 - if [[ ${EUID} -eq 0 ]]; then
172 - default_src_test
173 - else
174 - ewarn "test skipped, please re-run as root if you wish to test ${PN}"
175 - fi
176 -}
177 -
178 -src_install() {
179 - default
180 -
181 - # init script stuff
182 - newinitd "${FILESDIR}"/lighttpd.initd lighttpd
183 - newconfd "${FILESDIR}"/lighttpd.confd lighttpd
184 - use fam && has_version app-admin/fam && \
185 - { sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd || die; }
186 -
187 - # configs
188 - insinto /etc/lighttpd
189 - doins "${FILESDIR}"/conf/lighttpd.conf
190 - doins "${FILESDIR}"/conf/mime-types.conf
191 - doins "${FILESDIR}"/conf/mod_cgi.conf
192 - doins "${FILESDIR}"/conf/mod_fastcgi.conf
193 -
194 - # update lighttpd.conf directives based on conditionals
195 - update_config
196 -
197 - # docs
198 - dodoc AUTHORS README NEWS doc/scripts/*.sh
199 - newdoc doc/config//lighttpd.conf lighttpd.conf.distrib
200 - use ipv6 && readme.gentoo_create_doc
201 -
202 - use doc && dodoc -r doc
203 -
204 - docinto txt
205 - dodoc doc/outdated/*.txt
206 -
207 - # logrotate
208 - insinto /etc/logrotate.d
209 - newins "${FILESDIR}"/lighttpd.logrotate-r1 lighttpd
210 -
211 - keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
212 - fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
213 - fperms 0750 /var/l{ib,og}/lighttpd
214 -
215 - #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
216 - rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
217 -
218 - use minimal && remove_non_essential
219 -
220 - systemd_dounit "${FILESDIR}/${PN}.service"
221 - systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf"
222 -}
223 -
224 -pkg_postinst () {
225 - use ipv6 && readme.gentoo_print_elog
226 -
227 - if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
228 - einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
229 - einfo "spawn-fcgi's init script configuration is now located"
230 - einfo "at /etc/conf.d/spawn-fcgi."
231 - fi
232 -
233 - if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
234 - elog "Gentoo has a customized configuration,"
235 - elog "which is now located in /etc/lighttpd. Please migrate your"
236 - elog "existing configuration."
237 - fi
238 -}