diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2005-02-23 11:37:25 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2005-02-23 11:37:25 +0000 |
commit | bb0197147945a48b358395b4f2ef4c187388e1a8 (patch) | |
tree | 71c000037f98a64d30ad20320e239ff41f7e59a9 /www-servers/lighttpd/lighttpd-1.3.11.ebuild | |
parent | Marked stable on amd64, bug 82404. (diff) | |
download | historical-bb0197147945a48b358395b4f2ef4c187388e1a8.tar.gz historical-bb0197147945a48b358395b4f2ef4c187388e1a8.tar.bz2 historical-bb0197147945a48b358395b4f2ef4c187388e1a8.zip |
Version bump for bug 82792; removed old patches that I forgot to remove last time.
Package-Manager: portage-2.0.51.16
Diffstat (limited to 'www-servers/lighttpd/lighttpd-1.3.11.ebuild')
-rw-r--r-- | www-servers/lighttpd/lighttpd-1.3.11.ebuild | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/www-servers/lighttpd/lighttpd-1.3.11.ebuild b/www-servers/lighttpd/lighttpd-1.3.11.ebuild new file mode 100644 index 000000000000..ce0f559420c2 --- /dev/null +++ b/www-servers/lighttpd/lighttpd-1.3.11.ebuild @@ -0,0 +1,86 @@ +# 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.11.ebuild,v 1.1 2005/02/23 11:37:25 ka0ttic Exp $ + +inherit eutils + +DESCRIPTION="lightweight high-performance web server" +HOMEPAGE="http://www.lighttpd.net/" +SRC_URI="http://www.lighttpd.net/download/${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="mysql ssl php xattr ldap" +RDEPEND="virtual/libc + app-arch/bzip2 + >=dev-libs/libpcre-3.1 + >=sys-libs/zlib-1.1 + ldap? ( >=net-nds/openldap-2.1.26 ) + 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 + )" + +LIGHTTPD_DIR="/var/www/localhost/htdocs/" +LOG_DIR="/var/log/lighttpd/" + +pkg_setup() { + enewgroup lighttpd + enewuser lighttpd -1 /bin/false "${LIGHTTPD_DIR}" lighttpd +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-upstream.diff + epatch ${FILESDIR}/${P}-gentoo.diff + use php && epatch ${FILESDIR}/${P}-php.diff +} + +src_compile() { + local my_conf="--libdir=/usr/$(get_libdir)/${PN}" + + econf ${my_conf} \ + $(use_with mysql) \ + $(use_with ldap) \ + $(use_with xattr attr) \ + $(use_with ssl openssl) || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /etc + doins doc/lighttpd.conf || die "doins failed" + + newinitd ${FILESDIR}/${PN}-1.3.10.initd ${PN} + + if use php ; then + newinitd ${FILESDIR}/spawn-fcgi.initd spawn-fcgi + newconfd ${FILESDIR}/spawn-fcgi.confd spawn-fcgi + fi + + keepdir ${LIGHTTPD_DIR} ${LOG_DIR} || die "keepdir failed" + fowners lighttpd:lighttpd ${LOG_DIR} || die "fowners failed" + + dodoc README COPYING + cd doc + dodoc *.txt *.sh *.ps.gz + newdoc lighttpd.conf lighttpd.conf.example || die "newdoc failed" +} + +pkg_postinst () { + echo + einfo "lighttpd.conf has moved from /etc/conf.d to /etc" + if [[ -f ${ROOT}/etc/conf.d/spawn-fcgi.conf ]] ; then + einfo + einfo "spawn-fcgi is now included with lighttpd" + einfo "spawn-fcgi's init script configuration is now located" + einfo "at /etc/conf.d/spawn-fcgi." + fi + echo +} |