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