/[gentoo-x86]/www-servers/varnish/varnish-2.0.4-r1.ebuild
Gentoo

Contents of /www-servers/varnish/varnish-2.0.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Aug 30 06:28:07 2009 UTC (5 years ago) by hollow
Branch: MAIN
Changes since 1.1: +5 -1 lines
make HTTP_HDR_MAX_VAL configurable in case broken webapps set more than 32 headers; only start varnishncsa logging if desired
(Portage version: 2.2_rc33/cvs/Linux i686)

1 bangert 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 hollow 1.2 # $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/varnish-2.0.4-r1.ebuild,v 1.1 2009/07/12 12:04:06 bangert Exp $
4 bangert 1.1
5     EAPI="2"
6    
7     inherit autotools
8    
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     LICENSE="BSD-2"
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86"
16     IUSE=""
17     #varnish compiles stuff at run time
18     RDEPEND="sys-devel/gcc"
19    
20 hollow 1.2 HTTP_HDR_MAX_VAL=${HTTP_HDR_MAX_VAL:-32}
21    
22 bangert 1.1 src_prepare() {
23     epatch "${FILESDIR}"/${P}-link-order.patch
24     epatch "${FILESDIR}"/${P}-virtual-ncsa.patch
25 hollow 1.2 sed -e "s/#define HTTP_HDR_MAX_VAL .*/#define HTTP_HDR_MAX_VAL ${HTTP_HDR_MAX_VAL}/" \
26     -i bin/varnishd/cache.h
27 bangert 1.1 eautoreconf
28     }
29    
30     src_install() {
31     emake DESTDIR="${D}" install || die "emake install failed"
32     newinitd "${FILESDIR}"/varnishd.initd varnishd || die
33     newconfd "${FILESDIR}"/varnishd.confd varnishd || die
34    
35     insinto /etc/logrotate.d
36     newins "${FILESDIR}/varnishd.logrotate" varnishd
37    
38     dodir /var/log/varnish
39     }
40    
41     pkg_postinst () {
42     elog "No demo-/sample-configfile is included in the distribution -"
43     elog "please read the man-page for more info."
44     elog "A sample (localhost:8080 -> localhost:80) for gentoo is given in"
45     elog " /etc/conf.d/varnishd"
46     echo
47     }

  ViewVC Help
Powered by ViewVC 1.1.20