From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com ("Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?=) Subject: [PATCH] gnu: Add Nmap. Date: Sat, 22 Nov 2014 23:05:35 +0100 Message-ID: <87zjbi99hs.fsf@taylan.uni.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsIoG-0001Do-4B for guix-devel@gnu.org; Sat, 22 Nov 2014 17:05:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsIoE-0003zq-Q7 for guix-devel@gnu.org; Sat, 22 Nov 2014 17:05:40 -0500 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:41704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsIoE-0003zj-F9 for guix-devel@gnu.org; Sat, 22 Nov 2014 17:05:38 -0500 Received: by mail-wg0-f43.google.com with SMTP id l18so9537466wgh.30 for ; Sat, 22 Nov 2014 14:05:38 -0800 (PST) Received: from taylan.uni.cx (p200300514A5864C60213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a58:64c6:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id w4sm13756121wjw.39.2014.11.22.14.05.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 22 Nov 2014 14:05:37 -0800 (PST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Many distros separate Zenmap from the Nmap package. Should we do the same? If yes, I'll need some help. This recipe builds it together with the rest of the suite. ===File /home/tub/media/src/guix/0001-gnu-Add-Nmap.patch==== >From d2d36938b679818f42a66590f25766cfc321245f Mon Sep 17 00:00:00 2001 From: Taylan Ulrich B Date: Sat, 22 Nov 2014 22:47:26 +0100 Subject: [PATCH] gnu: Add Nmap. * gnu/packages/nmap.scm: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add nmap.scm. --- gnu-system.am | 1 + gnu/packages/nmap.scm | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 gnu/packages/nmap.scm diff --git a/gnu-system.am b/gnu-system.am index d3b822c..a4094b2 100644 --- a/gnu-system.am +++ b/gnu-system.am @@ -186,6 +186,7 @@ GNU_SYSTEM_MODULES = \ gnu/packages/ncurses.scm \ gnu/packages/netpbm.scm \ gnu/packages/nettle.scm \ + gnu/packages/nmap.scm \ gnu/packages/node.scm \ gnu/packages/noweb.scm \ gnu/packages/ntp.scm \ diff --git a/gnu/packages/nmap.scm b/gnu/packages/nmap.scm new file mode 100644 index 0000000..2137ee7 --- /dev/null +++ b/gnu/packages/nmap.scm @@ -0,0 +1,62 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2014 Taylan Ulrich Bayırlı/Kammer +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages nmap) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu) + #:use-module ((guix licenses) #:prefix l:) + #:use-module (gnu packages openssl) + #:use-module ((gnu packages admin) #:select (libpcap)) + #:use-module (gnu packages pcre) + #:use-module (gnu packages lua) + #:use-module (gnu packages python)) + +(define-public nmap + (package + (name "nmap") + (version "6.47") + (source (origin + (method url-fetch) + (uri (string-append "http://nmap.org/dist/nmap-" version + ".tar.bz2")) + (sha256 + (base32 + "14d53aji4was68c01pf105n5ylha257wmdbx40ddiqiw42g1x8cg")))) + (build-system gnu-build-system) + (inputs `(("openssl" ,openssl) + ("libpcap" ,libpcap) + ("pcre" ,pcre) + ("lua" ,lua) + ("python-2" ,python-2) + ;; FIXME: Add liblinear here once it's packaged. (Nmap uses its + ;; own version when it can't find it.) + )) + (arguments + ;; Tests require network access, which build processes don't have. + `(#:tests? #f)) + (synopsis "Network discovery and security auditing tool") + (description + "Nmap (\"Network Mapper\") is a network discovery and security auditing +tool. It is also useful for tasks such as network inventory, managing service +upgrade schedules, and monitoring host or service uptime. It also provides an +advanced netcat implementation (ncat), a utility for comparing scan +results (ndiff), a packet generation and response analysis tool (nping), and +the Zenmap GUI and results viewer.") + (home-page "http://nmap.org/") + (license l:gpl2))) -- 2.1.2 ============================================================