| 1 |
# Copyright 1999-2007 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/varnish-1.0.3.ebuild,v 1.2 2007/02/22 16:10:56 bangert Exp $
|
| 4 |
|
| 5 |
inherit eutils
|
| 6 |
DESCRIPTION="Varnish is an HTTP accelerator"
|
| 7 |
HOMEPAGE="http://varnish.linpro.no/"
|
| 8 |
SRC_URI="mirror://sourceforge/varnish/${P}.tar.gz"
|
| 9 |
|
| 10 |
LICENSE="BSD-2"
|
| 11 |
SLOT="0"
|
| 12 |
KEYWORDS="~x86"
|
| 13 |
IUSE=""
|
| 14 |
|
| 15 |
src_compile() {
|
| 16 |
econf || die "econf failed"
|
| 17 |
emake || die "emake failed"
|
| 18 |
}
|
| 19 |
|
| 20 |
src_install() {
|
| 21 |
emake DESTDIR="${D}" install || die "emake install failed"
|
| 22 |
newinitd ${FILESDIR}/varnishd.initd varnishd || die
|
| 23 |
newconfd ${FILESDIR}/varnishd.confd varnishd || die
|
| 24 |
}
|
| 25 |
|
| 26 |
pkg_postinst () {
|
| 27 |
elog "No demo-/sample-configfile is included in the distribution -"
|
| 28 |
elog "please read the man-page for more info."
|
| 29 |
elog "A sample (localhost:8080 -> localhost:80) for gentoo is given in"
|
| 30 |
elog " /etc/conf.d/varnishd"
|
| 31 |
echo
|
| 32 |
}
|
| 33 |
|