summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-12-24 11:37:38 +0000
committernia <nia@pkgsrc.org>2021-12-24 11:37:38 +0000
commit58283523c9815d01263defcd35b34df4a2729498 (patch)
treef47c2aa7308430e5905d108d2425ba891a3dbcd7 /pkgtools
parentebb3cd754cf3dd60c057c36070d7ffe0e31862cb (diff)
downloadpkgsrc-58283523c9815d01263defcd35b34df4a2729498.tar.gz
pkg_install: only enable IPv6 on operating systems that support it
needed for UnixWare, reported by Boyd Lynn Gerber
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/options.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/options.mk b/pkgtools/pkg_install/options.mk
index 00657934b20..ac4effc0f75 100644
--- a/pkgtools/pkg_install/options.mk
+++ b/pkgtools/pkg_install/options.mk
@@ -1,8 +1,7 @@
-# $NetBSD: options.mk,v 1.5 2017/07/27 18:54:44 tnn Exp $
+# $NetBSD: options.mk,v 1.6 2021/12/24 11:37:38 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libfetch
PKG_SUPPORTED_OPTIONS= inet6 openssl
-PKG_SUGGESTED_OPTIONS= inet6
.include "../../security/openssl/builtin.mk"
@@ -10,6 +9,12 @@ PKG_SUGGESTED_OPTIONS= inet6
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)