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

Contents of /net-dns/unbound/unbound-1.4.19.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (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.3: +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-2014 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.19.ebuild,v 1.3 2014/08/21 14:23:59 armin76 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 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="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~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 "${FILESDIR}"/${PN}-1.4.12-gentoo.patch
52 }
53
54 src_configure() {
55 append-ldflags -Wl,-z,noexecstack
56 econf \
57 $(use_enable debug) \
58 $(use_enable gost) \
59 $(use_enable static-libs static) \
60 $(use_with python pythonmodule) \
61 $(use_with python pyunbound) \
62 $(use_with threads pthreads) \
63 --disable-rpath \
64 --enable-ecdsa \
65 --with-ldns="${EPREFIX}"/usr \
66 --with-libevent="${EPREFIX}"/usr \
67 --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
68 --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt
69
70 # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
71 # $(use_enable debug lock-checks) \
72 # $(use_enable debug alloc-checks) \
73 # $(use_enable debug alloc-lite) \
74 # $(use_enable debug alloc-nonregional) \
75 }
76
77 src_install() {
78 emake DESTDIR="${D}" install || die "emake install failed"
79
80 # bug #299016
81 if use python ; then
82 find "${ED}" -name '_unbound.{la,a}' -delete || die
83 fi
84 if ! use static-libs ; then
85 find "${ED}" -name "*.la" -type f -delete || die
86 fi
87
88 newinitd "${FILESDIR}/unbound.initd" unbound
89 newconfd "${FILESDIR}/unbound.confd" unbound
90
91 dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
92
93 # bug #315519
94 dodoc contrib/unbound_munin_
95
96 docinto selinux
97 dodoc contrib/selinux/*
98
99 exeinto /usr/share/${PN}
100 doexe contrib/update-anchor.sh
101 }
102
103 pkg_postinst() {
104 use python && python_mod_optimize unbound.py unboundmodule.py
105 }
106
107 pkg_postrm() {
108 use python && python_mod_cleanup unbound.py unboundmodule.py
109 }

  ViewVC Help
Powered by ViewVC 1.1.20