pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/nmap



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Nov 24 14:17:58 UTC 2021

Modified Files:
        pkgsrc/net/nmap: options.mk

Log Message:
nmap: Disable liblinear option on NetBSD, per icb discussion.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/net/nmap/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/nmap/options.mk
diff -u pkgsrc/net/nmap/options.mk:1.22 pkgsrc/net/nmap/options.mk:1.23
--- pkgsrc/net/nmap/options.mk:1.22     Fri Mar 19 08:50:57 2021
+++ pkgsrc/net/nmap/options.mk  Wed Nov 24 14:17:58 2021
@@ -1,10 +1,25 @@
-# $NetBSD: options.mk,v 1.22 2021/03/19 08:50:57 sborrill Exp $
+# $NetBSD: options.mk,v 1.23 2021/11/24 14:17:58 nia Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.nmap
 
 PKG_SUPPORTED_OPTIONS= lua liblinear
 
+.include "../../mk/bsd.prefs.mk"
+
+#
+# liblinear is used for IPv6 OS detection machine learning techniques.
+#
+# if nmap is built without liblinear, it will use an internal copy
+# that does not depend on a fortran compiler, according to simonb@.
+#
+# NetBSD (as of 2021) does not include gfortran as part of GCC by
+# default, so avoid building another copy of GCC as a dependency.
+# Note that pkgsrc gcc only works on _some_ NetBSD architectures.
+#
+
+.if ${OPSYS} != "NetBSD"
 PKG_SUGGESTED_OPTIONS= liblinear
+.endif
 
 .include "../../mk/bsd.options.mk"
 
@@ -20,7 +35,6 @@ CONFIGURE_ARGS+=      --without-liblua
 .endif
 
 .if !empty(PKG_OPTIONS:Mliblinear)
-# liblinear is used for IPv6 OS detection machine learning techniques
 .include "../../math/liblinear/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-liblinear=${BUILDLINK_PREFIX.liblinear}
 .else



Home | Main Index | Thread Index | Old Index