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