summaryrefslogtreecommitdiff
blob: e899678df199570128aace084a388f8fffe5db89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$

DESCRIPTION="Set of utilities to simplify various dns(sec) tasks."
HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
SRC_URI="http://www.nlnetlabs.nl/downloads/ldns/ldns-${PV}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="dev-libs/openssl
	>=net-libs/ldns-${PV}
	net-libs/libpcap"
RDEPEND=${DEPEND}

S=${WORKDIR}/ldns-${PV}

DIRS="drill examples"

src_compile() {
	for dir in ${DIRS}; do
		einfo "Building in ${dir}"
		cd "${dir}"
			econf
			emake || die "emake in ""${dir}"" failed"
		cd ..
	done
}

src_install() {
	for dir in ${DIRS}; do
		cd "${dir}"
		emake DESTDIR="${D}" install || die "emake install in ""${dir}"" failed"
		cd ..
	done

	dodoc Changelog README || die "Adding documentation failed"
}