Gentoo Archives: gentoo-commits

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