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