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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed May 25 15:41:15 2011 UTC (7 years, 3 months ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bumped. Removed *.la files.

(Portage version: 2.1.9.49/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.6.ebuild,v 1.2 2010/11/15 16:13:16 matsuu Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2"
7 inherit eutils multilib 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 KEYWORDS="~amd64 ~x86 ~x64-macos"
16 #IUSE="debug gost python static test threads"
17 IUSE="debug python static test threads"
18
19 RDEPEND="dev-libs/libevent
20 >=dev-libs/openssl-0.9.8
21 >=net-libs/ldns-1.6.5[ssl]"
22 # gost? ( >=dev-libs/openssl-1 )
23
24 DEPEND="${RDEPEND}
25 python? ( dev-lang/swig )
26 test? (
27 net-dns/ldns-utils[examples]
28 dev-util/splint
29 app-text/wdiff
30 )"
31
32 pkg_setup() {
33 python_set_active_version 2
34 enewgroup unbound
35 enewuser unbound -1 -1 /etc/unbound unbound
36 }
37
38 src_configure() {
39 econf \
40 --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
41 --with-ldns="${EPREFIX}"/usr \
42 --with-libevent="${EPREFIX}"/usr \
43 $(use_enable debug) \
44 $(use_enable debug lock-checks) \
45 $(use_enable debug alloc-checks) \
46 $(use_enable debug alloc-lite) \
47 $(use_enable debug alloc-nonregional) \
48 $(use_enable static static-exe) \
49 $(use_with threads pthreads) \
50 $(use_with python pyunbound) \
51 $(use_with python pythonmodule) || die
52 # $(use_enable gost) \
53 }
54
55 src_install() {
56 emake DESTDIR="${D}" install || die "emake install failed"
57
58 # bug #299016
59 if use python ; then
60 rm "${ED}/usr/$(get_libdir)"/python*/site-packages/_unbound.*a || die
61 fi
62
63 newinitd "${FILESDIR}/unbound.initd" unbound || die "newinitd failed"
64 newconfd "${FILESDIR}/unbound.confd" unbound || die "newconfd failed"
65
66 dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES} || die "dodoc failed"
67 # bug #315519
68 dodoc contrib/unbound_munin_ || die "dodoc failed"
69
70 exeinto /usr/share/${PN}
71 doexe contrib/{update-anchor,update-itar,split-itar}.sh || die "doexe failed"
72 }

  ViewVC Help
Powered by ViewVC 1.1.20