summaryrefslogtreecommitdiff
path: root/packages/libnl
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2007-01-28 16:14:43 +0000
committerPhil Blundell <philb@gnu.org>2007-01-28 16:14:43 +0000
commit25fd37ef987368dd32eba359273c5af98158a364 (patch)
tree5f2320dd99ebfb6fd219bd57a9395ebddeee6537 /packages/libnl
parentb099d3ec077475cf9e24c271fdbd4c1ddbbb70b1 (diff)
parent6baa6c1f96b3137abdaf5d50af955115844197ae (diff)
merge of '7a32604865cb7ad63fbc7f14acda9e02229b44b5'
and '9ab9482d0ea26dbc9267d10e1eb42cc1a7546b6b'
Diffstat (limited to 'packages/libnl')
-rw-r--r--packages/libnl/files/fix-helpers.patch49
-rw-r--r--packages/libnl/files/libnl-0.5.0-include.diff10
-rw-r--r--packages/libnl/libnl_0.5.0.bb11
3 files changed, 70 insertions, 0 deletions
diff --git a/packages/libnl/files/fix-helpers.patch b/packages/libnl/files/fix-helpers.patch
new file mode 100644
index 0000000000..b6a6ff8509
--- /dev/null
+++ b/packages/libnl/files/fix-helpers.patch
@@ -0,0 +1,49 @@
+Index: libnl-0.5.0/lib/helpers.c
+===================================================================
+--- libnl-0.5.0.orig/lib/helpers.c
++++ libnl-0.5.0/lib/helpers.c
+@@ -29,6 +29,7 @@
+ #include <netlink/netlink.h>
+ #include <netlink/helpers.h>
+ #include <linux/socket.h>
++#include <linux/if_ether.h>
+
+ int nl_debug = 0;
+
+Index: libnl-0.5.0/lib/route/filter.c
+===================================================================
+--- libnl-0.5.0.orig/lib/route/filter.c
++++ libnl-0.5.0/lib/route/filter.c
+@@ -40,6 +40,7 @@
+ #include <netlink/route/filter.h>
+ #include <netlink/route/link.h>
+ #include <netlink/route/rtattr.h>
++#include <linux/if_ether.h>
+
+ static struct rtnl_filter_ops *filter_ops;
+
+Index: libnl-0.5.0/lib/Makefile
+===================================================================
+--- libnl-0.5.0.orig/lib/Makefile
++++ libnl-0.5.0/lib/Makefile
+@@ -68,7 +68,7 @@ distclean:
+
+ install:
+ mkdir -p $(DESTDIR)$(prefix)/lib/
+- install -o root -g root -m 0644 $(OUT_SLIB) $(DESTDIR)$(prefix)/lib
++ install -m 0644 $(OUT_SLIB) $(DESTDIR)$(prefix)/lib
+ rm -f $(DESTDIR)$(prefix)/lib/$(LN1_SLIB) ; \
+ $(LN) -s $(DESTDIR)$(prefix)/lib/$(OUT_SLIB) $(DESTDIR)$(prefix)/lib/$(LN1_SLIB)
+ rm -f $(DESTDIR)$(prefix)/lib/$(LN_SLIB) ; \
+Index: libnl-0.5.0/include/Makefile
+===================================================================
+--- libnl-0.5.0.orig/include/Makefile
++++ libnl-0.5.0/include/Makefile
+@@ -37,5 +37,5 @@ distclean:
+
+ install:
+ mkdir -p $(DESTDIR)$(prefix)/include/netlink/route/
+- install -o root -g root -m 0644 netlink/*.h $(DESTDIR)$(prefix)/include/netlink/
+- install -o root -g root -m 0644 netlink/route/*.h $(DESTDIR)$(prefix)/include/netlink/route/
++ install -m 0644 netlink/*.h $(DESTDIR)$(prefix)/include/netlink/
++ install -m 0644 netlink/route/*.h $(DESTDIR)$(prefix)/include/netlink/route/
diff --git a/packages/libnl/files/libnl-0.5.0-include.diff b/packages/libnl/files/libnl-0.5.0-include.diff
new file mode 100644
index 0000000000..f858953c8a
--- /dev/null
+++ b/packages/libnl/files/libnl-0.5.0-include.diff
@@ -0,0 +1,10 @@
+--- libnl-0.5.0.orig/include/netlink/route/tc.h 2005-09-08 19:13:15.000000000 -0300
++++ libnl-0.5.0/include/netlink/route/tc.h 2005-09-08 19:32:33.000000000 -0300
+@@ -24,6 +24,7 @@
+ #include <netlink/netlink.h>
+ #include <netlink/cache.h>
+ #include <netlink/data.h>
++#include <linux/pkt_sched.h>
+
+ #define TCA_HAS_HANDLE 0x001
+ #define TCA_HAS_PARENT 0x002
diff --git a/packages/libnl/libnl_0.5.0.bb b/packages/libnl/libnl_0.5.0.bb
new file mode 100644
index 0000000000..5d1e8d3fc0
--- /dev/null
+++ b/packages/libnl/libnl_0.5.0.bb
@@ -0,0 +1,11 @@
+DESCRIPTION = "Netlink library"
+HOMEPAGE = "http://people.suug.ch/~tgr/libnl/"
+SECTION = "libraries/network"
+LICENSE = "GPLv2.1"
+PR = "r0"
+
+SRC_URI = "http://people.suug.ch/~tgr/libnl/files/libnl-0.5.0.tar.gz \
+ file://libnl-0.5.0-include.diff;patch=1 \
+ file://fix-helpers.patch;patch=1"
+
+inherit autotools