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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Mar 12 12:46:45 2010 UTC (8 years, 6 months ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bumped, bug #309117. Fixed enbug, bug #299016. Removed old versions.
(Portage version: 2.1.8.2/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.0.ebuild,v 1.1 2009/11/26 15:55:56 matsuu Exp $
4
5 EAPI="2"
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"
16 IUSE="debug libevent python static test threads"
17
18 RDEPEND=">=dev-libs/openssl-0.9.8
19 >=net-libs/ldns-1.4
20 libevent? ( dev-libs/libevent )"
21 DEPEND="${RDEPEND}
22 python? ( dev-lang/swig )
23 test? (
24 net-dns/ldns-utils[examples]
25 dev-util/splint
26 )"
27
28 pkg_setup() {
29 enewgroup unbound
30 enewuser unbound -1 -1 /etc/unbound unbound
31 }
32
33 src_prepare() {
34 sed -i -e "s:\(withval\|thedir\)/lib:\1/$(get_libdir):" configure.ac || die
35 eautoreconf
36 }
37
38 src_configure() {
39 econf \
40 --with-pidfile=/var/run/unbound.pid \
41 --with-ldns=/usr \
42 $(use_enable debug) \
43 $(use_enable debug lock-checks) \
44 $(use_enable debug alloc-checks) \
45 $(use_enable static static-exe) \
46 $(use_with libevent) \
47 $(use_with threads pthreads) \
48 $(use_with python pyunbound) \
49 $(use_with python pythonmodule) || die
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install || die "emake install failed"
54 newinitd "${FILESDIR}/unbound.initd" unbound || die "newinitd failed"
55 newconfd "${FILESDIR}/unbound.confd" unbound || die "newconfd failed"
56
57 dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES} || die "dodoc failed"
58
59 exeinto /usr/share/${PN}
60 doexe contrib/{update-anchor,update-itar,split-itar}.sh || die "doexe failed"
61 }

  ViewVC Help
Powered by ViewVC 1.1.20