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

Contents of /www-servers/varnish/varnish-2.1.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Dec 14 20:06:42 2011 UTC (2 years, 11 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.1.4.ebuild,v 1.1 2010/10/21 21:43:30 bangert Exp $
4
5 EAPI="3"
6
7 inherit eutils autotools
8
9 DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator."
10 HOMEPAGE="http://www.varnish-cache.org/"
11 SRC_URI="http://www.varnish-software.com/sites/default/files/${P}.tar.gz"
12 LICENSE="BSD-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="doc"
16 #varnish compiles stuff at run time
17 RDEPEND="sys-devel/gcc"
18 DEPEND="dev-python/docutils"
19
20 RESTRICT="test" #315725
21
22 src_prepare() {
23 epatch "${FILESDIR}"/${PN}-2.1.4-virtual-ncsa.patch
24 epatch "${FILESDIR}"/${PN}-2.1.4-find-rst2man.py.patch
25 eautoreconf
26 }
27
28 src_install() {
29 emake DESTDIR="${D}" install || die "emake install failed"
30 newinitd "${FILESDIR}"/varnishd.initd varnishd || die
31 newconfd "${FILESDIR}"/varnishd.confd varnishd || die
32
33 insinto /etc/logrotate.d
34 newins "${FILESDIR}/varnishd.logrotate" varnishd
35
36 dodir /var/log/varnish
37
38 use doc && dohtml -r "doc/sphinx/=build/html/"
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 ewarn "Varnish 2.1.x introduces VCL changes wrt. 2.0.x. See also"
48 ewarn "http://www.varnish-cache.org/docs/2.1/reference/vcl.html"
49 }

  ViewVC Help
Powered by ViewVC 1.1.20