--- lighttpd-1.4.26-r1.ebuild 2010-05-13 19:18:03.000000000 +0300 +++ lighttpd-1.4.28.ebuild 2010-11-13 00:54:42.300013497 +0200 @@ -12,8 +12,8 @@ LICENSE="BSD" SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~sparc-fbsd ~x86-fbsd" -IUSE="bzip2 doc fam fastcgi gdbm ipv6 ldap lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr" +KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~sh ~x86 ~sparc-fbsd ~x86-fbsd" +IUSE="bzip2 doc fam fastcgi gdbm ipv6 ldap libev lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr" RDEPEND=" >=sys-libs/zlib-1.1 @@ -21,11 +21,12 @@ fam? ( virtual/fam ) gdbm? ( sys-libs/gdbm ) ldap? ( >=net-nds/openldap-2.1.26 ) + libev? ( dev-libs/libev ) lua? ( >=dev-lang/lua-5.1 ) memcache? ( dev-libs/libmemcache ) mysql? ( >=virtual/mysql-4.0 ) pcre? ( >=dev-libs/libpcre-3.1 ) - php? ( virtual/httpd-php ) + php? ( dev-lang/php[cgi] ) rrdtool? ( net-analyzer/rrdtool ) ssl? ( >=dev-libs/openssl-0.9.7 ) webdav? ( @@ -54,6 +55,10 @@ # enable stat() caching use fam && \ dosed 's|#\(.*stat-cache.*$\)|\1|' ${config} + + # automatically listen on IPv6 if built with USE=ipv6. Bug #234987 + use ipv6 && \ + dosed 's|# server.use-ipv6|server.use-ipv6|' ${config} } # remove non-essential stuff (for USE=minimal) @@ -86,23 +91,20 @@ ewarn "Otherwise you lose support for some core options such" ewarn "as conditionals and modules such as mod_re{write,direct}" ewarn "and mod_ssi." - ebeep 5 fi - use php && require_php_with_use cgi - enewgroup lighttpd enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd } -src_prepare() { +#src_prepare() { # dev-python/docutils installs rst2html.py not rst2html - sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \ - die "sed doc/Makefile.am failed" + #sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \ + # die "sed doc/Makefile.am failed" - epatch "${FILESDIR}/1.4.26-fix-ssl-return-check-r2716.patch" - eautoreconf -} + #epatch "${FILESDIR}/1.4.26-fix-ssl-return-check-r2716.patch" + #eautoreconf +#} src_configure() { econf --libdir=/usr/$(get_libdir)/${PN} \ @@ -111,8 +113,9 @@ $(use_with bzip2) \ $(use_with fam) \ $(use_with gdbm) \ - $(use_with lua) \ $(use_with ldap) \ + $(use_with libev) \ + $(use_with lua) \ $(use_with memcache) \ $(use_with mysql) \ $(use_with pcre) \ @@ -164,8 +167,8 @@ update_config # docs - dodoc AUTHORS README NEWS doc/*.sh - newdoc doc/lighttpd.conf lighttpd.conf.distrib + dodoc AUTHORS README NEWS doc/scripts/*.sh + newdoc doc/config//lighttpd.conf lighttpd.conf.distrib use doc && dohtml -r doc/* @@ -187,26 +190,19 @@ } pkg_postinst () { - echo + if use ipv6; then + elog "IPv6 migration guide:" + elog "http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config" + fi if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi." einfo "spawn-fcgi's init script configuration is now located" einfo "at /etc/conf.d/spawn-fcgi." - echo fi if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then - ewarn "Gentoo has a customized configuration," - ewarn "which is now located in /etc/lighttpd. Please migrate your" - ewarn "existing configuration." - ebeep 5 - fi - - if use fastcgi; then - ewarn "As of lighttpd-1.4.22, spawn-fcgi is provided by the separate" - ewarn "www-servers/spawn-fcgi package. Please install it manually, if" - ewarn "you use spawn-fcgi." - ewarn "It features a new, more featurefull init script - please migrate" - ewarn "your configuration!" + elog "Gentoo has a customized configuration," + elog "which is now located in /etc/lighttpd. Please migrate your" + elog "existing configuration." fi }