Gentoo Archives: gentoo-commits

From: "Christian Hoffmann (hoffie)" <hoffie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/lighttpd: ChangeLog lighttpd-1.4.20.ebuild lighttpd-1.4.18-r2.ebuild lighttpd-1.4.18.ebuild lighttpd-1.4.19.ebuild lighttpd-1.4.18-r3.ebuild lighttpd-1.4.16.ebuild lighttpd-1.4.18-r1.ebuild
Date: Tue, 30 Sep 2008 14:58:00
Message-Id: E1Kkgfl-0002t8-IN@stork.gentoo.org
1 hoffie 08/09/30 14:57:57
2
3 Modified: ChangeLog
4 Added: lighttpd-1.4.20.ebuild
5 Removed: lighttpd-1.4.18-r2.ebuild lighttpd-1.4.18.ebuild
6 lighttpd-1.4.19.ebuild lighttpd-1.4.18-r3.ebuild
7 lighttpd-1.4.16.ebuild lighttpd-1.4.18-r1.ebuild
8 Log:
9 version bump to 1.4.20, including fixes for the security issues outlined in bug 238180; removing old
10 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo x86_64)
11
12 Revision Changes Path
13 1.185 www-servers/lighttpd/ChangeLog
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.185&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.185&content-type=text/plain
17 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/ChangeLog?r1=1.184&r2=1.185
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v
22 retrieving revision 1.184
23 retrieving revision 1.185
24 diff -u -r1.184 -r1.185
25 --- ChangeLog 22 Aug 2008 22:25:40 -0000 1.184
26 +++ ChangeLog 30 Sep 2008 14:57:57 -0000 1.185
27 @@ -1,6 +1,17 @@
28 # ChangeLog for www-servers/lighttpd
29 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.184 2008/08/22 22:25:40 cardoe Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.185 2008/09/30 14:57:57 hoffie Exp $
32 +
33 +*lighttpd-1.4.20 (30 Sep 2008)
34 +
35 + 30 Sep 2008; Christian Hoffmann <hoffie@g.o>
36 + +files/1.4.20/03_all_lighttpd-1.4.11-errorlog-pipe.diff,
37 + -lighttpd-1.4.16.ebuild, -lighttpd-1.4.18.ebuild,
38 + -lighttpd-1.4.18-r1.ebuild, -lighttpd-1.4.18-r2.ebuild,
39 + -lighttpd-1.4.18-r3.ebuild, -lighttpd-1.4.19.ebuild,
40 + +lighttpd-1.4.20.ebuild:
41 + version bump to 1.4.20, including fixes for the security issues outlined
42 + in bug 238180; removing old
43
44 22 Aug 2008; Doug Goldstein <cardoe@g.o> metadata.xml:
45 add GLEP 56 USE flag desc from use.local.desc
46
47
48
49 1.1 www-servers/lighttpd/lighttpd-1.4.20.ebuild
50
51 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.20.ebuild?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.20.ebuild?rev=1.1&content-type=text/plain
53
54 Index: lighttpd-1.4.20.ebuild
55 ===================================================================
56 # Copyright 1999-2008 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.20.ebuild,v 1.1 2008/09/30 14:57:57 hoffie Exp $
59
60 WANT_AUTOCONF=latest
61 WANT_AUTOMAKE=latest
62 inherit eutils autotools depend.php
63
64 DESCRIPTION="Lightweight high-performance web server"
65 HOMEPAGE="http://www.lighttpd.net/"
66 SRC_URI="http://www.lighttpd.net/download/${P}.tar.bz2"
67
68 LICENSE="BSD"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
71 IUSE="bzip2 doc fam fastcgi gdbm ipv6 ldap lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr"
72
73 RDEPEND=">=sys-libs/zlib-1.1
74 bzip2? ( app-arch/bzip2 )
75 fam? ( virtual/fam )
76 gdbm? ( sys-libs/gdbm )
77 ldap? ( >=net-nds/openldap-2.1.26 )
78 lua? ( >=dev-lang/lua-5.1 )
79 memcache? ( dev-libs/libmemcache )
80 mysql? ( >=virtual/mysql-4.0 )
81 pcre? ( >=dev-libs/libpcre-3.1 )
82 php? ( virtual/httpd-php )
83 rrdtool? ( net-analyzer/rrdtool )
84 ssl? ( >=dev-libs/openssl-0.9.7 )
85 webdav? (
86 dev-libs/libxml2
87 >=dev-db/sqlite-3
88 sys-fs/e2fsprogs
89 )
90 xattr? ( kernel_linux? ( sys-apps/attr ) )"
91
92 DEPEND="${RDEPEND}
93 doc? ( dev-python/docutils )
94 test? (
95 virtual/perl-Test-Harness
96 dev-libs/fcgi
97 )"
98
99 # update certain parts of lighttpd.conf based on conditionals
100 update_config() {
101 local config="/etc/lighttpd/lighttpd.conf"
102
103 # enable php/mod_fastcgi settings
104 use php && \
105 dosed 's|#.*\(include.*fastcgi.*$\)|\1|' ${config}
106
107 # enable stat() caching
108 use fam && \
109 dosed 's|#\(.*stat-cache.*$\)|\1|' ${config}
110 }
111
112 # remove non-essential stuff (for USE=minimal)
113 remove_non_essential() {
114 local libdir="${D}/usr/$(get_libdir)/${PN}"
115
116 # text docs
117 use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
118
119 # non-essential modules
120 rm -f \
121 ${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
122
123 # allow users to keep some based on USE flags
124 use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
125 use webdav || rm -f ${libdir}/mod_webdav.*
126 use mysql || rm -f ${libdir}/mod_mysql_vhost.*
127 use lua || rm -f ${libdir}/mod_{cml,magnet}.*
128 use rrdtool || rm -f ${libdir}/mod_rrdtool.*
129
130 if ! use fastcgi ; then
131 rm -f ${libdir}/mod_fastcgi.* "${D}"/usr/bin/spawn-fcgi \
132 "${D}"/usr/share/man/man1/spawn-fcgi.*
133 fi
134 }
135
136 pkg_setup() {
137 if ! use pcre ; then
138 ewarn "It is highly recommended that you build ${PN}"
139 ewarn "with perl regular expressions support via USE=pcre."
140 ewarn "Otherwise you lose support for some core options such"
141 ewarn "as conditionals and modules such as mod_re{write,direct}"
142 ewarn "and mod_ssi."
143 ebeep 5
144 fi
145
146 use php && require_php_with_use cgi
147
148 enewgroup lighttpd
149 enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
150 }
151
152 src_unpack() {
153 unpack ${A}
154 cd "${S}"
155
156 EPATCH_SUFFIX="diff" EPATCH_OPTS="-l" epatch "${FILESDIR}"/"${PVR}" || die "Patching failed!"
157
158 eautoreconf || die
159
160 # dev-python/docutils installs rst2html.py not rst2html
161 sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.in || \
162 die "sed doc/Makefile.in failed"
163
164 # fix typo
165 sed -i -e 's|\(output_content\)_\(type\)|\1\2|' doc/cml.txt || \
166 die "sed doc/cml.txt failed"
167 }
168
169 src_compile() {
170 econf --libdir=/usr/$(get_libdir)/${PN} \
171 --enable-lfs \
172 $(use_enable ipv6) \
173 $(use_with bzip2) \
174 $(use_with fam) \
175 $(use_with gdbm) \
176 $(use_with lua) \
177 $(use_with ldap) \
178 $(use_with memcache) \
179 $(use_with mysql) \
180 $(use_with pcre) \
181 $(use_with ssl openssl) \
182 $(use_with webdav webdav-props) \
183 $(use_with webdav webdav-locks) \
184 $(use_with xattr attr) \
185 || die "econf failed"
186
187 emake || die "emake failed"
188
189 if use doc ; then
190 einfo "Building HTML documentation"
191 cd doc
192 emake html || die "failed to build HTML documentation"
193 fi
194 }
195
196 src_install() {
197 make DESTDIR="${D}" install || die "make install failed"
198
199 # init script stuff
200 newinitd "${FILESDIR}"/lighttpd.initd-1.4.13-r3 lighttpd || die
201 newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die
202 use fam && has_version app-admin/fam && \
203 sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd
204
205 if use php || use fastcgi ; then
206 newinitd "${FILESDIR}"/spawn-fcgi.initd spawn-fcgi || die
207 newconfd "${FILESDIR}"/spawn-fcgi.confd spawn-fcgi || die
208 fi
209
210 # configs
211 insinto /etc/lighttpd
212 doins "${FILESDIR}"/conf/lighttpd.conf
213 doins "${FILESDIR}"/conf/mime-types.conf
214 doins "${FILESDIR}"/conf/mod_cgi.conf
215 newins "${FILESDIR}"/conf/mod_fastcgi.conf-1.4.13-r2 mod_fastcgi.conf
216 # Secure directory for fastcgi sockets
217 keepdir /var/run/lighttpd/
218 fperms 0750 /var/run/lighttpd/
219 fowners lighttpd:lighttpd /var/run/lighttpd/
220
221 # update lighttpd.conf directives based on conditionals
222 update_config
223
224 # docs
225 dodoc AUTHORS README NEWS ChangeLog doc/*.sh
226 newdoc doc/lighttpd.conf lighttpd.conf.distrib
227
228 use doc && dohtml -r doc/*
229
230 docinto txt
231 dodoc doc/*.txt
232
233 # logrotate
234 insinto /etc/logrotate.d
235 newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die
236
237 keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
238 fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
239 fperms 0750 /var/l{ib,og}/lighttpd
240
241 use minimal && remove_non_essential
242 }
243
244 pkg_postinst () {
245 echo
246 if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
247 einfo "spawn-fcgi is now included with lighttpd"
248 einfo "spawn-fcgi's init script configuration is now located"
249 einfo "at /etc/conf.d/spawn-fcgi."
250 echo
251 fi
252
253 if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
254 ewarn "As of lighttpd-1.4.1, Gentoo has a customized configuration,"
255 ewarn "which is now located in /etc/lighttpd. Please migrate your"
256 ewarn "existing configuration."
257 ebeep 5
258 fi
259
260 if use fam ; then
261 einfo "Remember to re-emerge lighttpd should you switch from"
262 einfo "app-admin/famd to app-admin/gamin or vice versa."
263 fi
264 echo
265 }