Subject: [bug#47913] [PATCH v2] add netdiscover

From: [email-masked]
Date: Tue, 20 Apr 2021 16:43:45 -0400

Here you go.

---
  gnu/packages/networking.scm | 26 ++++++++++++++++++++++++++
  1 file changed, 26 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index f7557fc331..e973a1b26a 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -4075,3 +4075,29 @@ IPv6 Internet connectivity - it also works over 
IPv4.")
       ;; version. This exception does not (and cannot) modify any 
license terms
       ;; which apply to the Application, with which you must still 
comply
       license:lgpl3)))
+
+(define-public netdiscover
+  (package
+   (name "netdiscover")
+   (version "0.7")
+   (source (origin
+            (method git-fetch)
+            (uri (git-reference
+                  (url 
"https://github.com/netdiscover-scanner/netdiscover")
+                  (commit version)))
+            (sha256 (base32 
"0g8w8rlg16dsibxi4dnyn7v7r8wwi5ypd51c4w59j0ps2id0w8yj"))
+            (file-name (string-append "netdiscover-" version))))
+   (arguments `(#:tests? #f)) ;; no tests
+   (build-system gnu-build-system)
+   (inputs `(("libpcap" ,libpcap)
+             ("libnet" ,libnet)))
+   (native-inputs `(("automake" ,automake)
+                    ("autoconf" ,autoconf)))
+   (synopsis "Network address discovery tool")
+   (description
+    "Netdiscover is a network address discovering tool, developed 
mainly for
+those wireless networks without dhcp server, it also works on 
hub/switched
+networks.  Its based on arp packets, it will send arp requests and 
sniff for
+replies.")
+   (home-page "https://github.com/netdiscover-scanner/netdiscover")
+   (license license:gpl3+)))
-- 
2.31.1