Paste number 306497: nmap

Paste number 306497: nmap
Pasted by: lfam
When:5 years, 9 months ago
Share:Tweet this! | http://paste.lisp.org/+6KHT
Channel:None
Paste contents:
Raw Source | XML | Display As
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index eca4d92..02660bc 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -59,7 +59,9 @@
   #:use-module (gnu packages xorg)
   #:use-module (gnu packages python)
   #:use-module (gnu packages man)
-  #:use-module (gnu packages autotools))
+  #:use-module (gnu packages autotools)
+  #:use-module (gnu packages pcre)
+  #:use-module (gnu packages lua))
 
 (define-public dmd
   ;; Deprecated.  Kept around "just in case."
@@ -1427,3 +1429,46 @@ for CPU usage.  It listens to network traffic on a named interface and
 displays a table of current bandwidth usage by pairs of hosts.")
     (home-page "http://www.ex-parrot.com/~pdw/iftop/")
     (license license:gpl3)))
+
+(define-public nmap
+  (package
+    (name "nmap")
+    (version "7.01")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://nmap.org/dist/nmap-"
+                                  version ".tar.bz2"))
+              (sha256
+               (base32
+                "01bpc820fmjl1vd08a3j9fpa84psaa7c3cxc8wpzabms8ckcs7yg"))))
+    (build-system gnu-build-system)
+    ;; TODO: Build "zenmap" in "gui" output.
+    (arguments
+     `(#:configure-flags
+       (list (string-append "--prefix=" (assoc-ref %outputs "out"))
+             "--without-ncat"
+             "--without-nmap-update"
+             "--without-zenmap")))
+    ;; FIXME: Add external liblinear package, and stop using bundled liblinear.
+    (inputs
+     `(("libpcap" ,libpcap)
+       ("lua-5.2" ,lua)
+       ("openssl" ,openssl)
+       ("pcre" ,pcre)
+       ;; For 'ndiff'
+       ("python-2" ,python-2)))
+    (synopsis "Network discovery and auditing tool")
+    (description "Nmap is a network discovery and auditing tool.  It provides
+several features for probing computer networks, including host discovery,
+service, and operating system detection.  These features are extensible by
+scripts that provide more advanced service detection, vulnerability detection,
+and other features.  Nmap is also capable of adapting to network conditions
+including latency and congestion during a scan.")
+    (home-page "https://nmap.org")
+    ;; The nmap license is based on the GPL 2.0, with several exceptions and
+    ;; modifications.
+    ;; Nmap's source tarball bundles the source code of many of its
+    ;; dependencies.  This package makes use of nmap's modified version
+    ;; of libdnet, and the bundled liblinear, both of which use a
+    ;; 3-clause BSD license.
+    (license (list license:nmap license:bsd-3))))
diff --git a/guix/licenses.scm b/guix/licenses.scm
index d33b19f..aa38511 100644
--- a/guix/licenses.scm
+++ b/guix/licenses.scm
@@ -55,6 +55,7 @@
             mpl1.0 mpl1.1 mpl2.0
             ms-pl
             ncsa
+            nmap
             openldap2.8 openssl
             psfl public-domain
             qpl
@@ -336,6 +337,11 @@ at URI, which may be a file:// URI pointing the package's tree."
            "http://directory.fsf.org/wiki/License:IllinoisNCSA"
            "https://www.gnu.org/licenses/license-list#NCSA"))
 
+(define nmap
+  (license "Nmap license"
+           "https://svn.nmap.org/nmap/COPYING"
+           "https://fedoraproject.org/wiki/Licensing/Nmap"))
+
 (define openssl
   (license "OpenSSL"
            "http://directory.fsf.org/wiki/License:OpenSSL"

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.