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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jan 19 14:09:55 2015 UTC (3 years, 5 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old.

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

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.5.0.ebuild,v 1.2 2014/11/29 12:47:20 jer Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 )
7
8 inherit eutils flag-o-matic multilib-minimal python-single-r1 systemd 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="~amd64 ~hppa ~x86"
17 IUSE="debug dnstap gost python selinux static-libs test threads"
18 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
19
20 # Note: expat is needed by executable only but the Makefile is custom
21 # and doesn't make it possible to easily install the library without
22 # the executables. MULTILIB_USEDEP may be dropped once build system
23 # is fixed.
24
25 CDEPEND=">=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
26 >=dev-libs/libevent-2.0.21[${MULTILIB_USEDEP}]
27 >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}]
28 dnstap? (
29 dev-libs/fstrm[${MULTILIB_USEDEP}]
30 >=dev-libs/protobuf-c-1.0.2-r1[${MULTILIB_USEDEP}]
31 )
32 python? ( ${PYTHON_DEPS} )"
33
34 DEPEND="${CDEPEND}
35 python? ( dev-lang/swig )
36 test? (
37 net-dns/ldns-utils[examples]
38 dev-util/splint
39 app-text/wdiff
40 )"
41
42 RDEPEND="${CDEPEND}
43 selinux? ( sec-policy/selinux-bind )"
44
45 # bug #347415
46 RDEPEND="${RDEPEND}
47 net-dns/dnssec-root"
48
49 pkg_setup() {
50 enewgroup unbound
51 enewuser unbound -1 -1 /etc/unbound unbound
52
53 use python && python-single-r1_pkg_setup
54 }
55
56 src_prepare() {
57 # To avoid below error messages, set 'trust-anchor-file' to same value in
58 # 'auto-trust-anchor-file'.
59 # [23109:0] error: Could not open autotrust file for writing,
60 # /etc/dnssec/root-anchors.txt: Permission denied
61 epatch "${FILESDIR}"/${PN}-1.4.12-gentoo.patch
62
63 # required for the python part
64 multilib_copy_sources
65 }
66
67 src_configure() {
68 [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack
69 multilib-minimal_src_configure
70 }
71
72 multilib_src_configure() {
73 econf \
74 $(use_enable debug) \
75 $(use_enable gost) \
76 $(use_enable dnstap) \
77 $(use_enable static-libs static) \
78 $(multilib_native_use_with python pythonmodule) \
79 $(multilib_native_use_with python pyunbound) \
80 $(use_with threads pthreads) \
81 --disable-rpath \
82 --enable-ecdsa \
83 --with-libevent="${EPREFIX}"/usr \
84 --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
85 --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
86 --with-ssl="${EPREFIX}"/usr \
87 --with-libexpat="${EPREFIX}"/usr
88
89 # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
90 # $(use_enable debug lock-checks) \
91 # $(use_enable debug alloc-checks) \
92 # $(use_enable debug alloc-lite) \
93 # $(use_enable debug alloc-nonregional) \
94 }
95
96 multilib_src_install_all() {
97 prune_libtool_files --modules
98 use python && python_optimize
99
100 newinitd "${FILESDIR}"/unbound.initd unbound
101 newconfd "${FILESDIR}"/unbound.confd unbound
102
103 systemd_dounit "${FILESDIR}"/unbound.service
104 systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service"
105 systemd_dounit "${FILESDIR}"/unbound-anchor.service
106
107 dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
108
109 # bug #315519
110 dodoc contrib/unbound_munin_
111
112 docinto selinux
113 dodoc contrib/selinux/*
114
115 exeinto /usr/share/${PN}
116 doexe contrib/update-anchor.sh
117 }

  ViewVC Help
Powered by ViewVC 1.1.20