summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2005-01-04 13:34:15 +0000
committerSven Wegener <swegener@gentoo.org>2005-01-04 13:34:15 +0000
commit5eb8b55a00aa22c39de70228667a932388083090 (patch)
tree4a866d3e4e719755582ea8851cbc2a24fe3f611a /www-servers
parentbug 76590 (Manifest recommit) (diff)
downloadgentoo-2-5eb8b55a00aa22c39de70228667a932388083090.tar.gz
gentoo-2-5eb8b55a00aa22c39de70228667a932388083090.tar.bz2
gentoo-2-5eb8b55a00aa22c39de70228667a932388083090.zip
Several small fixes. Correctly install init script. Use enewuser.
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/lighttpd/ChangeLog7
-rw-r--r--www-servers/lighttpd/lighttpd-1.1.8-r1.ebuild4
-rw-r--r--www-servers/lighttpd/lighttpd-1.1.8.ebuild4
-rw-r--r--www-servers/lighttpd/lighttpd-1.2.2.ebuild4
-rw-r--r--www-servers/lighttpd/lighttpd-1.3.5.ebuild59
5 files changed, 40 insertions, 38 deletions
diff --git a/www-servers/lighttpd/ChangeLog b/www-servers/lighttpd/ChangeLog
index 075a0135230e..58c018149306 100644
--- a/www-servers/lighttpd/ChangeLog
+++ b/www-servers/lighttpd/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for www-servers/lighttpd
-# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.6 2004/11/02 20:22:44 stuart Exp $
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.7 2005/01/04 13:34:15 swegener Exp $
+
+ 04 Jan 2005; Sven Wegener <swegener@gentoo.org> lighttpd-1.3.5.ebuild:
+ Several small fixes. Correctly install init script. Use enewuser.
*lighttpd-1.3.5 (02 Nov 2004)
diff --git a/www-servers/lighttpd/lighttpd-1.1.8-r1.ebuild b/www-servers/lighttpd/lighttpd-1.1.8-r1.ebuild
index 80bbeddcc44c..231954373213 100644
--- a/www-servers/lighttpd/lighttpd-1.1.8-r1.ebuild
+++ b/www-servers/lighttpd/lighttpd-1.1.8-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 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 $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.1.8-r1.ebuild,v 1.2 2005/01/04 13:34:15 swegener Exp $
inherit eutils
diff --git a/www-servers/lighttpd/lighttpd-1.1.8.ebuild b/www-servers/lighttpd/lighttpd-1.1.8.ebuild
index fcb45bec7502..23f1fdaad7a1 100644
--- a/www-servers/lighttpd/lighttpd-1.1.8.ebuild
+++ b/www-servers/lighttpd/lighttpd-1.1.8.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 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 $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.1.8.ebuild,v 1.2 2005/01/04 13:34:15 swegener Exp $
inherit eutils
diff --git a/www-servers/lighttpd/lighttpd-1.2.2.ebuild b/www-servers/lighttpd/lighttpd-1.2.2.ebuild
index 18756e04d7b8..f237d5141340 100644
--- a/www-servers/lighttpd/lighttpd-1.2.2.ebuild
+++ b/www-servers/lighttpd/lighttpd-1.2.2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 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.2 2004/09/03 15:58:51 pvdabeel Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.2.2.ebuild,v 1.3 2005/01/04 13:34:15 swegener Exp $
inherit eutils
diff --git a/www-servers/lighttpd/lighttpd-1.3.5.ebuild b/www-servers/lighttpd/lighttpd-1.3.5.ebuild
index 5f4dbf960286..70fd8b68d446 100644
--- a/www-servers/lighttpd/lighttpd-1.3.5.ebuild
+++ b/www-servers/lighttpd/lighttpd-1.3.5.ebuild
@@ -1,79 +1,78 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.3.5.ebuild,v 1.1 2004/11/02 20:22:44 stuart Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.3.5.ebuild,v 1.2 2005/01/04 13:34:15 swegener Exp $
inherit eutils confutils
-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"
+SRC_URI="http://jan.kneschke.de/projects/lighttpd/download/${P}.tar.gz"
LICENSE="QPL-1.0"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE="mysql ssl php modchat modcache modlocalizer xattr ldap"
-DEPEND="virtual/libc
+RDEPEND="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}
+ ssl? ( >=dev-libs/openssl-0.9.7 )
+ php? (
+ >=dev-php/php-cgi-4.3.0
+ net-www/spawn-fcgi
+ )"
+
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
+ enewuser lighttpd /bin/false "${LIGHTTPD_DIR}" nofiles
}
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
+ local my_conf="--libdir=/usr/$(get_libdir)/${PN}"
- my_conf="--libdir=/usr/lib/${PN}"
# extension USE flag shared?
# -----------------------------------------------------------------
enable_extension_enable mod-chat modchat 0
enable_extension_enable mod-cache modcache 0
- enable_extension_enable mod-localizer modlocalizer 0
+ enable_extension_enable mod-localizer modlocalizer 0
enable_extension_enable attr xattr 0
enable_extension_enable ldap ldap 0
- enable_extension_enable openssl ssl 0
+ enable_extension_enable openssl ssl 0
enable_extension_enable mysql mysql 0
# -----------------------------------------------------------------
# extension USE flag shared?
- econf $my_conf || die "econf failed"
+ 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}
+ make DESTDIR=${D} install || die "make install failed"
+
+ insinto /etc
+ doins doc/lighttpd.conf || die "doins failed"
+
+ newinitd ${FILESDIR}/${PN}-1.2.2.initd ${PN} || die "newinitd failed"
+
+ keepdir ${LIGHTTPD_DIR} ${LOG_DIR} || die "keepdir failed"
+ fowners lighttpd:root ${LOG_DIR} || die "fowners failed"
+
+ dodoc README COPYING doc/fastcgi.txt doc/authentification.txt || die "dodoc failed"
+ newdoc doc/lighttpd.conf lighttpd.conf.example || die "newdoc failed"
}
pkg_postinst () {