pkgsrc-Users archive

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

net/mtr: patch introducing inet6 option



Hello,

the configure script of net/mtr allows to use

  --disable-ipv6

but the pkgsrc version does not offer "inet6" (or "-inet6") as an
option.

Attached patch adds the "inet6" option.

Regards
Matthias Ferdinand
--- options.mk.orig	2013-11-01 05:37:49.000000000 +0100
+++ options.mk	2014-11-19 01:08:04.000000000 +0100
@@ -1,8 +1,8 @@
 # $NetBSD: options.mk,v 1.4 2013/10/31 00:38:20 wiz Exp $
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.mtr
-PKG_SUPPORTED_OPTIONS=	gtk glib
-PKG_SUGGESTED_OPTIONS=	glib
+PKG_SUPPORTED_OPTIONS=	gtk glib inet6
+PKG_SUGGESTED_OPTIONS=	glib inet6
 
 .include "../../mk/bsd.options.mk"
 
@@ -17,3 +17,9 @@
 .else
 CONFIGURE_ARGS+=	--without-glib
 .endif
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+=        --enable-ipv6
+.else
+CONFIGURE_ARGS+=        --disable-ipv6
+.endif


Home | Main Index | Thread Index | Old Index