summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hendrikx (whyscream) <tom@whyscream.net>2008-09-02 18:24:13 +0000
committerTom Hendrikx (whyscream) <tom@whyscream.net>2008-09-02 18:24:13 +0000
commitc1fb093e3927ba7adaa74f9d5625c425b9259e8f (patch)
treecc5245ee1f56c51a4cc784e9e590f93057fbfd01 /net-libs/ldns/ldns-1.3.0.ebuild
parentNew USE flags for new ebuild dev-libs/ldns (diff)
downloadsunrise-c1fb093e3927ba7adaa74f9d5625c425b9259e8f.tar.gz
sunrise-c1fb093e3927ba7adaa74f9d5625c425b9259e8f.tar.bz2
sunrise-c1fb093e3927ba7adaa74f9d5625c425b9259e8f.zip
net-libs/ldns: New ebuild for net-libs/ldns, see bug #192728
svn path=/sunrise/; revision=6954
Diffstat (limited to 'net-libs/ldns/ldns-1.3.0.ebuild')
-rw-r--r--net-libs/ldns/ldns-1.3.0.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/net-libs/ldns/ldns-1.3.0.ebuild b/net-libs/ldns/ldns-1.3.0.ebuild
new file mode 100644
index 000000000..bb6a3fbc4
--- /dev/null
+++ b/net-libs/ldns/ldns-1.3.0.ebuild
@@ -0,0 +1,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
+}