summaryrefslogtreecommitdiff
path: root/net/ldns
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-02-04 04:42:09 +0000
committerobache <obache@pkgsrc.org>2010-02-04 04:42:09 +0000
commitb3388ec15bfdd5171c13141bbff5bf4a2c1e3342 (patch)
treef28f1a64604df062101298f1d4e61ccd1134696e /net/ldns
parente247cb29f4899242a9299d0535bd056c8a669a0e (diff)
downloadpkgsrc-b3388ec15bfdd5171c13141bbff5bf4a2c1e3342.tar.gz
Remove a redundant MASTER_SITES line.
Diffstat (limited to 'net/ldns')
-rw-r--r--net/ldns/Makefile27
1 files changed, 24 insertions, 3 deletions
diff --git a/net/ldns/Makefile b/net/ldns/Makefile
index a8a504090d1..550ac0ad91a 100644
--- a/net/ldns/Makefile
+++ b/net/ldns/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2010/01/17 12:02:33 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2010/02/04 04:42:09 obache Exp $
DISTNAME= ldns-1.6.3
PKGREVISION= 1
CATEGORIES= net
-MASTER_SITES= http://www.nlnetlabs.nl/downloads/drill/
MASTER_SITES= http://www.nlnetlabs.nl/downloads/ldns/
MAINTAINER= he@NetBSD.org
@@ -16,10 +15,32 @@ PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake perl
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --enable-sha2
+#CONFIGURE_ARGS+= --enable-sha2
REPLACE_PERL= doc/doxyparse.pl
BUILDLINK_ABI_DEPENDS.openssl+= openssl>=0.9.8
.include "../../security/openssl/buildlink3.mk"
+
+PLIST_VARS+= sha2
+.if defined(USE_BUILTIN.openssl) && !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
+PLIST_VARS.sha2!= \
+ if ${PKG_ADMIN} pmatch 'openssl>=0.9.8' ${BUILTIN_PKG.openssl:Q}; then \
+ ${ECHO} "yes"; \
+ else \
+ ${ECHO} "no"; \
+ fi
+.else
+PLIST_VARS.sha2!= \
+ if ${PKG_INFO} -qe 'openssl>=0.9.8'; then \
+ ${ECHO} yes; \
+ else \
+ ${ECHO} no; \
+ fi
+.endif
+.if ${PLIST_VARS.sha2} == "yes"
+CONFIGURE_ARGS+= --enable-sha2
+.endif
+CONFIGURE_ARGS+= --with-ssl=${SSLBASE}
+
.include "../../mk/bsd.pkg.mk"