1 |
bangert 09/10/29 22:12:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lighttpd-1.4.24.ebuild |
5 |
Log: |
6 |
version bump |
7 |
(Portage version: 2.2_rc46/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.210 www-servers/lighttpd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.210&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.210&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/ChangeLog?r1=1.209&r2=1.210 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v |
19 |
retrieving revision 1.209 |
20 |
retrieving revision 1.210 |
21 |
diff -u -r1.209 -r1.210 |
22 |
--- ChangeLog 21 Oct 2009 08:03:53 -0000 1.209 |
23 |
+++ ChangeLog 29 Oct 2009 22:12:12 -0000 1.210 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for www-servers/lighttpd |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.209 2009/10/21 08:03:53 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.210 2009/10/29 22:12:12 bangert Exp $ |
29 |
+ |
30 |
+*lighttpd-1.4.24 (29 Oct 2009) |
31 |
+ |
32 |
+ 29 Oct 2009; Thilo Bangert <bangert@g.o> +lighttpd-1.4.24.ebuild, |
33 |
+ +files/lighttpd-1.4.24-mod_magnet-fix-pairs.patch: |
34 |
+ version bump |
35 |
|
36 |
21 Oct 2009; Jeroen Roovers <jer@g.o> lighttpd-1.4.23.ebuild: |
37 |
Stable for HPPA (bug #286134). |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-servers/lighttpd/lighttpd-1.4.24.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.24.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.24.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: lighttpd-1.4.24.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 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.24.ebuild,v 1.1 2009/10/29 22:12:12 bangert Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit eutils autotools depend.php |
55 |
|
56 |
DESCRIPTION="Lightweight high-performance web server" |
57 |
HOMEPAGE="http://www.lighttpd.net/" |
58 |
SRC_URI="http://www.lighttpd.net/download/${P}.tar.bz2" |
59 |
|
60 |
LICENSE="BSD" |
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 fastcgi gdbm ipv6 ldap lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr" |
64 |
|
65 |
RDEPEND=" |
66 |
>=sys-libs/zlib-1.1 |
67 |
bzip2? ( app-arch/bzip2 ) |
68 |
fam? ( virtual/fam ) |
69 |
gdbm? ( sys-libs/gdbm ) |
70 |
ldap? ( >=net-nds/openldap-2.1.26 ) |
71 |
lua? ( >=dev-lang/lua-5.1 ) |
72 |
memcache? ( dev-libs/libmemcache ) |
73 |
mysql? ( >=virtual/mysql-4.0 ) |
74 |
pcre? ( >=dev-libs/libpcre-3.1 ) |
75 |
php? ( virtual/httpd-php ) |
76 |
rrdtool? ( net-analyzer/rrdtool ) |
77 |
ssl? ( >=dev-libs/openssl-0.9.7 ) |
78 |
webdav? ( |
79 |
dev-libs/libxml2 |
80 |
>=dev-db/sqlite-3 |
81 |
sys-fs/e2fsprogs |
82 |
) |
83 |
xattr? ( kernel_linux? ( sys-apps/attr ) )" |
84 |
|
85 |
DEPEND="${RDEPEND} |
86 |
dev-util/pkgconfig |
87 |
doc? ( dev-python/docutils ) |
88 |
test? ( |
89 |
virtual/perl-Test-Harness |
90 |
dev-libs/fcgi |
91 |
)" |
92 |
|
93 |
# update certain parts of lighttpd.conf based on conditionals |
94 |
update_config() { |
95 |
local config="/etc/lighttpd/lighttpd.conf" |
96 |
|
97 |
# enable php/mod_fastcgi settings |
98 |
use php && \ |
99 |
dosed 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} |
100 |
|
101 |
# enable stat() caching |
102 |
use fam && \ |
103 |
dosed 's|#\(.*stat-cache.*$\)|\1|' ${config} |
104 |
} |
105 |
|
106 |
# remove non-essential stuff (for USE=minimal) |
107 |
remove_non_essential() { |
108 |
local libdir="${D}/usr/$(get_libdir)/${PN}" |
109 |
|
110 |
# text docs |
111 |
use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt |
112 |
|
113 |
# non-essential modules |
114 |
rm -f \ |
115 |
${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.* |
116 |
|
117 |
# allow users to keep some based on USE flags |
118 |
use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.* |
119 |
use webdav || rm -f ${libdir}/mod_webdav.* |
120 |
use mysql || rm -f ${libdir}/mod_mysql_vhost.* |
121 |
use lua || rm -f ${libdir}/mod_{cml,magnet}.* |
122 |
use rrdtool || rm -f ${libdir}/mod_rrdtool.* |
123 |
|
124 |
if ! use fastcgi ; then |
125 |
rm -f ${libdir}/mod_fastcgi.* |
126 |
fi |
127 |
} |
128 |
|
129 |
pkg_setup() { |
130 |
if ! use pcre ; then |
131 |
ewarn "It is highly recommended that you build ${PN}" |
132 |
ewarn "with perl regular expressions support via USE=pcre." |
133 |
ewarn "Otherwise you lose support for some core options such" |
134 |
ewarn "as conditionals and modules such as mod_re{write,direct}" |
135 |
ewarn "and mod_ssi." |
136 |
ebeep 5 |
137 |
fi |
138 |
|
139 |
use php && require_php_with_use cgi |
140 |
|
141 |
enewgroup lighttpd |
142 |
enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd |
143 |
} |
144 |
|
145 |
src_prepare() { |
146 |
epatch "${FILESDIR}"/lighttpd-1.4.24-mod_magnet-fix-pairs.patch |
147 |
# dev-python/docutils installs rst2html.py not rst2html |
148 |
sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \ |
149 |
die "sed doc/Makefile.am failed" |
150 |
|
151 |
eautoreconf || die |
152 |
} |
153 |
|
154 |
src_configure() { |
155 |
econf --libdir=/usr/$(get_libdir)/${PN} \ |
156 |
--enable-lfs \ |
157 |
$(use_enable ipv6) \ |
158 |
$(use_with bzip2) \ |
159 |
$(use_with fam) \ |
160 |
$(use_with gdbm) \ |
161 |
$(use_with lua) \ |
162 |
$(use_with ldap) \ |
163 |
$(use_with memcache) \ |
164 |
$(use_with mysql) \ |
165 |
$(use_with pcre) \ |
166 |
$(use_with ssl openssl) \ |
167 |
$(use_with webdav webdav-props) \ |
168 |
$(use_with webdav webdav-locks) \ |
169 |
$(use_with xattr attr) \ |
170 |
|| die "econf failed" |
171 |
} |
172 |
|
173 |
src_compile() { |
174 |
emake || die "emake failed" |
175 |
|
176 |
if use doc ; then |
177 |
einfo "Building HTML documentation" |
178 |
cd doc |
179 |
emake html || die "failed to build HTML documentation" |
180 |
fi |
181 |
} |
182 |
|
183 |
src_test() { |
184 |
if [[ ${EUID} -eq 0 ]]; then |
185 |
default_src_test |
186 |
else |
187 |
ewarn "test skipped, please re-run as root if you wish to test ${PN}" |
188 |
fi |
189 |
} |
190 |
|
191 |
src_install() { |
192 |
make DESTDIR="${D}" install || die "make install failed" |
193 |
|
194 |
# init script stuff |
195 |
newinitd "${FILESDIR}"/lighttpd.initd lighttpd || die |
196 |
newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die |
197 |
use fam && has_version app-admin/fam && \ |
198 |
sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd |
199 |
|
200 |
# configs |
201 |
insinto /etc/lighttpd |
202 |
doins "${FILESDIR}"/conf/lighttpd.conf |
203 |
doins "${FILESDIR}"/conf/mime-types.conf |
204 |
doins "${FILESDIR}"/conf/mod_cgi.conf |
205 |
doins "${FILESDIR}"/conf/mod_fastcgi.conf |
206 |
# Secure directory for fastcgi sockets |
207 |
keepdir /var/run/lighttpd/ |
208 |
fperms 0750 /var/run/lighttpd/ |
209 |
fowners lighttpd:lighttpd /var/run/lighttpd/ |
210 |
|
211 |
# update lighttpd.conf directives based on conditionals |
212 |
update_config |
213 |
|
214 |
# docs |
215 |
dodoc AUTHORS README NEWS doc/*.sh |
216 |
newdoc doc/lighttpd.conf lighttpd.conf.distrib |
217 |
|
218 |
use doc && dohtml -r doc/* |
219 |
|
220 |
docinto txt |
221 |
dodoc doc/*.txt |
222 |
|
223 |
# logrotate |
224 |
insinto /etc/logrotate.d |
225 |
newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die |
226 |
|
227 |
keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs |
228 |
fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd |
229 |
fperms 0750 /var/l{ib,og}/lighttpd |
230 |
|
231 |
#spawn-fcgi may optionally be installed via www-servers/spawn-fcgi |
232 |
rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.* |
233 |
|
234 |
use minimal && remove_non_essential |
235 |
} |
236 |
|
237 |
pkg_postinst () { |
238 |
echo |
239 |
if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then |
240 |
einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi." |
241 |
einfo "spawn-fcgi's init script configuration is now located" |
242 |
einfo "at /etc/conf.d/spawn-fcgi." |
243 |
echo |
244 |
fi |
245 |
|
246 |
if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then |
247 |
ewarn "Gentoo has a customized configuration," |
248 |
ewarn "which is now located in /etc/lighttpd. Please migrate your" |
249 |
ewarn "existing configuration." |
250 |
ebeep 5 |
251 |
fi |
252 |
|
253 |
if use fastcgi; then |
254 |
ewarn "As of lighttpd-1.4.22, spawn-fcgi is provided by the separate" |
255 |
ewarn "www-servers/spawn-fcgi package. Please install it manually, if" |
256 |
ewarn "you use spawn-fcgi." |
257 |
ewarn "It features a new, more featurefull init script - please migrate" |
258 |
ewarn "your configuration!" |
259 |
fi |
260 |
} |