aboutsummaryrefslogtreecommitdiffstats
path: root/security/nmap/files
diff options
context:
space:
mode:
authorsumikawa <sumikawa@FreeBSD.org>2003-04-11 18:00:50 +0800
committersumikawa <sumikawa@FreeBSD.org>2003-04-11 18:00:50 +0800
commitf66ca051c8474903ef6202eaf850d52e100df51b (patch)
tree6285a968e0ba1731bf35fa31bf9c3c3b8d10670d /security/nmap/files
parent7c3b48d78ec7d709eb1242180c2ef5896451bd7c (diff)
downloadfreebsd-ports-gnome-f66ca051c8474903ef6202eaf850d52e100df51b.tar.gz
freebsd-ports-gnome-f66ca051c8474903ef6202eaf850d52e100df51b.tar.zst
freebsd-ports-gnome-f66ca051c8474903ef6202eaf850d52e100df51b.zip
Upgrade to 3.20
PR: ports/49987 Submitted by: Dominic Marks <dom@cus.org.uk> marius@alchemy.franken.de
Diffstat (limited to 'security/nmap/files')
-rw-r--r--security/nmap/files/nmap.187
-rw-r--r--security/nmap/files/patch-aa27
-rw-r--r--security/nmap/files/patch-nbase::getopt.h14
-rw-r--r--security/nmap/files/patch-nmap.h18
4 files changed, 47 insertions, 99 deletions
diff --git a/security/nmap/files/nmap.1 b/security/nmap/files/nmap.1
deleted file mode 100644
index b80aaa89fe46..000000000000
--- a/security/nmap/files/nmap.1
+++ /dev/null
@@ -1,87 +0,0 @@
-.\"
-.\" Copyright (c) 1998 David E. O'Brien
-.\"
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
-.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
-.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"
-.\" $FreeBSD$
-.\"
-.\" .TH NMAP 1L local
-.Dd August 4, 1998
-.Dt NMAP 1
-.Os BSD
-.Sh NAME
-.Nm nmap
-.Nd network port scanner
-.Sh SYNOPSIS
-.Nm nmap
-.Op Ar options
-.Ar hostname
-.Op Ar /mask
-.Sh DESCRIPTION
-.Nm
-is a utility for port scanning large networks, although it works fine for
-single hosts. The guiding philosophy for the creation of
-.Nm
-was TMTOWTDI (There's More Than One Way To Do It). This is the Perl slogan, but
-it is equally applicable to scanners. Sometimes you need speed, other times you
-may need stealth. In some cases, bypassing firewalls may be required. Not to
-mention the fact that you may want to scan different protocols (UDP, TCP, ICMP,
-etc.). You just can't do all this with one scanning mode. And you don't want to
-have 10 different scanners around, all with different interfaces and
-capabilities. Thus
-.Nm
-incorporats virtually every scanning technique known.
-Specifically,
-.Nm
-supports:
-
- Vanilla TCP connect() scanning,
- TCP SYN (half open) scanning,
- TCP FIN (stealth) scanning,
- TCP ftp proxy (bounce attack) scanning
- SYN/FIN scanning using IP fragments (bypasses packet filters),
- UDP recvfrom() scanning,
- UDP raw ICMP port unreachable scanning,
- ICMP scanning (ping-sweep), and
- Reverse-ident scanning.
-
-.Nm
-also supports a number of performance and reliability features such as dynamic
-delay time calculations, packet timeout and retransmission, parallel port
-scanning, detection of down hosts via parallel pings, and flexible target and
-port specification.
-.Sh FILES
-none.
-.Sh SEE ALSO
-.Xr mscan 1L ,
-.Xr nc 1L ,
-.Xr scrobe 1L
-.Sh DIAGNOSTICS
-none.
-.Sh BUGS
-none known.
-.Sh AUTHORS
-This man page has been written by David O'Brien (obrien@cs.ucdavis.edu)
-.\" .Sh HISTORY
-.\" .Nm
-.\" appeared in FreeBSD 3.0.
diff --git a/security/nmap/files/patch-aa b/security/nmap/files/patch-aa
index 34c00b4f2ccf..65f57295798d 100644
--- a/security/nmap/files/patch-aa
+++ b/security/nmap/files/patch-aa
@@ -1,25 +1,28 @@
--- Makefile.in.orig Fri Mar 9 22:25:19 2001
+++ Makefile.in Sun May 27 17:49:17 2001
-@@ -16,5 +16,5 @@
+@@ -9,14 +9,14 @@
+ mandir = @mandir@
+ srcdir = @srcdir@
+ nmapdatadir = @datadir@/nmap
+-deskdir = $(prefix)/share/gnome/apps/Utilities
++deskdir = $(X11BASE)/share/gnome/apps/Utilities
+
+ NBASEDIR=@NBASEDIR@
+ CC = @CC@
+ CXX = @CXX@
CCOPT =
LIBPCAPDIR = @libpcapdir@
-INCLS = -I$(LIBPCAPDIR)
+#INCLS = -I$(LIBPCAPDIR)
DEFS = @DEFS@ -DNMAP_VERSION=\"$(NMAP_VERSION)\" -DNMAP_NAME=\"$(NMAP_NAME)\" -DNMAP_URL=\"$(NMAP_URL)\" -DNMAP_PLATFORM=\"$(NMAP_PLATFORM)\" -DNMAPDATADIR=\"$(nmapdatadir)\"
- CFLAGS = -g @CFLAGS@ $(CCOPT) $(DEFS) $(INCLS)
-@@ -171,9 +171,12 @@
+ # For mtrace debugging -- see MTRACE define in main.cc for instructions
+ # Should only be enabled during debugging and not in any real release.
+@@ -200,7 +200,7 @@
$(MAKEDEPEND) $(INCLS) -s "# DO NOT DELETE" -- $(DEFS) -- $(SRCS)
--install: $(TARGET)
+ install-nmap: $(TARGET)
- $(SHTOOL) mkdir -f -p -m 755 $(bindir) $(mandir)/man1 $(nmapdatadir) $(deskdir)
-- $(INSTALL) -c -m 755 nmap $(bindir)/nmap
-+install-nmapfe:
- @echo "If the next command fails -- you cannot use the X front end"
-+ $(SHTOOL) mkdir -f -p -m 755 $(deskdir)
- -test -f nmapfe/nmapfe && $(INSTALL) -c -m 755 nmapfe/nmapfe $(bindir)/nmapfe && $(SHTOOL) mkln -f -s $(bindir)/nmapfe $(bindir)/xnmap && $(INSTALL) -c -m 644 nmapfe.desktop $(deskdir)/nmapfe.desktop && $(INSTALL) -c -m 644 docs/nmapfe.1 $(mandir)/man1/nmapfe.1 && $(INSTALL) -c -m 644 docs/xnmap.1 $(mandir)/man1/xnmap.1
-+
-+install: $(TARGET)
+ $(SHTOOL) mkdir -f -p -m 755 $(bindir) $(mandir)/man1 $(nmapdatadir)
-+ $(INSTALL) -c -m 755 nmap $(bindir)/nmap
+ $(INSTALL) -c -m 755 nmap $(bindir)/nmap
$(INSTALL) -c -m 644 docs/$(TARGET).1 $(mandir)/man1/$(TARGET).1
$(INSTALL) -c -m 644 nmap-os-fingerprints $(nmapdatadir)/nmap-os-fingerprints
diff --git a/security/nmap/files/patch-nbase::getopt.h b/security/nmap/files/patch-nbase::getopt.h
new file mode 100644
index 000000000000..6f83861620ed
--- /dev/null
+++ b/security/nmap/files/patch-nbase::getopt.h
@@ -0,0 +1,14 @@
+--- nbase/getopt.h.orig Sat Mar 29 22:29:42 2003
++++ nbase/getopt.h Sat Mar 29 22:47:18 2003
+@@ -100,7 +100,11 @@
+ errors, only prototype getopt for the GNU C library. */
+ extern int getopt (int argc, char *const *argv, const char *shortopts);
+ #else /* not __GNU_LIBRARY__ */
++#if FREEBSD
++#include <unistd.h>
++#else
+ extern int getopt ();
++#endif
+ #endif /* __GNU_LIBRARY__ */
+ extern int getopt_long (int argc, char *const *argv, const char *shortopts,
+ const struct option *longopts, int *longind);
diff --git a/security/nmap/files/patch-nmap.h b/security/nmap/files/patch-nmap.h
new file mode 100644
index 000000000000..9034cea558eb
--- /dev/null
+++ b/security/nmap/files/patch-nmap.h
@@ -0,0 +1,18 @@
+--- nmap.h.orig Sun Mar 30 18:44:33 2003
++++ nmap.h Sun Mar 30 18:51:47 2003
+@@ -344,9 +344,12 @@
+ #elif defined(UW)
+ # define NET_SIZE_T size_t
+ #elif defined(__FreeBSD__)
+- /* XXX: Apache didn't have this one,
+- so watch it be wrong :)... */
+-# define NET_SIZE_T size_t
++# if __FreeBSD__ >= 2
++# include <osreldate.h>
++# if __FreeBSD_version >= 400000
++# define NET_SIZE_T socklen_t
++# endif
++# endif
+ #elif defined(OPENBSD)
+ # define NET_SIZE_T socklen_t
+ #elif defined(NETBSD)