mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/2] nmap: add switch to build and install nping
Date: Thu, 22 Mar 2018 14:23:40 +0100	[thread overview]
Message-ID: <20180322132340.16021-2-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <20180322132340.16021-1-u.kleine-koenig@pengutronix.de>

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@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	other threads:[~2018-03-22 13:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-22 13:23 [ptxdist] [PATCH 1/2] nmap: version bump: 5.51 -> 7.70 Uwe Kleine-König
2018-03-22 13:23 ` Uwe Kleine-König [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180322132340.16021-2-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox