/[gentoo-x86]/net-dns/pdns-recursor/pdns-recursor-3.7.1.ebuild
Gentoo

Contents of /net-dns/pdns-recursor/pdns-recursor-3.7.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Feb 12 18:14:32 2015 UTC (4 years, 2 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Version bump.

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

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dns/pdns-recursor/pdns-recursor-3.6.2.ebuild,v 1.1 2014/12/09 20:01:31 swegener Exp $
4
5 EAPI="4"
6
7 inherit toolchain-funcs flag-o-matic eutils
8
9 DESCRIPTION="The PowerDNS Recursor"
10 HOMEPAGE="http://www.powerdns.com/"
11 SRC_URI="http://downloads.powerdns.com/releases/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="lua"
17
18 DEPEND="lua? ( >=dev-lang/lua-5.1 )"
19 RDEPEND="${DEPEND}
20 !<net-dns/pdns-2.9.20-r1"
21 DEPEND="${DEPEND}
22 >=dev-libs/boost-1.33.1"
23
24 pkg_setup() {
25 filter-flags -ftree-vectorize
26 }
27
28 src_configure() {
29 CC="$(tc-getCC)" \
30 CXX="$(tc-getCXX)" \
31 OPTFLAGS="" \
32 LUA_LIBS_CONFIG="-llua" \
33 LUA_CPPFLAGS_CONFIG="" \
34 LUA="$(use lua && echo 1)" \
35 ./configure
36 }
37
38 src_compile() {
39 emake \
40 LOCALSTATEDIR=/var/lib/powerdns \
41 CC="$(tc-getCC)" \
42 CXX="$(tc-getCXX)" \
43 OPTFLAGS="" \
44 LUA_LIBS_CONFIG="-llua" \
45 LUA_CPPFLAGS_CONFIG="" \
46 LUA="$(use lua && echo 1)"
47 }
48
49 src_install() {
50 dosbin pdns_recursor rec_control
51 doman pdns_recursor.1 rec_control.1
52
53 insinto /etc/powerdns
54 doins "${FILESDIR}"/recursor.conf
55
56 doinitd "${FILESDIR}"/precursor
57
58 # Pretty ugly, uh?
59 dodir /var/lib/powerdns/var/lib
60 dosym ../.. /var/lib/powerdns/var/lib/powerdns
61 }

  ViewVC Help
Powered by ViewVC 1.1.20