Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI="2" |
6 |
|
6 |
|
7 |
inherit eutils autotools depend.php |
7 |
inherit base eutils autotools depend.php |
8 |
|
8 |
|
9 |
DESCRIPTION="Lightweight high-performance web server" |
9 |
DESCRIPTION="Lightweight high-performance web server" |
10 |
HOMEPAGE="http://www.lighttpd.net/" |
10 |
HOMEPAGE="http://www.lighttpd.net/" |
Lines 12-19
Link Here
|
12 |
|
12 |
|
13 |
LICENSE="BSD" |
13 |
LICENSE="BSD" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~sparc-fbsd ~x86-fbsd" |
15 |
KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~sh ~x86 ~sparc-fbsd ~x86-fbsd" |
16 |
IUSE="bzip2 doc fam fastcgi gdbm ipv6 ldap lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr" |
16 |
IUSE="bzip2 doc fam gdbm ipv6 ldap libev lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr" |
17 |
|
17 |
|
18 |
RDEPEND=" |
18 |
RDEPEND=" |
19 |
>=sys-libs/zlib-1.1 |
19 |
>=sys-libs/zlib-1.1 |
Lines 21-31
Link Here
|
21 |
fam? ( virtual/fam ) |
21 |
fam? ( virtual/fam ) |
22 |
gdbm? ( sys-libs/gdbm ) |
22 |
gdbm? ( sys-libs/gdbm ) |
23 |
ldap? ( >=net-nds/openldap-2.1.26 ) |
23 |
ldap? ( >=net-nds/openldap-2.1.26 ) |
|
|
24 |
libev? ( dev-libs/libev ) |
24 |
lua? ( >=dev-lang/lua-5.1 ) |
25 |
lua? ( >=dev-lang/lua-5.1 ) |
25 |
memcache? ( dev-libs/libmemcache ) |
26 |
memcache? ( dev-libs/libmemcache ) |
26 |
mysql? ( >=virtual/mysql-4.0 ) |
27 |
mysql? ( >=virtual/mysql-4.0 ) |
27 |
pcre? ( >=dev-libs/libpcre-3.1 ) |
28 |
pcre? ( >=dev-libs/libpcre-3.1 ) |
28 |
php? ( virtual/httpd-php ) |
29 |
php? ( dev-lang/php[cgi] ) |
29 |
rrdtool? ( net-analyzer/rrdtool ) |
30 |
rrdtool? ( net-analyzer/rrdtool ) |
30 |
ssl? ( >=dev-libs/openssl-0.9.7 ) |
31 |
ssl? ( >=dev-libs/openssl-0.9.7 ) |
31 |
webdav? ( |
32 |
webdav? ( |
Lines 54-59
Link Here
|
54 |
# enable stat() caching |
55 |
# enable stat() caching |
55 |
use fam && \ |
56 |
use fam && \ |
56 |
dosed 's|#\(.*stat-cache.*$\)|\1|' ${config} |
57 |
dosed 's|#\(.*stat-cache.*$\)|\1|' ${config} |
|
|
58 |
|
59 |
# automatically listen on IPv6 if built with USE=ipv6. Bug #234987 |
60 |
use ipv6 && \ |
61 |
dosed 's|# server.use-ipv6|server.use-ipv6|' ${config} |
57 |
} |
62 |
} |
58 |
|
63 |
|
59 |
# remove non-essential stuff (for USE=minimal) |
64 |
# remove non-essential stuff (for USE=minimal) |
Lines 73-82
Link Here
|
73 |
use mysql || rm -f ${libdir}/mod_mysql_vhost.* |
78 |
use mysql || rm -f ${libdir}/mod_mysql_vhost.* |
74 |
use lua || rm -f ${libdir}/mod_{cml,magnet}.* |
79 |
use lua || rm -f ${libdir}/mod_{cml,magnet}.* |
75 |
use rrdtool || rm -f ${libdir}/mod_rrdtool.* |
80 |
use rrdtool || rm -f ${libdir}/mod_rrdtool.* |
76 |
|
|
|
77 |
if ! use fastcgi ; then |
78 |
rm -f ${libdir}/mod_fastcgi.* |
79 |
fi |
80 |
} |
81 |
} |
81 |
|
82 |
|
82 |
pkg_setup() { |
83 |
pkg_setup() { |
Lines 86-106
Link Here
|
86 |
ewarn "Otherwise you lose support for some core options such" |
87 |
ewarn "Otherwise you lose support for some core options such" |
87 |
ewarn "as conditionals and modules such as mod_re{write,direct}" |
88 |
ewarn "as conditionals and modules such as mod_re{write,direct}" |
88 |
ewarn "and mod_ssi." |
89 |
ewarn "and mod_ssi." |
89 |
ebeep 5 |
|
|
90 |
fi |
90 |
fi |
91 |
|
91 |
|
92 |
use php && require_php_with_use cgi |
|
|
93 |
|
94 |
enewgroup lighttpd |
92 |
enewgroup lighttpd |
95 |
enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd |
93 |
enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd |
96 |
} |
94 |
} |
97 |
|
95 |
|
98 |
src_prepare() { |
96 |
src_prepare() { |
99 |
# dev-python/docutils installs rst2html.py not rst2html |
97 |
base_src_prepare |
|
|
98 |
dev-python/docutils installs rst2html.py not rst2html |
100 |
sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \ |
99 |
sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \ |
101 |
die "sed doc/Makefile.am failed" |
100 |
die "sed doc/Makefile.am failed" |
102 |
|
|
|
103 |
epatch "${FILESDIR}/1.4.26-fix-ssl-return-check-r2716.patch" |
104 |
eautoreconf |
101 |
eautoreconf |
105 |
} |
102 |
} |
106 |
|
103 |
|
Lines 111-118
Link Here
|
111 |
$(use_with bzip2) \ |
108 |
$(use_with bzip2) \ |
112 |
$(use_with fam) \ |
109 |
$(use_with fam) \ |
113 |
$(use_with gdbm) \ |
110 |
$(use_with gdbm) \ |
114 |
$(use_with lua) \ |
|
|
115 |
$(use_with ldap) \ |
111 |
$(use_with ldap) \ |
|
|
112 |
$(use_with libev) \ |
113 |
$(use_with lua) \ |
116 |
$(use_with memcache) \ |
114 |
$(use_with memcache) \ |
117 |
$(use_with mysql) \ |
115 |
$(use_with mysql) \ |
118 |
$(use_with pcre) \ |
116 |
$(use_with pcre) \ |
Lines 164-171
Link Here
|
164 |
update_config |
162 |
update_config |
165 |
|
163 |
|
166 |
# docs |
164 |
# docs |
167 |
dodoc AUTHORS README NEWS doc/*.sh |
165 |
dodoc AUTHORS README NEWS doc/scripts/*.sh |
168 |
newdoc doc/lighttpd.conf lighttpd.conf.distrib |
166 |
newdoc doc/config//lighttpd.conf lighttpd.conf.distrib |
169 |
|
167 |
|
170 |
use doc && dohtml -r doc/* |
168 |
use doc && dohtml -r doc/* |
171 |
|
169 |
|
Lines 187-212
Link Here
|
187 |
} |
185 |
} |
188 |
|
186 |
|
189 |
pkg_postinst () { |
187 |
pkg_postinst () { |
190 |
echo |
188 |
if use ipv6; then |
|
|
189 |
elog "IPv6 migration guide:" |
190 |
elog "http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config" |
191 |
fi |
191 |
if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then |
192 |
if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then |
192 |
einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi." |
193 |
einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi." |
193 |
einfo "spawn-fcgi's init script configuration is now located" |
194 |
einfo "spawn-fcgi's init script configuration is now located" |
194 |
einfo "at /etc/conf.d/spawn-fcgi." |
195 |
einfo "at /etc/conf.d/spawn-fcgi." |
195 |
echo |
|
|
196 |
fi |
196 |
fi |
197 |
|
197 |
|
198 |
if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then |
198 |
if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then |
199 |
ewarn "Gentoo has a customized configuration," |
199 |
elog "Gentoo has a customized configuration," |
200 |
ewarn "which is now located in /etc/lighttpd. Please migrate your" |
200 |
elog "which is now located in /etc/lighttpd. Please migrate your" |
201 |
ewarn "existing configuration." |
201 |
elog "existing configuration." |
202 |
ebeep 5 |
|
|
203 |
fi |
204 |
|
205 |
if use fastcgi; then |
206 |
ewarn "As of lighttpd-1.4.22, spawn-fcgi is provided by the separate" |
207 |
ewarn "www-servers/spawn-fcgi package. Please install it manually, if" |
208 |
ewarn "you use spawn-fcgi." |
209 |
ewarn "It features a new, more featurefull init script - please migrate" |
210 |
ewarn "your configuration!" |
211 |
fi |
202 |
fi |
212 |
} |
203 |
} |