| 1 |
xarthisius |
1.6 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
bangert |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
blueness |
1.8 |
# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/varnish-2.0.4-r1.ebuild,v 1.7 2012/07/11 23:27:45 blueness Exp $
|
| 4 |
bangert |
1.1 |
|
| 5 |
|
|
EAPI="2"
|
| 6 |
|
|
|
| 7 |
xarthisius |
1.6 |
inherit autotools eutils
|
| 8 |
bangert |
1.1 |
|
| 9 |
|
|
DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator."
|
| 10 |
|
|
HOMEPAGE="http://varnish.projects.linpro.no/"
|
| 11 |
|
|
SRC_URI="mirror://sourceforge/varnish/${P}.tar.gz"
|
| 12 |
|
|
|
| 13 |
blueness |
1.7 |
LICENSE="BSD-2 GPL-2"
|
| 14 |
bangert |
1.1 |
SLOT="0"
|
| 15 |
hollow |
1.4 |
KEYWORDS="amd64 x86"
|
| 16 |
bangert |
1.1 |
IUSE=""
|
| 17 |
|
|
#varnish compiles stuff at run time
|
| 18 |
|
|
RDEPEND="sys-devel/gcc"
|
| 19 |
|
|
|
| 20 |
bangert |
1.5 |
RESTRICT="test" #315725
|
| 21 |
hollow |
1.2 |
HTTP_HDR_MAX_VAL=${HTTP_HDR_MAX_VAL:-32}
|
| 22 |
|
|
|
| 23 |
bangert |
1.1 |
src_prepare() {
|
| 24 |
|
|
epatch "${FILESDIR}"/${P}-link-order.patch
|
| 25 |
|
|
epatch "${FILESDIR}"/${P}-virtual-ncsa.patch
|
| 26 |
hollow |
1.2 |
sed -e "s/#define HTTP_HDR_MAX_VAL .*/#define HTTP_HDR_MAX_VAL ${HTTP_HDR_MAX_VAL}/" \
|
| 27 |
|
|
-i bin/varnishd/cache.h
|
| 28 |
bangert |
1.1 |
eautoreconf
|
| 29 |
|
|
}
|
| 30 |
|
|
|
| 31 |
|
|
src_install() {
|
| 32 |
|
|
emake DESTDIR="${D}" install || die "emake install failed"
|
| 33 |
|
|
newinitd "${FILESDIR}"/varnishd.initd varnishd || die
|
| 34 |
|
|
newconfd "${FILESDIR}"/varnishd.confd varnishd || die
|
| 35 |
|
|
|
| 36 |
|
|
insinto /etc/logrotate.d
|
| 37 |
|
|
newins "${FILESDIR}/varnishd.logrotate" varnishd
|
| 38 |
|
|
|
| 39 |
|
|
dodir /var/log/varnish
|
| 40 |
|
|
}
|
| 41 |
|
|
|
| 42 |
|
|
pkg_postinst () {
|
| 43 |
|
|
elog "No demo-/sample-configfile is included in the distribution -"
|
| 44 |
|
|
elog "please read the man-page for more info."
|
| 45 |
|
|
elog "A sample (localhost:8080 -> localhost:80) for gentoo is given in"
|
| 46 |
|
|
elog " /etc/conf.d/varnishd"
|
| 47 |
|
|
echo
|
| 48 |
|
|
}
|