summaryrefslogtreecommitdiff
path: root/data/nmap
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-01-01 05:58:43 +0000
committerJay Freeman <saurik@saurik.com>2008-01-01 05:58:43 +0000
commitea2670c18699e514ee1d65dfd35ad22c296a74e7 (patch)
tree6826a5266d78c22210c194772a8daed06ef0a19c /data/nmap
parenta45e85d54e8df7a333946cc52fec519fc6aa4d87 (diff)
Initial commit.
git-svn-id: http://svn.telesphoreo.org/trunk@2 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/nmap')
-rw-r--r--data/nmap/_metadata/description2
l---------data/nmap/_metadata/libpcap.dep1
l---------data/nmap/_metadata/license1
l---------data/nmap/_metadata/maintainer1
l---------data/nmap/_metadata/openssl.dep1
-rw-r--r--data/nmap/_metadata/priority1
-rw-r--r--data/nmap/_metadata/section1
-rw-r--r--data/nmap/_metadata/version1
-rw-r--r--data/nmap/bsd.diff12
-rw-r--r--data/nmap/bsd.diff_24
-rw-r--r--data/nmap/exit.diff11
-rw-r--r--data/nmap/libpcap.diff27
-rw-r--r--data/nmap/make.sh10
-rw-r--r--data/nmap/nmap-4.50.tar.bz2bin0 -> 3128562 bytes
14 files changed, 93 insertions, 0 deletions
diff --git a/data/nmap/_metadata/description b/data/nmap/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/nmap/_metadata/description
@@ -0,0 +1,2 @@
+this package isn't described yet
+This package, which I'm certain is incredibly interesting, has yet to be described. This is probably because Jay has spent days getting all kinds of bookkeeping issues, like copyright notifications, all in their correct places, and descriptions just aren't the most important thing he could be working on. If this is a problem, please come back later.
diff --git a/data/nmap/_metadata/libpcap.dep b/data/nmap/_metadata/libpcap.dep
new file mode 120000
index 000000000..6c356a9b8
--- /dev/null
+++ b/data/nmap/_metadata/libpcap.dep
@@ -0,0 +1 @@
+../../libpcap \ No newline at end of file
diff --git a/data/nmap/_metadata/license b/data/nmap/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/nmap/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/nmap/_metadata/maintainer b/data/nmap/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/nmap/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/nmap/_metadata/openssl.dep b/data/nmap/_metadata/openssl.dep
new file mode 120000
index 000000000..9b58fd56b
--- /dev/null
+++ b/data/nmap/_metadata/openssl.dep
@@ -0,0 +1 @@
+../../openssl \ No newline at end of file
diff --git a/data/nmap/_metadata/priority b/data/nmap/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/nmap/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/nmap/_metadata/section b/data/nmap/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/nmap/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/nmap/_metadata/version b/data/nmap/_metadata/version
new file mode 100644
index 000000000..4ba185d41
--- /dev/null
+++ b/data/nmap/_metadata/version
@@ -0,0 +1 @@
+4.50
diff --git a/data/nmap/bsd.diff b/data/nmap/bsd.diff
new file mode 100644
index 000000000..23ab29271
--- /dev/null
+++ b/data/nmap/bsd.diff
@@ -0,0 +1,12 @@
+diff -ru nmap-4.50/libdnet-stripped/configure.in nmap-4.50+iPhone/libdnet-stripped/configure.in
+--- nmap-4.50/libdnet-stripped/configure.in 2007-11-27 06:22:46.000000000 +0000
++++ nmap-4.50+iPhone/libdnet-stripped/configure.in 2007-12-24 19:50:24.000000000 +0000
+@@ -226,7 +226,7 @@
+ elif test "$ac_cv_dnet_bsd_bpf" = yes ; then
+ AC_LIBOBJ([eth-bsd])
+ elif test "$ac_cv_dnet_linux_pf_packet" = yes ; then
+- AC_LIBOBJ([eth-linux])
++ AC_LIBOBJ([eth-bsd])
+ elif test "$ac_cv_header_net_raw_h" = yes ; then
+ AC_LIBOBJ([eth-snoop])
+ elif test "$ac_cv_header_sys_ndd_var_h" = yes ; then
diff --git a/data/nmap/bsd.diff_ b/data/nmap/bsd.diff_
new file mode 100644
index 000000000..69f5cd2e5
--- /dev/null
+++ b/data/nmap/bsd.diff_
@@ -0,0 +1,24 @@
+diff -ru nmap-4.50/libdnet-stripped/configure.in nmap-4.50+iPhone/libdnet-stripped/configure.in
+--- nmap-4.50/libdnet-stripped/configure.in 2007-11-27 06:22:46.000000000 +0000
++++ nmap-4.50+iPhone/libdnet-stripped/configure.in 2007-12-24 19:50:24.000000000 +0000
+@@ -226,7 +226,7 @@
+ elif test "$ac_cv_dnet_bsd_bpf" = yes ; then
+ AC_LIBOBJ([eth-bsd])
+ elif test "$ac_cv_dnet_linux_pf_packet" = yes ; then
+- AC_LIBOBJ([eth-linux])
++ AC_LIBOBJ([eth-bsd])
+ elif test "$ac_cv_header_net_raw_h" = yes ; then
+ AC_LIBOBJ([eth-snoop])
+ elif test "$ac_cv_header_sys_ndd_var_h" = yes ; then
+diff -ru nmap-4.50/libdnet-stripped/src/Makefile.in nmap-4.50+iPhone/libdnet-stripped/src/Makefile.in
+--- nmap-4.50/libdnet-stripped/src/Makefile.in 2007-11-27 06:22:46.000000000 +0000
++++ nmap-4.50+iPhone/libdnet-stripped/src/Makefile.in 2007-12-24 19:50:24.000000000 +0000
+@@ -40,7 +40,7 @@
+ host_triplet = @host@
+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+ $(top_srcdir)/Makefile.am.common arp-bsd.c arp-ioctl.c \
+- arp-none.c arp-win32.c err.c eth-bsd.c eth-dlpi.c eth-linux.c \
++ arp-none.c arp-win32.c err.c eth-bsd.c eth-dlpi.c eth-bsd.c \
+ eth-ndd.c eth-none.c eth-pfilt.c eth-snoop.c eth-win32.c \
+ fw-none.c intf-win32.c intf.c ip-cooked.c ip-win32.c ip.c \
+ memcmp.c route-bsd.c route-hpux.c route-linux.c route-none.c \
diff --git a/data/nmap/exit.diff b/data/nmap/exit.diff
new file mode 100644
index 000000000..41a490bce
--- /dev/null
+++ b/data/nmap/exit.diff
@@ -0,0 +1,11 @@
+diff -ru nmap-4.50/nmap.cc nmap-4.50+iPhone/nmap.cc
+--- nmap-4.50/nmap.cc 2007-11-03 01:31:02.000000000 +0000
++++ nmap-4.50+iPhone/nmap.cc 2007-12-24 21:19:34.000000000 +0000
+@@ -1826,6 +1826,7 @@
+
+ nmap_free_mem();
+ }
++ _exit(0);
+ return 0;
+ }
+
diff --git a/data/nmap/libpcap.diff b/data/nmap/libpcap.diff
new file mode 100644
index 000000000..96af35421
--- /dev/null
+++ b/data/nmap/libpcap.diff
@@ -0,0 +1,27 @@
+diff -r -u nmap-4.50/configure.ac nmap-4.50+iPhone/configure.ac
+--- nmap-4.50/configure.ac 2007-11-27 22:18:59.000000000 +0000
++++ nmap-4.50+iPhone/configure.ac 2007-12-28 08:46:40.000000000 +0000
+@@ -306,22 +306,7 @@
+ LIBS_OLD="$LIBS"
+ LIBS="$LIBS -lpcap"
+ AC_MSG_CHECKING(if libpcap version is recent enough)
+- AC_TRY_RUN([
+-#include <stdio.h>
+-extern char pcap_version[];
+-int main() {
+- int major, minor1, minor2;
+- sscanf(pcap_version,"%d.%d.%d", &major, &minor1, &minor2);
+- if (major > 0)
+- exit(0);
+- if (minor1 < 9)
+- exit(1);
+- if (minor2 < 4)
+- exit(1);
+- exit(0);
+-}],
+-[AC_MSG_RESULT(yes); have_libpcap=yes],
+-[AC_MSG_RESULT(no); have_libpcap=no])
++AC_MSG_RESULT(yes); have_libpcap=yes
+ LIBS="$LIBS_OLD"
+ fi
+
diff --git a/data/nmap/make.sh b/data/nmap/make.sh
new file mode 100644
index 000000000..d7434e06c
--- /dev/null
+++ b/data/nmap/make.sh
@@ -0,0 +1,10 @@
+tar -jxvf "${PKG_DATA}/nmap-4.50.tar.bz2"
+cd nmap-4.50
+pkg:patch
+autoconf
+cd libdnet-stripped
+autoconf
+cd ..
+pkg:configure --without-liblua --without-python --without-zenmap
+make
+pkg:install
diff --git a/data/nmap/nmap-4.50.tar.bz2 b/data/nmap/nmap-4.50.tar.bz2
new file mode 100644
index 000000000..0ac163110
--- /dev/null
+++ b/data/nmap/nmap-4.50.tar.bz2
Binary files differ