summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2018-07-29 23:59:26 +0000
committerschmonz <schmonz@pkgsrc.org>2018-07-29 23:59:26 +0000
commitcd7749cb3fa9435ed4e9543ce6cbd8c4e522f9e9 (patch)
tree2e9bb736f1345c6c9c36907099cb6d58dd84d6b0 /net
parent63341db316c80663598bde22bd794d2591643adb (diff)
downloadpkgsrc-cd7749cb3fa9435ed4e9543ce6cbd8c4e522f9e9.tar.gz
Add 'inet6' option to control dependency on ucspi-tcp{6,}, even
though net/djbdns itself still doesn't support the 'inet6' option. Bump version.
Diffstat (limited to 'net')
-rw-r--r--net/djbdns-run/Makefile7
-rw-r--r--net/djbdns-run/options.mk12
2 files changed, 16 insertions, 3 deletions
diff --git a/net/djbdns-run/Makefile b/net/djbdns-run/Makefile
index f1df47e35de..fd88424b8cb 100644
--- a/net/djbdns-run/Makefile
+++ b/net/djbdns-run/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.29 2018/07/25 16:32:34 schmonz Exp $
+# $NetBSD: Makefile,v 1.30 2018/07/29 23:59:26 schmonz Exp $
#
-DISTNAME= djbdns-run-20180725
+DISTNAME= djbdns-run-20180730
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
@@ -13,7 +13,6 @@ LICENSE= 2-clause-bsd
DEPENDS_DJBDNS= djbdns>=1.05nb5:../../net/djbdns
DEPENDS+= ${DEPENDS_DJBDNS}
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
-DEPENDS+= ucspi-tcp6-[0-9]*:../../net/ucspi-tcp6
WRKSRC= ${WRKDIR}
NO_BUILD= yes
@@ -58,6 +57,8 @@ MAKEVARS+= PKG_SYSCONFDIR.djbdns-run
. endif
.endif
+.include "options.mk"
+
do-install:
${INSTALL_DATA} ${FILESDIR}/README.pkgsrc ${DESTDIR}${PREFIX}/share/doc/djbdns-run
diff --git a/net/djbdns-run/options.mk b/net/djbdns-run/options.mk
new file mode 100644
index 00000000000..858a1a09ab0
--- /dev/null
+++ b/net/djbdns-run/options.mk
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2018/07/29 23:59:26 schmonz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.djbdns-run
+PKG_SUPPORTED_OPTIONS+= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+DEPENDS+= ucspi-tcp6-[0-9]*:../../net/ucspi-tcp6
+.else
+DEPENDS+= ucspi-tcp-[0-9]*:../../net/ucspi-tcp
+.endif