summaryrefslogtreecommitdiff
path: root/net/socat
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2007-10-09 20:21:29 +0000
committeradrianp <adrianp@pkgsrc.org>2007-10-09 20:21:29 +0000
commit6fef0c870d0ca4eb001f8e0a170356d5be334ea9 (patch)
tree2d0ed2db07f2895971380cae8bc62fb84213fef8 /net/socat
parent3b13b2e6306b3d0619942f69d5ad5b3dc209fb23 (diff)
downloadpkgsrc-6fef0c870d0ca4eb001f8e0a170356d5be334ea9.tar.gz
Add options.mk for explicitly disabling inet6
Patch from Yakovetsky Vladimir in PR# 37088
Diffstat (limited to 'net/socat')
-rw-r--r--net/socat/Makefile4
-rw-r--r--net/socat/options.mk12
2 files changed, 15 insertions, 1 deletions
diff --git a/net/socat/Makefile b/net/socat/Makefile
index e73d2d558f9..f702ef6d027 100644
--- a/net/socat/Makefile
+++ b/net/socat/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2007/04/09 09:47:48 adrianp Exp $
+# $NetBSD: Makefile,v 1.12 2007/10/09 20:21:29 adrianp Exp $
DISTNAME= socat-1.6.0.0
CATEGORIES= net
@@ -20,6 +20,8 @@ SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= doc/socat.1
SUBST_SED.paths= -e 's,/usr/,${PREFIX}/,g'
+.include "options.mk"
+
.include "../../security/openssl/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/socat/options.mk b/net/socat/options.mk
new file mode 100644
index 00000000000..3475a401994
--- /dev/null
+++ b/net/socat/options.mk
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2007/10/09 20:21:29 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.socat
+PKG_SUPPORTED_OPTIONS+= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ip6
+.else
+CONFIGURE_ARGS+= --disable-ip6
+.endif