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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Sep 27 00:15:37 2014 UTC (3 years, 7 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +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.20.ebuild,v 1.7 2014/08/21 14:23:59 armin76 Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_6,2_7} )
7
8 inherit eutils flag-o-matic python-single-r1 user
9
10 DESCRIPTION="A validating, recursive and caching DNS resolver"
11 HOMEPAGE="http://unbound.net/"
12 SRC_URI="http://unbound.net/downloads/${P}.tar.gz"
13
14 LICENSE="BSD GPL-2"
15 SLOT="0"
16 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x64-macos"
17 IUSE="debug gost python selinux static-libs test threads"
18 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
19
20 RDEPEND="dev-libs/expat
21 dev-libs/libevent
22 >=dev-libs/openssl-0.9.8
23 >=net-libs/ldns-1.6.13[ecdsa,ssl,gost?]
24 selinux? ( sec-policy/selinux-bind )"
25
26 DEPEND="${RDEPEND}
27 python? (
28 ${PYTHON_DEPS}
29 dev-lang/swig
30 )
31 test? (
32 net-dns/ldns-utils[examples]
33 dev-util/splint
34 app-text/wdiff
35 )"
36
37 # bug #347415
38 RDEPEND="${RDEPEND}
39 net-dns/dnssec-root"
40
41 pkg_setup() {
42 enewgroup unbound
43 enewuser unbound -1 -1 /etc/unbound unbound
44
45 use python && python-single-r1_pkg_setup
46 }
47
48 src_prepare() {
49 # To avoid below error messages, set 'trust-anchor-file' to same value in
50 # 'auto-trust-anchor-file'.
51 # [23109:0] error: Could not open autotrust file for writing,
52 # /etc/dnssec/root-anchors.txt: Permission denied
53 epatch "${FILESDIR}"/${PN}-1.4.12-gentoo.patch
54 }
55
56 src_configure() {
57 append-ldflags -Wl,-z,noexecstack
58 econf \
59 $(use_enable debug) \
60 $(use_enable gost) \
61 $(use_enable static-libs static) \
62 $(use_with python pythonmodule) \
63 $(use_with python pyunbound) \
64 $(use_with threads pthreads) \
65 --disable-rpath \
66 --enable-ecdsa \
67 --with-ldns="${EPREFIX}"/usr \
68 --with-libevent="${EPREFIX}"/usr \
69 --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
70 --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt
71
72 # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
73 # $(use_enable debug lock-checks) \
74 # $(use_enable debug alloc-checks) \
75 # $(use_enable debug alloc-lite) \
76 # $(use_enable debug alloc-nonregional) \
77 }
78
79 src_install() {
80 emake DESTDIR="${D}" install
81
82 # bug #299016
83 if use python ; then
84 find "${ED}" -name '_unbound.{la,a}' -delete || die
85 python_optimize
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 }

  ViewVC Help
Powered by ViewVC 1.1.20