summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/libnet/libnet-1.0.2a/configure.uclibc.patch11
-rw-r--r--packages/libnet/libnet_1.0.2a.bb7
2 files changed, 16 insertions, 2 deletions
diff --git a/packages/libnet/libnet-1.0.2a/configure.uclibc.patch b/packages/libnet/libnet-1.0.2a/configure.uclibc.patch
new file mode 100644
index 0000000000..809640fb65
--- /dev/null
+++ b/packages/libnet/libnet-1.0.2a/configure.uclibc.patch
@@ -0,0 +1,11 @@
+--- Libnet-1.0.2a/config.sub.orig 2005-11-10 11:24:50.238457174 -0800
++++ Libnet-1.0.2a/config.sub 2005-11-10 11:25:23.704563063 -0800
+@@ -68,7 +68,7 @@ esac
+ # Here we must recognize all the valid KERNEL-OS combinations.
+ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+ case $maybe_os in
+- linux-gnu*)
++ linux-gnu*|linux-uclibc)
+ os=-$maybe_os
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ ;;
diff --git a/packages/libnet/libnet_1.0.2a.bb b/packages/libnet/libnet_1.0.2a.bb
index c986bb9f90..9cfcdf8a2a 100644
--- a/packages/libnet/libnet_1.0.2a.bb
+++ b/packages/libnet/libnet_1.0.2a.bb
@@ -4,9 +4,12 @@ portable framework for low-level network packet shaping, \
handling, and injection."
SECTION = "libs/network"
LICENSE = "GPL"
+PR = "r1"
SRC_URI = "http://www.packetfactory.net/libnet/dist/deprecated/libnet-${PV}.tar.gz \
- file://configure.patch;patch=1"
+ file://configure.patch;patch=1 \
+ file://configure.uclibc.patch;patch=1 \
+ "
S = "${WORKDIR}/Libnet-${PV}"
inherit autotools
@@ -15,7 +18,7 @@ CPPFLAGS_prepend = "-I${S}/libnet/include -DHAVE_PF_PACKET "
EXTRA_OEMAKE = "'LIB_PREFIX=${libdir}/' 'MAN_PREFIX=${mandir}/' \
'BIN_PREFIX=${bindir}/' 'INC_PREFIX=${includedir}/'"
-#FIXME:
+#FIXME: (fixing this would remove the need for configure.uclibc.patch above)
do_configure() {
oe_runconf
}