summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Perier <mrpouet@gentoo.org>2009-08-20 13:40:05 +0000
committerRomain Perier <mrpouet@gentoo.org>2009-08-20 13:40:05 +0000
commitaacc9de212b9ca5737c9239d05b4f74b97dc188e (patch)
treea7ca33213de10a8851a5f4b44ea97f7330b2e206 /net-dns
parentnet-im/ekg2-remote: Update live ebuild to support SKIPCHECKS introduced by up... (diff)
downloadsunrise-aacc9de212b9ca5737c9239d05b4f74b97dc188e.tar.gz
sunrise-aacc9de212b9ca5737c9239d05b4f74b97dc188e.tar.bz2
sunrise-aacc9de212b9ca5737c9239d05b4f74b97dc188e.zip
net-dns/ldns-utils: Add examples USE flag
svn path=/sunrise/; revision=9078
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/ldns-utils/Manifest2
-rw-r--r--net-dns/ldns-utils/ldns-utils-1.6.1.ebuild25
2 files changed, 17 insertions, 10 deletions
diff --git a/net-dns/ldns-utils/Manifest b/net-dns/ldns-utils/Manifest
index 5576eb8fa..0b16f6ea0 100644
--- a/net-dns/ldns-utils/Manifest
+++ b/net-dns/ldns-utils/Manifest
@@ -1,4 +1,4 @@
DIST ldns-1.6.1.tar.gz 830714 RMD160 c477c76308b56bd18920ea0deeac286857c93e22 SHA1 625ad56970ebf91ae91af2fbb92b048164717df1 SHA256 c30a4791dbfb0dc31c58e24a25c594f534cdef24013b1945b6713aedd17fe100
-EBUILD ldns-utils-1.6.1.ebuild 1162 RMD160 9af599e583335d0cc38c988865244fc22eb07a09 SHA1 5f3d70d92668057c754291881c5a70df7283226a SHA256 bbf8dd0277def9aed318bdae47ac31498602e44f0567ac9e1b4ec14734a90d69
+EBUILD ldns-utils-1.6.1.ebuild 1276 RMD160 98a81d6ae593d7b4b4bc10690751f4d58c7db747 SHA1 852d513105cf2a288262a21d396eed5fded37789 SHA256 dd0a6e99a17eb597ecdb674a2836353b488d9cd9a996e46e1a548be1935d92cf
MISC ChangeLog 1296 RMD160 5227a19cadb3602b09c06e569ef78eed5eca7dee SHA1 01aec0d3888bd7db9ed18622b9ed94447a66a7af SHA256 18d23e732c518663c2fea96258a220431b0c59903aaf625177978ffe43d82e5d
MISC metadata.xml 252 RMD160 f3d9b7ddbf87a3c8c4961893d7cf12bb42e46513 SHA1 43a32dbbafc20d555b881f731605d60d0cb0e1f4 SHA256 1592924ba2d4ecdcdbcc5c277cd0537e12c7f210dfc3ef9a323f9283d507fb04
diff --git a/net-dns/ldns-utils/ldns-utils-1.6.1.ebuild b/net-dns/ldns-utils/ldns-utils-1.6.1.ebuild
index b4b176f84..bf7f3958d 100644
--- a/net-dns/ldns-utils/ldns-utils-1.6.1.ebuild
+++ b/net-dns/ldns-utils/ldns-utils-1.6.1.ebuild
@@ -2,22 +2,24 @@
# Distributed under the terms of the GNU General Public License v2
# $Header$
-EAPI=2
+EAPI="2"
+
+MY_P=${PN/-utils}-${PV}
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"
+SRC_URI="http://www.nlnetlabs.nl/downloads/ldns/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="sha2 ssl"
+IUSE="examples sha2 ssl"
DEPEND=">=net-libs/ldns-${PV}[sha2?,ssl?]
net-libs/libpcap"
RDEPEND=${DEPEND}
-S=${WORKDIR}/ldns-${PV}
+S=${WORKDIR}/${MY_P}
pkg_setup() {
if use sha2; then
@@ -32,18 +34,23 @@ src_configure() {
cd "${S}"/drill
econf $(use_with ssl)
- cd "${S}"/examples
- econf $(use_enable sha2) $(use_with ssl)
+ if use examples; then
+ cd "${S}"/examples
+ econf $(use_enable sha2) $(use_with ssl)
+ fi
}
src_compile() {
emake -C drill || die "emake for drill failed"
- emake -C examples || die "emake for examples failed"
+ if use examples; then
+ emake -C examples || die "emake for examples failed"
+ fi
}
src_install() {
emake -C drill DESTDIR="${D}" install || die "emake install for drill failed"
- emake -C examples DESTDIR="${D}" install || die "emake install for examples failed"
-
+ if use examples; then
+ emake -C examples DESTDIR="${D}" install || die "emake install for examples failed"
+ fi
dodoc Changelog README || die "Adding documentation failed"
}