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

Contents of /net-dns/pdns-recursor/pdns-recursor-3.5.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jul 5 10:51:36 2014 UTC (4 years, 9 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #514946

(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2014 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.5.3-r1.ebuild,v 1.2 2014/07/04 19:32:18 ago 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_prepare() {
29 epatch "${FILESDIR}"/${PN}-3.1.7.2-error-message.patch \
30 "${FILESDIR}"/${P}-fdlimit.patch
31
32 sed -i -e s:/var/run/:/var/lib/powerdns: "${S}"/config.h || die
33 }
34
35 src_configure() {
36 true
37 }
38
39 src_compile() {
40 emake \
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