Signed-off-by: Uwe Kleine-König <u.kleine-koe...@pengutronix.de>
---
 rules/nmap.in   | 3 +++
 rules/nmap.make | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/rules/nmap.in b/rules/nmap.in
index 0082c5edf6be..19de078ac51e 100644
--- a/rules/nmap.in
+++ b/rules/nmap.in
@@ -17,6 +17,9 @@ if NMAP
 config NMAP_OPENSSL
        bool "openssl support"
 
+config NMAP_NPING
+       bool "build and install nping"
+
 config NMAP_SERVICES
        bool "Install nmap-services"
        default y
diff --git a/rules/nmap.make b/rules/nmap.make
index 8d0868971619..1130fde4128a 100644
--- a/rules/nmap.make
+++ b/rules/nmap.make
@@ -37,7 +37,7 @@ NMAP_CONF_OPT := \
        --without-localdirs \
        --without-ndiff \
        --without-zenmap \
-       --without-nping \
+       --$(call ptx/wwo, PTXCONF_NMAP_NPING)-nping \
        --with-openssl=$(call ptx/ifdef,PTXCONF_NMAP_OPENSSL,$(SYSROOT),no) \
        --with-libpcap \
        --with-libpcre \
@@ -66,6 +66,10 @@ $(STATEDIR)/nmap.targetinstall:
 
        @$(call install_copy, nmap, 0, 0, 0755, -, /usr/bin/nmap)
 
+ifdef PTXCONF_NMAP_NPING
+       @$(call install_copy, nmap, 0, 0, 0755, -, /usr/bin/nping)
+endif
+
 ifdef PTXCONF_NMAP_SERVICES
        @$(call install_copy, nmap, 0, 0, 0644, -, \
                /usr/share/nmap/nmap-mac-prefixes)
-- 
2.16.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to