pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/nmap nmap: Make liblinear an option, on by default.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8615b8bce017
branches:  trunk
changeset: 448983:8615b8bce017
user:      sborrill <sborrill%pkgsrc.org@localhost>
date:      Fri Mar 19 08:50:57 2021 +0000

description:
nmap: Make liblinear an option, on by default.

liblinear is used for 'machine learning IPv6 OS detection'. It depends on
a number of packages, some of which may not build on some OS versions.

diffstat:

 net/nmap/Makefile   |   4 +---
 net/nmap/options.mk |  14 ++++++++++++--
 2 files changed, 13 insertions(+), 5 deletions(-)

diffs (53 lines):

diff -r f98576aa676d -r 8615b8bce017 net/nmap/Makefile
--- a/net/nmap/Makefile Fri Mar 19 08:17:28 2021 +0000
+++ b/net/nmap/Makefile Fri Mar 19 08:50:57 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.144 2020/03/13 08:55:37 tnn Exp $
+# $NetBSD: Makefile,v 1.145 2021/03/19 08:50:57 sborrill Exp $
 
 PKGREVISION= 2
 .include "Makefile.common"
@@ -12,7 +12,6 @@
 USE_LIBTOOL=           yes
 USE_TOOLS+=            gmake
 GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --with-liblinear=${BUILDLINK_PREFIX.liblinear}
 CONFIGURE_ARGS+=       --with-libpcap=${BUILDLINK_PREFIX.libpcap}
 CONFIGURE_ARGS+=       --with-libpcre=${BUILDLINK_PREFIX.pcre}
 CONFIGURE_ARGS+=       --with-openssl=${BUILDLINK_PREFIX.openssl}
@@ -64,7 +63,6 @@
        ${RM} -f ${DESTDIR}${PREFIX}/bin/uninstall_*
 
 .include "../../devel/pcre/buildlink3.mk"
-.include "../../math/liblinear/buildlink3.mk"
 .include "../../net/libpcap/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../security/libssh2/buildlink3.mk"
diff -r f98576aa676d -r 8615b8bce017 net/nmap/options.mk
--- a/net/nmap/options.mk       Fri Mar 19 08:17:28 2021 +0000
+++ b/net/nmap/options.mk       Fri Mar 19 08:50:57 2021 +0000
@@ -1,8 +1,10 @@
-# $NetBSD: options.mk,v 1.21 2020/03/13 08:55:37 tnn Exp $
+# $NetBSD: options.mk,v 1.22 2021/03/19 08:50:57 sborrill Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.nmap
 
-PKG_SUPPORTED_OPTIONS= lua
+PKG_SUPPORTED_OPTIONS= lua liblinear
+
+PKG_SUGGESTED_OPTIONS= liblinear
 
 .include "../../mk/bsd.options.mk"
 
@@ -16,3 +18,11 @@
 .else
 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
+CONFIGURE_ARGS+=       --without-liblinear
+.endif



Home | Main Index | Thread Index | Old Index