summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/libnet/_metadata/description1
-rw-r--r--data/libnet/_metadata/homepage1
-rw-r--r--data/libnet/_metadata/license31
l---------data/libnet/_metadata/maintainer1
-rw-r--r--data/libnet/_metadata/priority1
-rw-r--r--data/libnet/_metadata/role1
-rw-r--r--data/libnet/_metadata/section1
-rw-r--r--data/libnet/_metadata/tags1
-rw-r--r--data/libnet/_metadata/version1
-rw-r--r--data/libnet/bpf.diff48
-rw-r--r--data/libnet/endian.diff21
-rw-r--r--data/libnet/libnet-1.1.2.1.tar.gzbin0 -> 1021236 bytes
-rw-r--r--data/libnet/make.sh5
13 files changed, 113 insertions, 0 deletions
diff --git a/data/libnet/_metadata/description b/data/libnet/_metadata/description
new file mode 100644
index 000000000..306158548
--- /dev/null
+++ b/data/libnet/_metadata/description
@@ -0,0 +1 @@
+construct and inject network packets
diff --git a/data/libnet/_metadata/homepage b/data/libnet/_metadata/homepage
new file mode 100644
index 000000000..ae3b44369
--- /dev/null
+++ b/data/libnet/_metadata/homepage
@@ -0,0 +1 @@
+http://www.packetfactory.net/libnet/
diff --git a/data/libnet/_metadata/license b/data/libnet/_metadata/license
new file mode 100644
index 000000000..1a2956818
--- /dev/null
+++ b/data/libnet/_metadata/license
@@ -0,0 +1,31 @@
+ $Id: COPYING,v 1.1.1.1 2003/06/26 21:55:10 route Exp $
+
+ libnet 1.1.x
+ Copyright (c) 1998 - 2002 Mike D. Schiffman <mike@infonexus.com>
+ http://www.packetfactory.net/libnet
+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 AUTHOR AND CONTRIBUTORS ``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 AUTHOR OR CONTRIBUTORS 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.
+
+
+EOF
diff --git a/data/libnet/_metadata/maintainer b/data/libnet/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/libnet/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/libnet/_metadata/priority b/data/libnet/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/libnet/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/libnet/_metadata/role b/data/libnet/_metadata/role
new file mode 100644
index 000000000..8d0320866
--- /dev/null
+++ b/data/libnet/_metadata/role
@@ -0,0 +1 @@
+developer
diff --git a/data/libnet/_metadata/section b/data/libnet/_metadata/section
new file mode 100644
index 000000000..8708e4b54
--- /dev/null
+++ b/data/libnet/_metadata/section
@@ -0,0 +1 @@
+Networking
diff --git a/data/libnet/_metadata/tags b/data/libnet/_metadata/tags
new file mode 100644
index 000000000..a8928cec8
--- /dev/null
+++ b/data/libnet/_metadata/tags
@@ -0,0 +1 @@
+purpose::library
diff --git a/data/libnet/_metadata/version b/data/libnet/_metadata/version
new file mode 100644
index 000000000..dee2cba9b
--- /dev/null
+++ b/data/libnet/_metadata/version
@@ -0,0 +1 @@
+1.1.2.1
diff --git a/data/libnet/bpf.diff b/data/libnet/bpf.diff
new file mode 100644
index 000000000..21bc25a4d
--- /dev/null
+++ b/data/libnet/bpf.diff
@@ -0,0 +1,48 @@
+diff -ru libnet/configure.in libnet+iPhone/configure.in
+--- libnet/configure.in 2004-03-01 20:26:11.000000000 +0000
++++ libnet+iPhone/configure.in 2009-01-20 21:52:24.000000000 +0000
+@@ -67,44 +67,8 @@
+ dnl
+ AC_MSG_CHECKING(link-layer packet interface type)
+
+-if test -r /dev/bpf0 ; then
+ AC_LIBOBJ([libnet_link_bpf])
+ AC_MSG_RESULT(found bpf)
+-elif test -r /usr/include/net/pfilt.h ; then
+- AC_LIBOBJ([libnet_link_pf])
+- AC_MSG_RESULT(found pf)
+-elif test -r /dev/nit ; then
+- AC_LIBOBJ([libnet_link_snit])
+- AC_MSG_RESULT(found snit)
+-elif test -r /usr/include/sys/net/nit.h ; then
+- AC_LIBOBJ([libnet_link_nit])
+- AC_MSG_RESULT(found nit)
+-elif test -r /usr/include/net/raw.h ; then
+- AC_LIBOBJ([libnet_link_snoop])
+- AC_MSG_RESULT(found snoop)
+-elif test -r /usr/include/sys/dlpi.h ; then
+- AC_LIBOBJ([libnet_link_dlpi])
+- AC_MSG_RESULT(found dlpi)
+- AC_DEFINE(HAVE_DLPI)
+-elif test -r /usr/include/linux/socket.h ; then
+- AC_LIBOBJ([libnet_link_linux])
+- AC_MSG_RESULT(found linux primitives)
+- AC_LIBNET_CHECK_PF_PACKET
+- AC_LIBNET_LINUX_PROCFS
+-elif test -c /dev/bpf0 ; then # check again in case not readable
+- AC_LIBOBJ([libnet_link_bpf])
+- AC_MSG_RESULT(found bpf)
+-elif test -c /dev/nit ; then # check again in case not readable
+- AC_LIBOBJ([libnet_link_snit])
+- AC_MSG_RESULT(found snit)
+-elif test "$target_os" = "cygwin" ; then
+- AC_LIBOBJ([libnet_link_win32])
+- AC_MSG_RESULT(found win32 wpcap)
+-else
+- AC_LIBOBJ([libnet_link_none])
+- AC_MSG_WARN(could not find a link-layer packet interface)
+- AC_MSG_WARN(link-layer packet injection will not be available)
+-fi
+
+ dnl
+ dnl Inform user about the packet builders we've got
diff --git a/data/libnet/endian.diff b/data/libnet/endian.diff
new file mode 100644
index 000000000..e36f5e271
--- /dev/null
+++ b/data/libnet/endian.diff
@@ -0,0 +1,21 @@
+diff -ru libnet/aclocal.m4 libnet+iPhone/aclocal.m4
+--- libnet/aclocal.m4 2004-03-01 20:26:11.000000000 +0000
++++ libnet+iPhone/aclocal.m4 2009-01-20 21:44:39.000000000 +0000
+@@ -294,6 +294,8 @@
+ AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
+ [AC_MSG_CHECKING(machine endianess)
+
++ if test ! ${ac_cv_libnet_endianess+@}; then
++
+ cat > conftest.c << EOF
+ # include <stdio.h>
+ # include <stdlib.h>
+@@ -346,6 +348,8 @@
+ fi
+ rm -f conftest* core core.conftest
+
++ fi
++
+ AC_MSG_RESULT($ac_cv_libnet_endianess)
+
+ if test $ac_cv_libnet_endianess = big ; then
diff --git a/data/libnet/libnet-1.1.2.1.tar.gz b/data/libnet/libnet-1.1.2.1.tar.gz
new file mode 100644
index 000000000..11f5563d6
--- /dev/null
+++ b/data/libnet/libnet-1.1.2.1.tar.gz
Binary files differ
diff --git a/data/libnet/make.sh b/data/libnet/make.sh
new file mode 100644
index 000000000..c2e0a724c
--- /dev/null
+++ b/data/libnet/make.sh
@@ -0,0 +1,5 @@
+pkg:setup
+autoconf
+pkg:configure ac_cv_libnet_endianess=lil ac_libnet_have_packet_socket=no ac_cv_libnet_linux_procfs=no ac_cv_lbl_unaligned_fail=no
+make
+pkg:install