summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-08-08 17:28:06 +0000
committerStuart Herbert <stuart@gentoo.org>2004-08-08 17:28:06 +0000
commit30bf5a3e81d32942d7f6e43e0a85fe701c57ea51 (patch)
tree1228629c7468577bb3792fd0d0bbf485a225acb5 /www-servers
parentMoved from net-www/jetty to www-servers/jetty (diff)
downloadgentoo-2-30bf5a3e81d32942d7f6e43e0a85fe701c57ea51.tar.gz
gentoo-2-30bf5a3e81d32942d7f6e43e0a85fe701c57ea51.tar.bz2
gentoo-2-30bf5a3e81d32942d7f6e43e0a85fe701c57ea51.zip
Moved from net-www/lighttpd to www-servers/lighttpd.
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/lighttpd/ChangeLog58
-rw-r--r--www-servers/lighttpd/Manifest12
-rw-r--r--www-servers/lighttpd/files/digest-lighttpd-1.1.81
-rw-r--r--www-servers/lighttpd/files/digest-lighttpd-1.1.8-r11
-rw-r--r--www-servers/lighttpd/files/digest-lighttpd-1.2.21
-rw-r--r--www-servers/lighttpd/files/lighttpd-1.1.8-gentoo.diff36
-rw-r--r--www-servers/lighttpd/files/lighttpd-1.2.2-php.diff47
-rw-r--r--www-servers/lighttpd/files/lighttpd-1.2.2.initd32
-rw-r--r--www-servers/lighttpd/files/lighttpd.initd29
-rw-r--r--www-servers/lighttpd/lighttpd-1.1.8-r1.ebuild62
-rw-r--r--www-servers/lighttpd/lighttpd-1.1.8.ebuild62
-rw-r--r--www-servers/lighttpd/lighttpd-1.2.2.ebuild73
-rw-r--r--www-servers/lighttpd/metadata.xml8
13 files changed, 422 insertions, 0 deletions
diff --git a/www-servers/lighttpd/ChangeLog b/www-servers/lighttpd/ChangeLog
new file mode 100644
index 000000000000..bb7a12b0814c
--- /dev/null
+++ b/www-servers/lighttpd/ChangeLog
@@ -0,0 +1,58 @@
+# ChangeLog for net-www/lighttpd
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.1 2004/08/08 17:28:06 stuart Exp $
+
+*lighttpd-1.1.8 (08 Aug 2004)
+
+ 08 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml,
+ +files/lighttpd-1.1.8-gentoo.diff, +files/lighttpd-1.2.2-php.diff,
+ +files/lighttpd-1.2.2.initd, +files/lighttpd.initd,
+ +lighttpd-1.1.8-r1.ebuild, +lighttpd-1.1.8.ebuild, +lighttpd-1.2.2.ebuild:
+ Moved from net-www/lighttpd to www-servers/lighttpd.
+
+ 08 Aug 2004; Tom Martin <slarti@gentoo.org> lighttpd-1.1.8-r1.ebuild,
+ lighttpd-1.1.8.ebuild:
+ Typo in DESCRIPTION: intented -> intended. Bug 59717.
+
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ lighttpd-1.1.8-r1.ebuild, lighttpd-1.1.8.ebuild, lighttpd-1.2.2.ebuild:
+ virtual/glibc -> virtual/libc
+
+*lighttpd-1.2.2 (27 Jun 2004)
+
+ 27 Jun 2004; Stuart Herbert <stuart@gentoo.org>
+ +files/lighttpd-1.2.2-php.diff, +files/lighttpd-1.2.2.initd,
+ +lighttpd-1.2.2.ebuild:
+ Version bump; php support now available; thanks to Boris Wachtmeister
+ <sirro@nurfuerspam.de>; see bug #55049
+
+ 25 Jun 2004; Aron Griffis <agriffis@gentoo.org> lighttpd-1.1.8-r1.ebuild,
+ lighttpd-1.1.8.ebuild:
+ QA - fix use invocation
+
+*lighttpd-1.1.8-r1 (29 Apr 2004)
+
+ 29 Apr 2004; Stuart Herbert <stuart@gentoo.org> lighttpd-1.1.8-r1.ebuild,
+ files/lighttpd.initd:
+ Fix for shutdown problems; see bug #46833
+
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> lighttpd-1.1.8.ebuild:
+ Add inherit eutils
+
+ 25 Apr 2004; David Holm <dholm@gentoo.org> lighttpd-1.1.8.ebuild:
+ Added to ~ppc.
+
+ 24 Apr 2004; Stuart Herbert <stuart@gentoo.org> lighttpd-1.1.8.ebuild:
+ Replaced einstall (which doesn't work properly) with good ol' make install
+
+ 23 Apr 2004; Stuart Herbert <stuart@gentoo.org> lighttpd-1.1.8.ebuild,
+ metadata.xml, files/lighttpd-1.1.8-gentoo.diff:
+ Fixes to get the server running; thanks to Boris Wachtmeister
+ <sirro@nurfuerspam.de> once again
+
+*lighttpd-1.1.8 (23 Apr 2004)
+
+ 23 Apr 2004; Stuart Herbert <stuart@gentoo.org> lighttpd-1.1.8.ebuild,
+ files/lighttpd-1.1.8-gentoo.diff, files/lighttpd.initd:
+ Initial import; thanks to Boris <sirro@nurfuerspam.de>; see bug #46833
+
diff --git a/www-servers/lighttpd/Manifest b/www-servers/lighttpd/Manifest
new file mode 100644
index 000000000000..18190b45fda4
--- /dev/null
+++ b/www-servers/lighttpd/Manifest
@@ -0,0 +1,12 @@
+MD5 53c39a9af931e4cffd8dcd5fc037df7f lighttpd-1.1.8.ebuild 1917
+MD5 39e713a434af2fa6403a3503676a667b lighttpd-1.1.8-r1.ebuild 1920
+MD5 6b80a9c4f7c9d02ce6ddd04220db2540 ChangeLog 1907
+MD5 3d182d43f7f0341a9a42f96694f04e72 metadata.xml 224
+MD5 272c2cde7967a5147d9575838ed2fb79 lighttpd-1.2.2.ebuild 2039
+MD5 32569e20d3ecdd51ac0534cc85d52354 files/lighttpd-1.2.2-php.diff 1184
+MD5 59b78c3d7f4bb89134a61bacd16f8e9e files/lighttpd-1.2.2.initd 802
+MD5 5773b97a6eeaa0a6dea3d00159b2c55b files/lighttpd.initd 642
+MD5 eb94c0fc2149e2543beb50e93058de99 files/digest-lighttpd-1.1.8 66
+MD5 0d9277bbfb98755640329afa81c8bee2 files/digest-lighttpd-1.2.2 66
+MD5 352e2fac9cb73bdae7672f977b044894 files/lighttpd-1.1.8-gentoo.diff 1301
+MD5 eb94c0fc2149e2543beb50e93058de99 files/digest-lighttpd-1.1.8-r1 66
diff --git a/www-servers/lighttpd/files/digest-lighttpd-1.1.8 b/www-servers/lighttpd/files/digest-lighttpd-1.1.8
new file mode 100644
index 000000000000..1b351f1c99d1
--- /dev/null
+++ b/www-servers/lighttpd/files/digest-lighttpd-1.1.8
@@ -0,0 +1 @@
+MD5 1f955ac35765a2630050a0cbf113d15f lighttpd-1.1.8.tar.gz 536169
diff --git a/www-servers/lighttpd/files/digest-lighttpd-1.1.8-r1 b/www-servers/lighttpd/files/digest-lighttpd-1.1.8-r1
new file mode 100644
index 000000000000..1b351f1c99d1
--- /dev/null
+++ b/www-servers/lighttpd/files/digest-lighttpd-1.1.8-r1
@@ -0,0 +1 @@
+MD5 1f955ac35765a2630050a0cbf113d15f lighttpd-1.1.8.tar.gz 536169
diff --git a/www-servers/lighttpd/files/digest-lighttpd-1.2.2 b/www-servers/lighttpd/files/digest-lighttpd-1.2.2
new file mode 100644
index 000000000000..912463f0f519
--- /dev/null
+++ b/www-servers/lighttpd/files/digest-lighttpd-1.2.2
@@ -0,0 +1 @@
+MD5 37877e1df7e6d2fea2728c3c5b10e9f5 lighttpd-1.2.2.tar.gz 558948
diff --git a/www-servers/lighttpd/files/lighttpd-1.1.8-gentoo.diff b/www-servers/lighttpd/files/lighttpd-1.1.8-gentoo.diff
new file mode 100644
index 000000000000..f75fd3ccbe20
--- /dev/null
+++ b/www-servers/lighttpd/files/lighttpd-1.1.8-gentoo.diff
@@ -0,0 +1,36 @@
+--- doc/lighttpd.conf.orig 2004-04-23 18:31:13.985795352 +0100
++++ doc/lighttpd.conf 2004-04-23 18:34:00.191528240 +0100
+@@ -25,10 +25,10 @@
+
+ ## a static document-root, for virtual-hosting take look at the
+ ## server.virtual-* options
+-server.document-root = "/www/pages/"
++server.document-root = "/var/www/localhost/htdocs/"
+
+ ## where to send error-messages to
+-server.errorlog = "/www/logs/lighttpd.error.log"
++server.errorlog = "/var/log/lighttpd/error.log"
+
+ # files to check for if .../ is requested
+ server.indexfiles = ( "index.php", "index.html",
+@@ -52,7 +52,7 @@
+ ".conf" => "text/plain" )
+
+ #### accesslog module
+-accesslog.filename = "/www/logs/access.log"
++accesslog.filename = "/var/log/lighttpd/access.log"
+
+ ## deny access the file-extensions
+ #
+@@ -81,9 +81,9 @@
+ ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
+ ## virtual-server-root + http-host + virtual-server-docroot
+ ##
+-#simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
++#simple-vhost.server-root = "/var/www/"
+ #simple-vhost.default-host = "grisu.home.kneschke.de"
+-#simple-vhost.document-root = "/pages/"
++#simple-vhost.document-root = "/htdocs/"
+
+
+ ##
diff --git a/www-servers/lighttpd/files/lighttpd-1.2.2-php.diff b/www-servers/lighttpd/files/lighttpd-1.2.2-php.diff
new file mode 100644
index 000000000000..7ace09086270
--- /dev/null
+++ b/www-servers/lighttpd/files/lighttpd-1.2.2-php.diff
@@ -0,0 +1,47 @@
+diff -u olddoc/lighttpd.1 doc/lighttpd.1
+--- olddoc/lighttpd.1 2004-06-24 10:26:54.888331272 +0200
++++ doc/lighttpd.1 2004-06-24 10:27:48.352203528 +0200
+@@ -5,7 +5,7 @@
+ lighttpd -D -f <configfile>
+ .SH DESCRIPTION
+ .SH FILES
+-/etc/lighttpd/lighttpd.conf
++/etc/lighttpd.conf
+ .SH CONFORMING TO
+ HTTP/1.0
+ HTTP/1.0
+diff -u olddoc/lighttpd.conf doc/lighttpd.conf
+--- olddoc/lighttpd.conf 2004-06-24 10:26:54.900329448 +0200
++++ doc/lighttpd.conf 2004-06-24 10:26:35.252316400 +0200
+@@ -16,7 +16,7 @@
+ "mod_access",
+ # "mod_auth",
+ # "mod_status",
+-# "mod_fastcgi",
++ "mod_fastcgi",
+ # "mod_simple_vhost",
+ # "mod_evhost",
+ # "mod_cgi",
+@@ -114,14 +114,14 @@
+
+ #### fastcgi module
+ ## read fastcgi.txt for more info
+-#fastcgi.server = ( ".php" =>
+-# ( "grisu" =>
+-# (
+-# "host" => "192.168.2.10",
+-# "port" => 1026
+-# )
+-# )
+-# )
++fastcgi.server = ( ".php" =>
++ ( "localhost" =>
++ (
++ "host" => "127.0.0.1",
++ "port" => 1026
++ )
++ )
++ )
+
+ #### CGI module
+ #cgi.assign = ( ".pl" => "/usr/bin/perl",
diff --git a/www-servers/lighttpd/files/lighttpd-1.2.2.initd b/www-servers/lighttpd/files/lighttpd-1.2.2.initd
new file mode 100644
index 000000000000..5c74484b3176
--- /dev/null
+++ b/www-servers/lighttpd/files/lighttpd-1.2.2.initd
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd-1.2.2.initd,v 1.1 2004/08/08 17:28:06 stuart Exp $
+
+LIGHTTPD_PID="/var/run/lighttpd.pid"
+LIGHTTPD_BIN="/usr/sbin/lighttpd"
+LIGHTTPD_CONF="/etc/lighttpd.conf"
+
+depend() {
+ need net
+ use mysql logger spawn-fcgi
+ after spawn-fcgi
+}
+
+start() {
+ ebegin "Starting lighttpd"
+ ${LIGHTTPD_BIN} -f ${LIGHTTPD_CONF}
+ eend ${?}
+ pidof lighttpd >${LIGHTTPD_PID}
+}
+
+stop() {
+ if [ -r ${LIGHTTPD_PID} ]; then
+ ebegin "Stopping lighttpd"
+ kill `cat ${LIGHTTPD_PID}`
+ eend $?
+ if [ -w ${LIGHTTPD_PID} ]; then rm ${LIGHTTPD_PID}; fi;
+ else
+ eerror "lighttpd: no PID-file found. no process killed!"
+ fi
+}
diff --git a/www-servers/lighttpd/files/lighttpd.initd b/www-servers/lighttpd/files/lighttpd.initd
new file mode 100644
index 000000000000..de8ee5fa5424
--- /dev/null
+++ b/www-servers/lighttpd/files/lighttpd.initd
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd.initd,v 1.1 2004/08/08 17:28:06 stuart Exp $
+
+PID_FILE="/var/run/lighttpd.pid"
+LIGHTTPD_BIN="/usr/sbin/lighttpd"
+LIGHTTPD_CONF="/etc/conf.d/lighttpd.conf"
+
+depend() {
+ need net
+ use mysql logger
+ after sshd
+}
+
+start() {
+ ebegin "Starting lighttpd"
+ ${LIGHTTPD_BIN} -u lighttpd -f ${LIGHTTPD_CONF}
+ RET=$?
+ pidof lighttpd >${PID_FILE}
+ eend ${RET}
+}
+
+stop() {
+ ebegin "Stopping lighttpd"
+ kill `cat ${PID_FILE}`
+ RET=$?
+ eend ${RET}
+}
diff --git a/www-servers/lighttpd/lighttpd-1.1.8-r1.ebuild b/www-servers/lighttpd/lighttpd-1.1.8-r1.ebuild
new file mode 100644
index 000000000000..80bbeddcc44c
--- /dev/null
+++ b/www-servers/lighttpd/lighttpd-1.1.8-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.1.8-r1.ebuild,v 1.1 2004/08/08 17:28:06 stuart Exp $
+
+inherit eutils
+
+DESCRIPTION="lighttpd is intended to be a frontend for ad-servers which have to deliver small files concurrently to many connections."
+HOMEPAGE="http://jan.kneschke.de/projects/lighttpd"
+SRC_URI="http://jan.kneschke.de/projects/lighttpd/download/${P}.tar.gz"
+LICENSE="QPL-1.0"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+IUSE="mysql ssl"
+DEPEND="virtual/libc
+ >=dev-libs/libpcre-3.1
+ >=sys-libs/zlib-1.1
+ >=sys-devel/libtool-1.4
+ mysql? ( >=dev-db/mysql-4.0.0 )
+ ssl? ( >=dev-libs/openssl-0.9.7 )"
+RDEPEND=">=sys-libs/zlib-1.1
+ >=sys-devel/libtool-1.4
+ mysql? ( >=dev-db/mysql-4.0.0 )
+ ssl? ( >=dev-libs/openssl-0.9.7 )"
+S=${WORKDIR}/${P}
+LIGHTTPD_DIR="/var/www/localhost/htdocs/"
+LOG_DIR="/var/log/lighttpd/"
+
+pkg_setup() {
+ if ! grep -q ^lighttpd: /etc/passwd ; then
+ useradd -g nofiles -s /bin/false -d ${LIGHTTPD_DIR} \
+ -c "lighttpd" lighttpd || die "problem adding user lighttpd"
+ fi
+}
+
+src_compile() {
+ epatch ${FILESDIR}/lighttpd-1.1.8-gentoo.diff
+ if use ssl; then
+ USE_SSL="--with-openssl"
+ fi
+ econf --libdir=/usr/lib/${PN} \
+ `use_with mysql` \
+ ${USE_SSL} \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dodoc README COPYING
+ newdoc doc/lighttpd.conf lighttpd.conf.example
+ dodoc doc/fastcgi.txt doc/authentification.txt
+ insinto /etc/conf.d/; doins doc/lighttpd.conf
+ exeinto /etc/init.d; newexe ${FILESDIR}/lighttpd.initd lighttpd
+ dodir ${LIGHTTPD_DIR} ${LOG_DIR}
+ chown lighttpd:root ${D}/${LOG_DIR}
+}
+
+pkg_postinst() {
+ einfo "In order to use fast-cgi for php you have to emerge dev-php/php-cgi and"
+ einfo "please read /usr/share/doc/lighttpd-1.1.8/fastcgi.txt.gz for more information"
+}
diff --git a/www-servers/lighttpd/lighttpd-1.1.8.ebuild b/www-servers/lighttpd/lighttpd-1.1.8.ebuild
new file mode 100644
index 000000000000..fcb45bec7502
--- /dev/null
+++ b/www-servers/lighttpd/lighttpd-1.1.8.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.1.8.ebuild,v 1.1 2004/08/08 17:28:06 stuart Exp $
+
+inherit eutils
+
+DESCRIPTION="lighttpd is intended to be a frontend for ad-servers which have to deliver small files concurrently to many connections."
+HOMEPAGE="http://jan.kneschke.de/projects/lighttpd"
+SRC_URI="http://jan.kneschke.de/projects/lighttpd/download/${P}.tar.gz"
+LICENSE="QPL-1.0"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+IUSE="mysql ssl"
+DEPEND="virtual/libc
+ >=dev-libs/libpcre-3.1
+ >=sys-libs/zlib-1.1
+ >=sys-devel/libtool-1.4
+ mysql? ( >=dev-db/mysql-4.0.0 )
+ ssl? ( >=dev-libs/openssl-0.9.7 )"
+RDEPEND=">=sys-libs/zlib-1.1
+ >=sys-devel/libtool-1.4
+ mysql? ( >=dev-db/mysql-4.0.0 )
+ ssl? ( >=dev-libs/openssl-0.9.7 )"
+S=${WORKDIR}/${P}
+LIGHTTPD_DIR="/var/www/localhost/htdocs/"
+LOG_DIR="/var/log/lighttpd/"
+
+pkg_setup() {
+ if ! grep -q ^lighttpd: /etc/passwd ; then
+ useradd -g nofiles -s /bin/false -d ${LIGHTTPD_DIR} \
+ -c "lighttpd" lighttpd || die "problem adding user lighttpd"
+ fi
+}
+
+src_compile() {
+ epatch ${FILESDIR}/lighttpd-1.1.8-gentoo.diff
+ if use ssl; then
+ USE_SSL="--with-openssl"
+ fi
+ econf --libdir=/usr/lib/${PN} \
+ `use_with mysql` \
+ ${USE_SSL} \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dodoc README COPYING
+ newdoc doc/lighttpd.conf lighttpd.conf.example
+ dodoc doc/fastcgi.txt doc/authentification.txt
+ insinto /etc/conf.d/; doins doc/lighttpd.conf
+ exeinto /etc/init.d; newexe ${FILESDIR}/lighttpd.initd lighttpd
+ dodir ${LIGHTTPD_DIR} ${LOG_DIR}
+ chown lighttpd:root ${D}/${LOG_DIR}
+}
+
+pkg_postinst() {
+ einfo "In order to use fast-cgi for php you have to emerge dev-php/php-cgi and"
+ einfo "please read /usr/share/doc/lighttpd-1.1.8/fastcgi.txt.gz for more information"
+}
diff --git a/www-servers/lighttpd/lighttpd-1.2.2.ebuild b/www-servers/lighttpd/lighttpd-1.2.2.ebuild
new file mode 100644
index 000000000000..500b7b7f2ac9
--- /dev/null
+++ b/www-servers/lighttpd/lighttpd-1.2.2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.2.2.ebuild,v 1.1 2004/08/08 17:28:06 stuart Exp $
+
+inherit eutils
+
+URI_ROOT="http://jan.kneschke.de/projects/lighttpd/download/"
+DESCRIPTION="lightweight high-performance web server"
+HOMEPAGE="http://jan.kneschke.de/projects/lighttpd/"
+SRC_URI="$URI_ROOT/${P}.tar.gz"
+LICENSE="QPL-1.0"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="mysql ssl php"
+DEPEND="virtual/libc
+ >=dev-libs/libpcre-3.1
+ >=sys-libs/zlib-1.1
+ >=sys-devel/libtool-1.4
+ >=dev-libs/localizer-0.3.3
+ mysql? ( >=dev-db/mysql-4.0.0 )
+ ssl? ( >=dev-libs/openssl-0.9.7 )
+ php? ( >=dev-php/php-cgi-4.3.0 net-www/spawn-fcgi )"
+RDEPEND=">=sys-libs/zlib-1.1
+ >=sys-devel/libtool-1.4
+ mysql? ( >=dev-db/mysql-4.0.0 )
+ ssl? ( >=dev-libs/openssl-0.9.7 )"
+S=${WORKDIR}/${P}
+LIGHTTPD_DIR="/var/www/localhost/htdocs/"
+LOG_DIR="/var/log/lighttpd/"
+
+pkg_setup() {
+ if ! grep -q ^lighttpd: /etc/passwd ; then
+ useradd -g nofiles -s /bin/false -d ${LIGHTTPD_DIR} \
+ -c "lighttpd" lighttpd || die "problem adding user lighttpd"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-1.1.8-gentoo.diff
+ if useq php ; then
+ epatch ${FILESDIR}/${PN}-1.2.2-php.diff
+ fi
+}
+
+src_compile() {
+ local my_conf
+
+ my_conf="--libdir=/usr/lib/${PN}"
+ my_conf="$my_conf `use_with ssl openssl`"
+ my_conf="$my_conf `use_with ldap`"
+ my_conf="$my_conf `use_with mysql`"
+ my_conf="$my_conf --enable-mod-localizer"
+ econf $my_conf || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dodoc README COPYING
+ newdoc doc/lighttpd.conf lighttpd.conf.example
+ dodoc doc/fastcgi.txt doc/authentification.txt
+ insinto /etc; doins doc/lighttpd.conf
+ exeinto /etc/init.d; newexe ${FILESDIR}/${PN}-${PV}.initd ${PN}
+ dodir ${LIGHTTPD_DIR} ${LOG_DIR}
+ chown lighttpd:root ${D}/${LOG_DIR}
+}
+
+pkg_postinst () {
+ einfo "lighttpd.conf has moved from /etc/conf.d to /etc"
+}
diff --git a/www-servers/lighttpd/metadata.xml b/www-servers/lighttpd/metadata.xml
new file mode 100644
index 000000000000..0d59c319c3eb
--- /dev/null
+++ b/www-servers/lighttpd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>webapps</herd>
+<maintainer>
+ <email>web-apps@gentoo.org</email>
+</maintainer>
+</pkgmetadata>