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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Mon Jan 30 15:58:00 2012 UTC (6 years, 9 months ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bumped. The ebuild is submitted by TANABE Ken-ichi.

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 matsuu 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 matsuu 1.4 # $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/unbound-1.4.10.ebuild,v 1.3 2011/05/31 13:31:03 phajdan.jr Exp $
4 matsuu 1.1
5     EAPI="3"
6     PYTHON_DEPEND="python? 2"
7     inherit eutils python
8    
9     DESCRIPTION="A validating, recursive and caching DNS resolver"
10     HOMEPAGE="http://unbound.net/"
11     SRC_URI="http://unbound.net/downloads/${P}.tar.gz"
12    
13     LICENSE="BSD"
14     SLOT="0"
15 phajdan.jr 1.3 KEYWORDS="amd64 x86 ~x64-macos"
16 matsuu 1.1 IUSE="debug gost python static-libs test threads"
17    
18     RDEPEND="dev-libs/expat
19     dev-libs/libevent
20     >=dev-libs/openssl-0.9.8
21     >=net-libs/ldns-1.6.5[ssl,gost?]"
22    
23     DEPEND="${RDEPEND}
24     python? ( dev-lang/swig )
25     test? (
26     net-dns/ldns-utils[examples]
27     dev-util/splint
28     app-text/wdiff
29     )"
30    
31     # bug #347415
32     RDEPEND="${RDEPEND}
33     net-dns/dnssec-root"
34    
35     pkg_setup() {
36     python_set_active_version 2
37     enewgroup unbound
38     enewuser unbound -1 -1 /etc/unbound unbound
39     }
40    
41     src_configure() {
42     econf \
43     --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
44     --with-ldns="${EPREFIX}"/usr \
45     --with-libevent="${EPREFIX}"/usr \
46     --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
47     $(use_enable debug) \
48     $(use_enable gost) \
49     $(use_enable static-libs static) \
50     $(use_with threads pthreads) \
51     $(use_with python pyunbound) \
52     $(use_with python pythonmodule) \
53     --disable-rpath || die
54    
55     # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
56     # $(use_enable debug lock-checks) \
57     # $(use_enable debug alloc-checks) \
58     # $(use_enable debug alloc-lite) \
59     # $(use_enable debug alloc-nonregional) \
60     }
61    
62     src_install() {
63     emake DESTDIR="${D}" install || die "emake install failed"
64    
65     # bug #299016
66     if use python ; then
67     find "${ED}$(python_get_sitedir)" "(" -name "*.a" -o -name "*.la" ")" -type f -delete || die
68     fi
69     if ! use static-libs ; then
70     find "${ED}" -name "*.la" -type f -delete || die
71     fi
72    
73     newinitd "${FILESDIR}/unbound.initd" unbound || die "newinitd failed"
74     newconfd "${FILESDIR}/unbound.confd" unbound || die "newconfd failed"
75    
76     dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES} || die "dodoc failed"
77    
78     # bug #315519
79     #exeinto /usr/libexec/munin/plugins
80     #doexe contrib/unbound_munin_ || die "doexe failed"
81     dodoc contrib/unbound_munin_ || die "dodoc failed"
82    
83     docinto selinux
84     dodoc contrib/selinux/* || die "dodoc failed"
85    
86     exeinto /usr/share/${PN}
87     doexe contrib/update-anchor.sh || die "doexe failed"
88     }

  ViewVC Help
Powered by ViewVC 1.1.20