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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Mar 14 15:49:37 2013 UTC (17 months, 2 weeks ago) by blueness
Branch: MAIN
Remove bundled jemalloc and fix automagic dependency, bug #461638

(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/varnish-3.0.3.ebuild,v 1.2 2012/11/22 20:54:53 blueness Exp $
4
5 EAPI="5"
6
7 inherit autotools-utils eutils
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://repo.varnish-cache.org/source/${P}.tar.gz"
12
13 LICENSE="BSD-2 GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~mips ~x86"
16 IUSE="doc jemalloc libedit static-libs +tools"
17
18 CDEPEND="
19 dev-libs/libpcre
20 jemalloc? ( dev-libs/jemalloc )
21 libedit? ( dev-libs/libedit )
22 tools? ( sys-libs/ncurses )"
23
24 #varnish compiles stuff at run time
25 RDEPEND="
26 ${CDEPEND}
27 sys-devel/gcc"
28
29 DEPEND="
30 ${CDEPEND}
31 dev-python/docutils
32 virtual/pkgconfig"
33
34 RESTRICT="test" #315725
35
36 DOCS=( README doc/changes.rst )
37
38 PATCHES=(
39 "${FILESDIR}"/${PN}-3.0.3-automagic.patch
40 "${FILESDIR}"/${PN}-3.0.3-pthread-uclibc.patch
41 )
42
43 AUTOTOOLS_AUTORECONF="yes"
44
45 src_prepare() {
46 # Remove bundled libjemalloc. We also fix
47 # automagic dep in our patches, bug #461638
48 rm -rf lib/libjemalloc
49
50 autotools-utils_src_prepare
51 }
52
53 src_configure() {
54 local myeconfargs=(
55 $(use_with jemalloc)
56 $(use_with libedit)
57 $(use_with tools)
58 )
59 autotools-utils_src_configure
60 }
61
62 src_install() {
63 autotools-utils_src_install
64
65 newinitd "${FILESDIR}"/varnishd.initd varnishd
66 newconfd "${FILESDIR}"/varnishd.confd varnishd
67
68 insinto /etc/logrotate.d
69 newins "${FILESDIR}/varnishd.logrotate" varnishd
70
71 dodir /var/log/varnish
72
73 use doc && dohtml -r "doc/sphinx/=build/html/"
74 }
75
76 pkg_postinst () {
77 elog "No demo-/sample-configfile is included in the distribution -"
78 elog "please read the man-page for more info."
79 elog "A sample (localhost:8080 -> localhost:80) for gentoo is given in"
80 elog " /etc/conf.d/varnishd"
81 }

  ViewVC Help
Powered by ViewVC 1.1.20