diff options
author | Stuart Herbert <stuart@gentoo.org> | 2004-04-23 17:30:26 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2004-04-23 17:30:26 +0000 |
commit | 93464cb6a9bc9e9a9db5a4a310256665c42005fb (patch) | |
tree | 0f342fcbdfa8544970180c295ad8795f1c690436 /net-www/lighttpd | |
parent | Fix for bug #46436 (Manifest recommit) (diff) | |
download | gentoo-2-93464cb6a9bc9e9a9db5a4a310256665c42005fb.tar.gz gentoo-2-93464cb6a9bc9e9a9db5a4a310256665c42005fb.tar.bz2 gentoo-2-93464cb6a9bc9e9a9db5a4a310256665c42005fb.zip |
Initial import
Diffstat (limited to 'net-www/lighttpd')
-rw-r--r-- | net-www/lighttpd/ChangeLog | 10 | ||||
-rw-r--r-- | net-www/lighttpd/Manifest | 4 | ||||
-rw-r--r-- | net-www/lighttpd/files/digest-lighttpd-1.1.8 | 1 | ||||
-rw-r--r-- | net-www/lighttpd/files/lighttpd-1.1.8-gentoo.diff | 36 | ||||
-rw-r--r-- | net-www/lighttpd/files/lighttpd.initd | 29 | ||||
-rw-r--r-- | net-www/lighttpd/lighttpd-1.1.8.ebuild | 50 |
6 files changed, 130 insertions, 0 deletions
diff --git a/net-www/lighttpd/ChangeLog b/net-www/lighttpd/ChangeLog new file mode 100644 index 000000000000..8d2db894cc60 --- /dev/null +++ b/net-www/lighttpd/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-www/lighttpd +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/lighttpd/ChangeLog,v 1.1 2004/04/23 17:30:26 stuart Exp $ + +*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/net-www/lighttpd/Manifest b/net-www/lighttpd/Manifest new file mode 100644 index 000000000000..772017835a95 --- /dev/null +++ b/net-www/lighttpd/Manifest @@ -0,0 +1,4 @@ +MD5 585fb9ccb58ffff4ad8adda6c6b87dfa lighttpd-1.1.8.ebuild 1436 +MD5 eb94c0fc2149e2543beb50e93058de99 files/digest-lighttpd-1.1.8 66 +MD5 1c07ea1036c540aa1db5fc0c9aa507c7 files/lighttpd-1.1.8-gentoo.diff 1303 +MD5 69fcc46206e1d5bb30c8a324e0ef536f files/lighttpd.initd 538 diff --git a/net-www/lighttpd/files/digest-lighttpd-1.1.8 b/net-www/lighttpd/files/digest-lighttpd-1.1.8 new file mode 100644 index 000000000000..1b351f1c99d1 --- /dev/null +++ b/net-www/lighttpd/files/digest-lighttpd-1.1.8 @@ -0,0 +1 @@ +MD5 1f955ac35765a2630050a0cbf113d15f lighttpd-1.1.8.tar.gz 536169 diff --git a/net-www/lighttpd/files/lighttpd-1.1.8-gentoo.diff b/net-www/lighttpd/files/lighttpd-1.1.8-gentoo.diff new file mode 100644 index 000000000000..5277018e7f81 --- /dev/null +++ b/net-www/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/logs/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/logs/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/net-www/lighttpd/files/lighttpd.initd b/net-www/lighttpd/files/lighttpd.initd new file mode 100644 index 000000000000..a4234907e060 --- /dev/null +++ b/net-www/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/net-www/lighttpd/files/lighttpd.initd,v 1.1 2004/04/23 17:30:26 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" + RET=$? + kill `cat ${PID_FILE}` + eend ${RET} +} diff --git a/net-www/lighttpd/lighttpd-1.1.8.ebuild b/net-www/lighttpd/lighttpd-1.1.8.ebuild new file mode 100644 index 000000000000..6d670c8816bc --- /dev/null +++ b/net-www/lighttpd/lighttpd-1.1.8.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/lighttpd/lighttpd-1.1.8.ebuild,v 1.1 2004/04/23 17:30:26 stuart Exp $ + +DESCRIPTION="lighttpd is intented 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" +IUSE="mysql ssl" +DEPEND="virtual/glibc + >=dev-libs/libpcre-3.1 + >=sys-libs/zlib-1.1 + >=sys-devel/libtool-1.4" +RDEPEND=">=sys-libs/zlib-1.1 + >=sys-devel/libtool-1.4" +S=${WORKDIR}/${P} +LIGHTTPD_DIR="/home/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 \ + `use_with mysql` \ + ${USE_SSL} \ + || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + einstall || 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} ${LIGHTTPD_DIR}/logs + chown lighttpd:root ${D}/${LIGHTTPD_DIR} ${D}/${LIGHTTPD_DIR}/logs +} |