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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Nov 9 00:03:12 2010 UTC (7 years, 10 months ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bumped. Added gost USE flag.

(Portage version: 2.1.9.22/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.4.ebuild,v 1.2 2010/04/23 08:51:39 grobian Exp $
4
5 EAPI="3"
6
7 inherit autotools eutils multilib
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 libevent python static test threads"
17
18 RDEPEND=">=dev-libs/openssl-0.9.8
19 >=net-libs/ldns-1.4[ssl]
20 libevent? ( dev-libs/libevent )"
21 # gost? ( >=dev-libs/openssl-1 )
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 enewgroup unbound
33 enewuser unbound -1 -1 /etc/unbound unbound
34 }
35
36 src_prepare() {
37 sed -i -e "s:\(withval\|thedir\)/lib:\1/$(get_libdir):" configure.ac || die
38 eautoreconf
39 }
40
41 src_configure() {
42 econf \
43 --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
44 --with-ldns="${EPREFIX}"/usr \
45 $(use_enable debug) \
46 $(use_enable debug lock-checks) \
47 $(use_enable debug alloc-checks) \
48 $(use_enable debug alloc-lite) \
49 $(use_enable debug alloc-nonregional) \
50 $(use_enable static static-exe) \
51 $(use_with libevent) \
52 $(use_with threads pthreads) \
53 $(use_with python pyunbound) \
54 $(use_with python pythonmodule) || die
55 }
56
57 src_install() {
58 emake DESTDIR="${D}" install || die "emake install failed"
59
60 # bug #299016
61 if use python ; then
62 rm "${ED}/usr/$(get_libdir)"/python*/site-packages/_unbound.*a || die
63 fi
64
65 newinitd "${FILESDIR}/unbound.initd" unbound || die "newinitd failed"
66 newconfd "${FILESDIR}/unbound.confd" unbound || die "newconfd failed"
67
68 dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES} || die "dodoc failed"
69 # bug #315519
70 dodoc contrib/unbound_munin_ || die "dodoc failed"
71
72 exeinto /usr/share/${PN}
73 doexe contrib/{update-anchor,update-itar,split-itar}.sh || die "doexe failed"
74 }

  ViewVC Help
Powered by ViewVC 1.1.20