# 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.5 2004/09/28 02:01:03 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.6 2004/11/02 20:22:44 stuart Exp $
+
+*lighttpd-1.3.5 (02 Nov 2004)
+
+ 02 Nov 2004; Stuart Herbert <stuart@gentoo.org> +lighttpd-1.3.5.ebuild:
+ Version bump; stable on x86
28 Sep 2004; Sven Wegener <swegener@gentoo.org>
files/lighttpd-1.2.2.initd, files/lighttpd.initd:
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+MD5 4d6b3a498dfc3fd781ad937ace09ebe8 ChangeLog 2844
MD5 3e1d889652f2bbbe1a7213102f9e27ac lighttpd-1.1.8-r1.ebuild 1924
MD5 5667b4c4ad06685e3896ed5938557680 lighttpd-1.1.8.ebuild 1921
MD5 fae1d9e209a9d8a9179bcc689184910f lighttpd-1.2.2.ebuild 2046
MD5 4defd726d2b03decc5b7ff21b0aac1a3 metadata.xml 225
-MD5 71c7511a014e534c5e5d66e6c37bcf47 ChangeLog 2710
+MD5 5a0f22442b0f8a6d1cf333d662209293 lighttpd-1.3.5.ebuild 2502
MD5 eb94c0fc2149e2543beb50e93058de99 files/digest-lighttpd-1.1.8 66
MD5 eb94c0fc2149e2543beb50e93058de99 files/digest-lighttpd-1.1.8-r1 66
MD5 0d9277bbfb98755640329afa81c8bee2 files/digest-lighttpd-1.2.2 66
MD5 32569e20d3ecdd51ac0534cc85d52354 files/lighttpd-1.2.2-php.diff 1184
MD5 dcfa5883c3433b49204b6b4de25a9a3c files/lighttpd-1.2.2.initd 800
MD5 0b20460d5762811ccb8312c2666107e6 files/lighttpd.initd 635
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFBWMXvI1lqEGTUzyQRAuZEAJ4sVeI65Xi9dkN10oQGhamzSSDfqQCfcVIV
-jYNG4OytU56He7vvu/RaC18=
-=oV27
------END PGP SIGNATURE-----
+MD5 0cf0d92da4da90a9fc4f1b9a58b4eb1e files/digest-lighttpd-1.3.5 66
--- /dev/null
+# 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.3.5.ebuild,v 1.1 2004/11/02 20:22:44 stuart 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"
+LICENSE="QPL-1.0"
+SLOT="0"
+KEYWORDS="x86 ~ppc"
+IUSE="mysql ssl php modchat modcache modlocalizer xattr ldap"
+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}"
+ # 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 attr xattr 0
+ enable_extension_enable ldap ldap 0
+ enable_extension_enable openssl ssl 0
+ enable_extension_enable mysql mysql 0
+ # -----------------------------------------------------------------
+ # extension USE flag shared?
+
+ 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"
+}