pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/socat Add options.mk for explicitly disabling inet6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0818f7dd83cf
branches:  trunk
changeset: 533965:0818f7dd83cf
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Tue Oct 09 20:21:29 2007 +0000

description:
Add options.mk for explicitly disabling inet6
Patch from Yakovetsky Vladimir in PR# 37088

diffstat:

 net/socat/Makefile   |   4 +++-
 net/socat/options.mk |  12 ++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r e26eec848a5c -r 0818f7dd83cf net/socat/Makefile
--- a/net/socat/Makefile        Tue Oct 09 20:18:31 2007 +0000
+++ b/net/socat/Makefile        Tue Oct 09 20:21:29 2007 +0000
@@ -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_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 -r e26eec848a5c -r 0818f7dd83cf net/socat/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socat/options.mk      Tue Oct 09 20:21:29 2007 +0000
@@ -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



Home | Main Index | Thread Index | Old Index