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

Contents of /net-dns/unbound/unbound-1.4.7.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, 4 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.7.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
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 pkg_setup() {
32 python_set_active_version 2
33 enewgroup unbound
34 enewuser unbound -1 -1 /etc/unbound unbound
35 }
36
37 src_configure() {
38 econf \
39 --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
40 --with-ldns="${EPREFIX}"/usr \
41 --with-libevent="${EPREFIX}"/usr \
42 $(use_enable debug) \
43 $(use_enable debug lock-checks) \
44 $(use_enable debug alloc-checks) \
45 $(use_enable debug alloc-lite) \
46 $(use_enable debug alloc-nonregional) \
47 $(use_enable gost) \
48 $(use_enable static static-exe) \
49 $(use_with threads pthreads) \
50 $(use_with python pyunbound) \
51 $(use_with python pythonmodule) || die
52 }
53
54 src_install() {
55 emake DESTDIR="${D}" install || die "emake install failed"
56
57 # bug #299016
58 if use python ; then
59 rm "${ED}/usr/$(get_libdir)"/python*/site-packages/_unbound.*a || die
60 fi
61
62 newinitd "${FILESDIR}/unbound.initd" unbound || die "newinitd failed"
63 newconfd "${FILESDIR}/unbound.confd" unbound || die "newconfd failed"
64
65 dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES} || die "dodoc failed"
66 # bug #315519
67 dodoc contrib/unbound_munin_ || die "dodoc failed"
68
69 exeinto /usr/share/${PN}
70 doexe contrib/{update-anchor,update-itar,split-itar}.sh || die "doexe failed"
71 }

  ViewVC Help
Powered by ViewVC 1.1.20