blob: bb6a3fbc41ccdabb652bde405449c64dad2516a2 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
DESCRIPTION="ldns is a library with the aim to simplify DNS programing in C"
HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
SRC_URI="http://www.nlnetlabs.nl/downloads/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="drill examples utils"
DEPEND=">=dev-libs/openssl-0.9.7
utils? ( net-libs/libpcap )"
src_compile() {
einfo "Buildig libldns"
econf
emake || die "libldns compilation failed"
if use drill; then
einfo "Building drill"
cd drill
econf
emake || die "drill compilation failed"
cd ..
fi
if use utils; then
einfo "Building example utilities"
cd examples
econf
emake || die "example utilities compilation failed"
cd ..
fi
}
src_install() {
emake DESTDIR="${D}" install || die "libldns installation failed"
if use drill; then
cd drill
emake DESTDIR="${D}" install || die "drill installation failed"
cd ..
fi
if use utils; then
cd examples
emake DESTDIR="${D}" install || die "example utilities installation failed"
cd ..
fi
dodoc Changelog README || die "Adding documentation failed"
if use examples; then
docinto examples
dodoc examples/* || die "Adding examples to documentation failed"
fi
}
pkg_postinst() {
if use utils; then
ewarn "You enabled the "utils" USE flag, which installs the example utilities."
ewarn "Most of them are quite useful, but not all of them are production-ready."
fi
}
|