Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/lighttpd: lighttpd-1.4.33.ebuild ChangeLog
Date: Sat, 28 Sep 2013 13:07:35
Message-Id: 20130928130729.6E6A32004C@flycatcher.gentoo.org
1 hwoarang 13/09/28 13:07:29
2
3 Modified: ChangeLog
4 Added: lighttpd-1.4.33.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.6/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)
9
10 Revision Changes Path
11 1.311 www-servers/lighttpd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.311&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.311&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/ChangeLog?r1=1.310&r2=1.311
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v
20 retrieving revision 1.310
21 retrieving revision 1.311
22 diff -u -r1.310 -r1.311
23 --- ChangeLog 22 Sep 2013 09:36:05 -0000 1.310
24 +++ ChangeLog 28 Sep 2013 13:07:29 -0000 1.311
25 @@ -1,6 +1,11 @@
26 # ChangeLog for www-servers/lighttpd
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.310 2013/09/22 09:36:05 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.311 2013/09/28 13:07:29 hwoarang Exp $
30 +
31 +*lighttpd-1.4.33 (28 Sep 2013)
32 +
33 + 28 Sep 2013; Markos Chandras <hwoarang@g.o> +lighttpd-1.4.33.ebuild:
34 + Version bump
35
36 *lighttpd-1.4.32-r3 (22 Sep 2013)
37
38
39
40
41 1.1 www-servers/lighttpd/lighttpd-1.4.33.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.33.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.33.ebuild?rev=1.1&content-type=text/plain
45
46 Index: lighttpd-1.4.33.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.33.ebuild,v 1.1 2013/09/28 13:07:29 hwoarang Exp $
51
52 EAPI="4"
53 inherit base autotools eutils depend.php readme.gentoo user systemd
54
55 DESCRIPTION="Lightweight high-performance web server"
56 HOMEPAGE="http://www.lighttpd.net/"
57 SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2"
58
59 LICENSE="BSD GPL-2"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
62 IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev lua minimal mmap memcache mysql pcre php rrdtool selinux ssl test uploadprogress webdav xattr zlib"
63
64 REQUIRED_USE="kerberos? ( ssl )"
65
66 RDEPEND="
67 bzip2? ( app-arch/bzip2 )
68 fam? ( virtual/fam )
69 gdbm? ( sys-libs/gdbm )
70 ldap? ( >=net-nds/openldap-2.1.26 )
71 libev? ( >=dev-libs/libev-4.01 )
72 lua? ( >=dev-lang/lua-5.1 )
73 memcache? ( dev-libs/libmemcache )
74 mysql? ( >=virtual/mysql-4.0 )
75 pcre? ( >=dev-libs/libpcre-3.1 )
76 php? ( dev-lang/php[cgi] )
77 rrdtool? ( net-analyzer/rrdtool )
78 selinux? ( sec-policy/selinux-apache )
79 ssl? ( >=dev-libs/openssl-0.9.7[kerberos?] )
80 webdav? (
81 dev-libs/libxml2
82 >=dev-db/sqlite-3
83 sys-fs/e2fsprogs
84 )
85 xattr? ( kernel_linux? ( sys-apps/attr ) )
86 zlib? ( >=sys-libs/zlib-1.1 )"
87
88 DEPEND="${RDEPEND}
89 virtual/pkgconfig
90 doc? ( dev-python/docutils )
91 test? (
92 virtual/perl-Test-Harness
93 dev-libs/fcgi
94 )"
95
96 # update certain parts of lighttpd.conf based on conditionals
97 update_config() {
98 local config="${D}/etc/lighttpd/lighttpd.conf"
99
100 # enable php/mod_fastcgi settings
101 use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; }
102
103 # enable stat() caching
104 use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; }
105
106 # automatically listen on IPv6 if built with USE=ipv6. Bug #234987
107 use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; }
108 }
109
110 # remove non-essential stuff (for USE=minimal)
111 remove_non_essential() {
112 local libdir="${D}/usr/$(get_libdir)/${PN}"
113
114 # text docs
115 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
116
117 # non-essential modules
118 rm -f \
119 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
120
121 # allow users to keep some based on USE flags
122 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
123 use webdav || rm -f ${libdir}/mod_webdav.*
124 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
125 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
126 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
127 use zlib || rm -f ${libdir}/mod_compress.*
128 }
129
130 pkg_setup() {
131 if ! use pcre ; then
132 ewarn "It is highly recommended that you build ${PN}"
133 ewarn "with perl regular expressions support via USE=pcre."
134 ewarn "Otherwise you lose support for some core options such"
135 ewarn "as conditionals and modules such as mod_re{write,direct}"
136 ewarn "and mod_ssi."
137 fi
138 if use mmap; then
139 ewarn "You have enabled the mmap option. This option may allow"
140 ewarn "local users to trigger SIGBUG crashes. Use this option"
141 ewarn "with EXTRA care."
142 fi
143 enewgroup lighttpd
144 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
145
146 DOC_CONTENTS="IPv6 migration guide:\n
147 http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config"
148 }
149
150 src_prepare() {
151 base_src_prepare
152 #dev-python/docutils installs rst2html.py not rst2html
153 sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \
154 die "sed doc/Makefile.am failed"
155 # Experimental patch for progress bar. Bug #380093
156 if use uploadprogress; then
157 epatch "${FILESDIR}"/${PN}-1.4.29-mod_uploadprogress.patch
158 fi
159 eautoreconf
160 }
161
162 src_configure() {
163 econf --libdir=/usr/$(get_libdir)/${PN} \
164 --enable-lfs \
165 $(use_enable ipv6) \
166 $(use_enable mmap) \
167 $(use_with bzip2) \
168 $(use_with fam) \
169 $(use_with gdbm) \
170 $(use_with kerberos kerberos5) \
171 $(use_with ldap) \
172 $(use_with libev) \
173 $(use_with lua) \
174 $(use_with memcache) \
175 $(use_with mysql) \
176 $(use_with pcre) \
177 $(use_with ssl openssl) \
178 $(use_with webdav webdav-props) \
179 $(use_with webdav webdav-locks) \
180 $(use_with xattr attr) \
181 $(use_with zlib)
182 }
183
184 src_compile() {
185 emake
186
187 if use doc ; then
188 einfo "Building HTML documentation"
189 cd doc || die
190 emake html
191 fi
192 }
193
194 src_test() {
195 if [[ ${EUID} -eq 0 ]]; then
196 default_src_test
197 else
198 ewarn "test skipped, please re-run as root if you wish to test ${PN}"
199 fi
200 }
201
202 src_install() {
203 emake DESTDIR="${D}" install
204
205 # init script stuff
206 newinitd "${FILESDIR}"/lighttpd.initd lighttpd
207 newconfd "${FILESDIR}"/lighttpd.confd lighttpd
208 use fam && has_version app-admin/fam && \
209 { sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd || die; }
210
211 # configs
212 insinto /etc/lighttpd
213 doins "${FILESDIR}"/conf/lighttpd.conf
214 doins "${FILESDIR}"/conf/mime-types.conf
215 doins "${FILESDIR}"/conf/mod_cgi.conf
216 doins "${FILESDIR}"/conf/mod_fastcgi.conf
217
218 # update lighttpd.conf directives based on conditionals
219 update_config
220
221 # docs
222 dodoc AUTHORS README NEWS doc/scripts/*.sh
223 newdoc doc/config//lighttpd.conf lighttpd.conf.distrib
224 use ipv6 && readme.gentoo_create_doc
225
226 use doc && dohtml -r doc/*
227
228 docinto txt
229 dodoc doc/outdated/*.txt
230
231 # logrotate
232 insinto /etc/logrotate.d
233 newins "${FILESDIR}"/lighttpd.logrotate lighttpd
234
235 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
236 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
237 fperms 0750 /var/l{ib,og}/lighttpd
238
239 #spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
240 rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
241
242 use minimal && remove_non_essential
243
244 systemd_dounit "${FILESDIR}/${PN}.service"
245 systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf"
246 }
247
248 pkg_postinst () {
249 use ipv6 && readme.gentoo_print_elog
250
251 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
252 einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
253 einfo "spawn-fcgi's init script configuration is now located"
254 einfo "at /etc/conf.d/spawn-fcgi."
255 fi
256
257 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
258 elog "Gentoo has a customized configuration,"
259 elog "which is now located in /etc/lighttpd. Please migrate your"
260 elog "existing configuration."
261 fi
262
263 if use uploadprogress; then
264 elog "WARNING! mod_uploadprogress is a backported module from the"
265 elog "1.5x-branch, which is not considered stable yet. Please go to"
266 elog "http://redmine.lighttpd.net/wiki/1/Docs:ModUploadProgress"
267 elog "for more information. This configuration also is NOT supported"
268 elog "by upstream, so please refrain from reporting bugs. You have"
269 elog "been warned!"
270 fi
271 }