| 1 |
# Copyright 1999-2008 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/varnish-2.0.2.ebuild,v 1.1 2008/11/14 14:59:09 bangert Exp $
|
| 4 |
|
| 5 |
DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator."
|
| 6 |
HOMEPAGE="http://varnish.projects.linpro.no/"
|
| 7 |
SRC_URI="mirror://sourceforge/varnish/${P}.tar.gz"
|
| 8 |
|
| 9 |
LICENSE="BSD-2"
|
| 10 |
SLOT="0"
|
| 11 |
KEYWORDS="~x86"
|
| 12 |
IUSE=""
|
| 13 |
#varnish compiles stuff at run time
|
| 14 |
RDEPEND="sys-devel/gcc"
|
| 15 |
|
| 16 |
src_install() {
|
| 17 |
emake DESTDIR="${D}" install || die "emake install failed"
|
| 18 |
newinitd "${FILESDIR}"/varnishd.initd varnishd || die
|
| 19 |
newconfd "${FILESDIR}"/varnishd.confd varnishd || die
|
| 20 |
}
|
| 21 |
|
| 22 |
pkg_postinst () {
|
| 23 |
elog "No demo-/sample-configfile is included in the distribution -"
|
| 24 |
elog "please read the man-page for more info."
|
| 25 |
elog "A sample (localhost:8080 -> localhost:80) for gentoo is given in"
|
| 26 |
elog " /etc/conf.d/varnishd"
|
| 27 |
echo
|
| 28 |
}
|