/[gentoo-x86]/net-dns/unbound/unbound-1.4.17-r1.ebuild
Gentoo

Contents of /net-dns/unbound/unbound-1.4.17-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Sep 27 00:15:37 2014 UTC (3 years, 9 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key 4F064CA3)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/unbound-1.4.17-r1.ebuild,v 1.2 2012/11/07 03:02:01 jer Exp $
4
5 EAPI="4"
6 PYTHON_DEPEND="python? 2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython"
9
10 inherit autotools eutils flag-o-matic python user
11
12 DESCRIPTION="A validating, recursive and caching DNS resolver"
13 HOMEPAGE="http://unbound.net/"
14 SRC_URI="http://unbound.net/downloads/${P}.tar.gz"
15
16 LICENSE="BSD GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~hppa ~x86 ~x64-macos"
19 IUSE="debug gost python selinux static-libs test threads"
20
21 RDEPEND="dev-libs/expat
22 dev-libs/libevent
23 >=dev-libs/openssl-0.9.8
24 >=net-libs/ldns-1.6.13[ecdsa,ssl,gost?]
25 selinux? ( sec-policy/selinux-bind )"
26
27 DEPEND="${RDEPEND}
28 python? ( dev-lang/swig )
29 test? (
30 net-dns/ldns-utils[examples]
31 dev-util/splint
32 app-text/wdiff
33 )"
34
35 # bug #347415
36 RDEPEND="${RDEPEND}
37 net-dns/dnssec-root"
38
39 pkg_setup() {
40 enewgroup unbound
41 enewuser unbound -1 -1 /etc/unbound unbound
42
43 use python && python_pkg_setup
44 }
45
46 src_prepare() {
47 # To avoid below error messages, set 'trust-anchor-file' to same value in
48 # 'auto-trust-anchor-file'.
49 # [23109:0] error: Could not open autotrust file for writing,
50 # /etc/dnssec/root-anchors.txt: Permission denied
51 epatch \
52 "${FILESDIR}"/${PN}-1.4.12-gentoo.patch \
53 "${FILESDIR}"/${PN}-1.4.17-gentoo.patch
54 eautoreconf
55 }
56
57 src_configure() {
58 append-ldflags -Wl,-z,noexecstack
59 econf \
60 --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
61 --with-ldns="${EPREFIX}"/usr \
62 --with-libevent="${EPREFIX}"/usr \
63 --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
64 $(use_enable debug) \
65 $(use_enable gost) \
66 $(use_enable static-libs static) \
67 $(use_with threads pthreads) \
68 $(use_with python pyunbound) \
69 $(use_with python pythonmodule) \
70 --enable-ecdsa \
71 --disable-rpath
72
73 # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
74 # $(use_enable debug lock-checks) \
75 # $(use_enable debug alloc-checks) \
76 # $(use_enable debug alloc-lite) \
77 # $(use_enable debug alloc-nonregional) \
78 }
79
80 src_install() {
81 emake DESTDIR="${D}" install || die "emake install failed"
82
83 # bug #299016
84 if use python ; then
85 find "${ED}" -name '_unbound.{la,a}' -delete || die
86 fi
87 if ! use static-libs ; then
88 find "${ED}" -name "*.la" -type f -delete || die
89 fi
90
91 newinitd "${FILESDIR}/unbound.initd" unbound
92 newconfd "${FILESDIR}/unbound.confd" unbound
93
94 dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
95
96 # bug #315519
97 dodoc contrib/unbound_munin_
98
99 docinto selinux
100 dodoc contrib/selinux/*
101
102 exeinto /usr/share/${PN}
103 doexe contrib/update-anchor.sh
104 }
105
106 pkg_postinst() {
107 use python && python_mod_optimize unbound.py unboundmodule.py
108 }
109
110 pkg_postrm() {
111 use python && python_mod_cleanup unbound.py unboundmodule.py
112 }

  ViewVC Help
Powered by ViewVC 1.1.20