From: Leo Famulari <leo@famulari.name>
To: guix-devel@gnu.org
Subject: [PATCH 2/2] gnu: Add nmap.
Date: Mon, 14 Mar 2016 18:50:56 -0400 [thread overview]
Message-ID: <fee169f977392e74eed22bbc59331e49694ebcc3.1457995814.git.leo@famulari.name> (raw)
In-Reply-To: <cover.1457995814.git.leo@famulari.name>
In-Reply-To: <cover.1457995814.git.leo@famulari.name>
* gnu/packages/admin.scm (nmap): New variable.
---
gnu/packages/admin.scm | 56 +++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 55 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 69802e9..2415a8d 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -64,7 +64,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."
@@ -1497,3 +1499,55 @@ for writing audit records to the disk. Viewing the logs is done with the
@code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
done with the @code{auditctl} utility.")
(license license:gpl2+)))
+
+(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"))
+ (modules '((guix build utils)))
+ (snippet
+ '(map delete-file-recursively
+ ;; Remove bundled lua, pcap, and pcre libraries.
+ ;; FIXME: Removed bundled liblinear once packaged.
+ '("liblua"
+ "libpcap"
+ "libpcre"
+ ;; Remove pre-compiled binaries.
+ "mswin32")))))
+ (build-system gnu-build-system)
+ ;; TODO: Build "zenmap" GUI interface in "gui" output.
+ (arguments
+ `(#:configure-flags
+ (list (string-append "--prefix=" (assoc-ref %outputs "out"))
+ "--without-ncat"
+ "--without-nmap-update"
+ "--without-zenmap")))
+ (inputs
+ `(;("liblinear" ,liblinear)
+ ("libpcap" ,libpcap)
+ ("lua" ,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. It is incompatible with the GPL 2.0.
+ ;; Nmap's source tarball bundles the source code of many of its
+ ;; dependencies. This package uses nmap's modified version of libdnet and
+ ;; liblinear, which both use a 3-clause BSD license.
+ (license (list license:nmap license:bsd-3))))
--
2.6.3
next prev parent reply other threads:[~2016-03-14 22:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-14 22:50 [PATCH 0/2] Add nmap Leo Famulari
2016-03-14 22:50 ` [PATCH 1/2] licenses: Add the nmap license Leo Famulari
2016-03-15 8:21 ` Ricardo Wurmus
2016-03-14 22:50 ` Leo Famulari [this message]
2016-03-15 8:04 ` [PATCH 2/2] gnu: Add nmap Taylan Ulrich Bayırlı/Kammer
2016-03-15 8:29 ` Leo Famulari
2016-03-15 8:47 ` Taylan Ulrich Bayırlı/Kammer
2016-03-15 8:24 ` Ricardo Wurmus
2016-03-15 7:50 ` [PATCH 0/2] " Taylan Ulrich Bayırlı/Kammer
2016-03-15 7:56 ` Leo Famulari
2016-03-15 8:07 ` Taylan Ulrich Bayırlı/Kammer
2016-03-15 8:25 ` Leo Famulari
2016-03-27 21:36 ` Ludovic Courtès
2016-03-27 21:44 ` Leo Famulari
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fee169f977392e74eed22bbc59331e49694ebcc3.1457995814.git.leo@famulari.name \
--to=leo@famulari.name \
--cc=guix-devel@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).