--- /dev/null
+###############################################################################
+# #
+# 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 <http://www.gnu.org/licenses/>. #
+# #
+###############################################################################
+
+###############################################################################
+# 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
--- /dev/null
+--- 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"