libnet: add uclibc support in 1.0.2a
authorJohn Bowler <jbowler@nslu2-linux.org>
Fri, 11 Nov 2005 07:16:27 +0000 (07:16 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 11 Nov 2005 07:16:27 +0000 (07:16 +0000)
packages/libnet/libnet-1.0.2a/configure.uclibc.patch [new file with mode: 0644]
packages/libnet/libnet_1.0.2a.bb

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 (file)
index 0000000..809640f
--- /dev/null
@@ -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/'`
+     ;;
index c986bb9..9cfcdf8 100644 (file)
@@ -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
 }