pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/libfetch libfetch: Only enable IPv6 on supported s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2cd749f0941c
branches:  trunk
changeset: 771755:2cd749f0941c
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Dec 26 10:24:22 2021 +0000

description:
libfetch: Only enable IPv6 on supported systems. Needed on UnixWare.

Adapted from Boyd Lynn Gerber.

diffstat:

 net/libfetch/options.mk |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 31b5829c7183 -r 2cd749f0941c net/libfetch/options.mk
--- a/net/libfetch/options.mk   Sun Dec 26 10:19:13 2021 +0000
+++ b/net/libfetch/options.mk   Sun Dec 26 10:24:22 2021 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: options.mk,v 1.4 2014/06/09 23:42:57 obache Exp $
+# $NetBSD: options.mk,v 1.5 2021/12/26 10:24:22 nia Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.libfetch
 PKG_SUPPORTED_OPTIONS= inet6 openssl
-PKG_SUGGESTED_OPTIONS= inet6
 
 CHECK_BUILTIN.openssl:=        yes
 .include "../../security/openssl/builtin.mk"
@@ -12,6 +11,12 @@
 PKG_SUGGESTED_OPTIONS+=        openssl
 .endif
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${IPV6_READY:tl} == "yes"
+PKG_SUGGESTED_OPTIONS+=        inet6
+.endif
+
 .include "../../mk/bsd.options.mk"
 
 .if !empty(PKG_OPTIONS:Minet6)



Home | Main Index | Thread Index | Old Index