summaryrefslogtreecommitdiff
path: root/packages/nonworking/libnet
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/nonworking/libnet
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/nonworking/libnet')
-rw-r--r--packages/nonworking/libnet/.mtn2git_empty0
-rw-r--r--packages/nonworking/libnet/files/.mtn2git_empty0
-rw-r--r--packages/nonworking/libnet/files/compile-fix.patch16
-rw-r--r--packages/nonworking/libnet/files/configure.patch61
-rw-r--r--packages/nonworking/libnet/libnet_1.1.2.1.bb25
5 files changed, 102 insertions, 0 deletions
diff --git a/packages/nonworking/libnet/.mtn2git_empty b/packages/nonworking/libnet/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/nonworking/libnet/.mtn2git_empty
diff --git a/packages/nonworking/libnet/files/.mtn2git_empty b/packages/nonworking/libnet/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/nonworking/libnet/files/.mtn2git_empty
diff --git a/packages/nonworking/libnet/files/compile-fix.patch b/packages/nonworking/libnet/files/compile-fix.patch
index e69de29bb2..24e30c84fe 100644
--- a/packages/nonworking/libnet/files/compile-fix.patch
+++ b/packages/nonworking/libnet/files/compile-fix.patch
@@ -0,0 +1,16 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- libnet/include/libnet.h.in~compile-fix
++++ libnet/include/libnet.h.in
+@@ -114,7 +114,7 @@
+ #include <stdarg.h>
+
+ #define LIBNET_VERSION "@LIBNET_VERSION@"
+-#define @ENDIANESS@ 1
++//#define @ENDIANESS@ 1
+
+ #include "./libnet/libnet-types.h"
+ #include "./libnet/libnet-macros.h"
diff --git a/packages/nonworking/libnet/files/configure.patch b/packages/nonworking/libnet/files/configure.patch
index e69de29bb2..876c4292bd 100644
--- a/packages/nonworking/libnet/files/configure.patch
+++ b/packages/nonworking/libnet/files/configure.patch
@@ -0,0 +1,61 @@
+
+#
+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
+#
+
+--- libnet/acinclude.m4~configure
++++ libnet/acinclude.m4
+@@ -184,7 +184,7 @@
+ AC_CACHE_VAL(ac_cv_lbl_unaligned_fail,
+ [case "$target_cpu" in
+
+- alpha|hp*|mips|sparc)
++ alpha|hp*|mips|sparc|arm)
+ ac_cv_lbl_unaligned_fail=yes
+ ;;
+
+@@ -259,7 +259,8 @@
+ dnl
+
+ AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
+- [AC_MSG_CHECKING(machine endianess)
++ [AC_CACHE_CHECK([machine_endianness],
++ ac_cv_libnet_endianess, [
+
+ cat > conftest.c << EOF
+ # include <stdio.h>
+@@ -312,8 +313,7 @@
+ fi
+ fi
+ rm -f conftest* core core.conftest
+-
+- AC_MSG_RESULT($ac_cv_libnet_endianess)
++ ])
+
+ if test $ac_cv_libnet_endianess = big ; then
+ AC_DEFINE(LIBNET_BIG_ENDIAN)
+@@ -324,7 +324,7 @@
+ ENDIANESS="LIBNET_LIL_ENDIAN"
+ LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
+ fi
+- ])
++])
+
+ dnl
+ dnl Improved version of AC_CHECK_LIB
+--- libnet/./configure.in~configure
++++ libnet/./configure.in
+@@ -7,10 +7,11 @@
+ dnl Process this file with autoconf to produce a configure script.
+
+
+-AC_INIT(src/libnet_build_ip.c)
++AC_INIT
++AC_CONFIG_SRCDIR([src/libnet_build_ip.c])
+ LIBNET_VERSION=`cat VERSION`
+ AC_MSG_RESULT(beginning autoconfiguration process for libnet-$LIBNET_VERSION...)
+-AC_CANONICAL_SYSTEM
++AC_CANONICAL_TARGET([])
+
+ AM_INIT_AUTOMAKE(libnet, $LIBNET_VERSION)
+ AM_CONFIG_HEADER(include/config.h)
diff --git a/packages/nonworking/libnet/libnet_1.1.2.1.bb b/packages/nonworking/libnet/libnet_1.1.2.1.bb
index e69de29bb2..58d13c9be1 100644
--- a/packages/nonworking/libnet/libnet_1.1.2.1.bb
+++ b/packages/nonworking/libnet/libnet_1.1.2.1.bb
@@ -0,0 +1,25 @@
+#FIXME: Does not compile against linux-libc-headers 2.6
+BROKEN = "1"
+DESCRIPTION = "A packet dissection and creation library"
+SRC_URI = "http://www.packetfactory.net/libnet/dist/libnet.tar.gz \
+ file://configure.patch;patch=1 \
+ file://compile-fix.patch;patch=1"
+S = "${WORKDIR}/libnet"
+
+inherit autotools
+
+CPPFLAGS_prepend = "-I${S}/libnet/include "
+
+do_configure() {
+ oe_runconf
+}
+
+do_stage () {
+ install -m 0755 libnet-config ${STAGING_BINDIR}/
+ oe_runmake -C src 'DESTDIR=${STAGING_DIR}/target' \
+ 'libdir=/lib' install-libLIBRARIES
+ oe_runmake -C include 'DESTDIR=${STAGING_DIR}/target' \
+ 'includedir=/include' install-includeHEADERS
+ oe_runmake -C include/libnet 'DESTDIR=${STAGING_DIR}/target' \
+ 'includedir=/include' install-libnetincludeHEADERS
+}