From: Schantl Stefan Date: Fri, 26 Feb 2010 22:00:16 +0000 (+0100) Subject: nmap: New package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66ded0eb6f3a66abc80efc45cb2461ece3275161;p=ipfire-3.x.git nmap: New package. --- diff --git a/pkgs/core/nmap/nmap.nm b/pkgs/core/nmap/nmap.nm new file mode 100644 index 000000000..c4f54c034 --- /dev/null +++ b/pkgs/core/nmap/nmap.nm @@ -0,0 +1,51 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# This program 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. # +# # +# This program 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 this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = nmap +PKG_VER = 5.00 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = Networking/Sniffer +PKG_URL = http://nmap.org/ +PKG_LICENSE = GPLv2+ +PKG_SUMMARY = Network exploration tool and security scanner. + +PKG_DEPS += libdnet libpcap lua openssl pcre + +define PKG_DESCRIPTION + Nmap is a utility for network exploration or security auditing. \ + It supports ping scanning, many port scanning techniques, and \ + TCP/IP fingerprinting. Nmap also offers flexible target and port \ + specification, decoy scanning, determination of TCP sequence \ + predictability characteristics, reverse-identd scanning, and more. +endef + +PKG_TARBALL = $(THISAPP).tar.bz2 + +CONFIGURE_OPTIONS += \ + --without-nmapfe \ + --without-zenmap diff --git a/pkgs/core/nmap/patches/nmap-5.00-mktemp.patch b/pkgs/core/nmap/patches/nmap-5.00-mktemp.patch new file mode 100644 index 000000000..68baffece --- /dev/null +++ b/pkgs/core/nmap/patches/nmap-5.00-mktemp.patch @@ -0,0 +1,23 @@ +--- nmap-4.03/shtool.mktemp 2006-05-10 13:09:34.000000000 +0200 ++++ nmap-4.03/shtool 2006-05-10 13:13:58.000000000 +0200 +@@ -579,15 +579,11 @@ + else + tmpdir="/tmp" + fi +- tmpdir="$tmpdir/.shtool.$$" +- ( umask 077 +- rm -rf "$tmpdir" >/dev/null 2>&1 || true +- mkdir "$tmpdir" >/dev/null 2>&1 +- if [ $? -ne 0 ]; then +- echo "$msgprefix:Error: failed to create temporary directory \`$tmpdir'" 1>&2 +- exit 1 +- fi +- ) ++ tmpdir=`mktemp -p $tmpdir -d` ++ if [ $? -ne 0 ]; then ++ echo "$msgprefix:Error: failed to create temporary directory \`$tmpdir'" 1>&2 ++ exit 1 ++ fi + + # create (implicitly) secure temporary file + tmpfile="$tmpdir/shtool.tmp"