diff options
Diffstat (limited to 'extra/libnl')
-rw-r--r-- | extra/libnl/.footprint.i686 | 63 | ||||
-rw-r--r-- | extra/libnl/.footprint.x86_64 | 63 | ||||
-rw-r--r-- | extra/libnl/.md5sum.i686 | 3 | ||||
-rw-r--r-- | extra/libnl/.md5sum.x86_64 | 3 | ||||
-rw-r--r-- | extra/libnl/Pkgfile | 24 | ||||
-rw-r--r-- | extra/libnl/libnl-1-1-vlan-header.patch | 80 | ||||
-rw-r--r-- | extra/libnl/libnl-1.1-fix-compilation.patch | 10 |
7 files changed, 246 insertions, 0 deletions
diff --git a/extra/libnl/.footprint.i686 b/extra/libnl/.footprint.i686 new file mode 100644 index 000000000..82977baeb --- /dev/null +++ b/extra/libnl/.footprint.i686 @@ -0,0 +1,63 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/netlink/ +-rw-r--r-- root/root usr/include/netlink/addr.h +-rw-r--r-- root/root usr/include/netlink/attr.h +-rw-r--r-- root/root usr/include/netlink/cache-api.h +-rw-r--r-- root/root usr/include/netlink/cache.h +-rw-r--r-- root/root usr/include/netlink/data.h +drwxr-xr-x root/root usr/include/netlink/fib_lookup/ +-rw-r--r-- root/root usr/include/netlink/fib_lookup/lookup.h +-rw-r--r-- root/root usr/include/netlink/fib_lookup/request.h +drwxr-xr-x root/root usr/include/netlink/genl/ +-rw-r--r-- root/root usr/include/netlink/genl/ctrl.h +-rw-r--r-- root/root usr/include/netlink/genl/family.h +-rw-r--r-- root/root usr/include/netlink/genl/genl.h +-rw-r--r-- root/root usr/include/netlink/genl/mngt.h +-rw-r--r-- root/root usr/include/netlink/handlers.h +-rw-r--r-- root/root usr/include/netlink/list.h +-rw-r--r-- root/root usr/include/netlink/msg.h +-rw-r--r-- root/root usr/include/netlink/netlink-compat.h +-rw-r--r-- root/root usr/include/netlink/netlink-kernel.h +-rw-r--r-- root/root usr/include/netlink/netlink.h +-rw-r--r-- root/root usr/include/netlink/object-api.h +-rw-r--r-- root/root usr/include/netlink/object.h +drwxr-xr-x root/root usr/include/netlink/route/ +-rw-r--r-- root/root usr/include/netlink/route/addr.h +-rw-r--r-- root/root usr/include/netlink/route/class-modules.h +-rw-r--r-- root/root usr/include/netlink/route/class.h +-rw-r--r-- root/root usr/include/netlink/route/classifier-modules.h +-rw-r--r-- root/root usr/include/netlink/route/classifier.h +drwxr-xr-x root/root usr/include/netlink/route/cls/ +-rw-r--r-- root/root usr/include/netlink/route/cls/fw.h +-rw-r--r-- root/root usr/include/netlink/route/cls/police.h +-rw-r--r-- root/root usr/include/netlink/route/cls/u32.h +-rw-r--r-- root/root usr/include/netlink/route/link.h +-rw-r--r-- root/root usr/include/netlink/route/neighbour.h +-rw-r--r-- root/root usr/include/netlink/route/neightbl.h +-rw-r--r-- root/root usr/include/netlink/route/nexthop.h +-rw-r--r-- root/root usr/include/netlink/route/qdisc-modules.h +-rw-r--r-- root/root usr/include/netlink/route/qdisc.h +-rw-r--r-- root/root usr/include/netlink/route/route.h +-rw-r--r-- root/root usr/include/netlink/route/rtnl.h +-rw-r--r-- root/root usr/include/netlink/route/rule.h +drwxr-xr-x root/root usr/include/netlink/route/sch/ +-rw-r--r-- root/root usr/include/netlink/route/sch/cbq.h +-rw-r--r-- root/root usr/include/netlink/route/sch/dsmark.h +-rw-r--r-- root/root usr/include/netlink/route/sch/fifo.h +-rw-r--r-- root/root usr/include/netlink/route/sch/htb.h +-rw-r--r-- root/root usr/include/netlink/route/sch/netem.h +-rw-r--r-- root/root usr/include/netlink/route/sch/prio.h +-rw-r--r-- root/root usr/include/netlink/route/sch/red.h +-rw-r--r-- root/root usr/include/netlink/route/sch/sfq.h +-rw-r--r-- root/root usr/include/netlink/route/sch/tbf.h +-rw-r--r-- root/root usr/include/netlink/route/tc.h +-rw-r--r-- root/root usr/include/netlink/socket.h +-rw-r--r-- root/root usr/include/netlink/types.h +-rw-r--r-- root/root usr/include/netlink/utils.h +drwxr-xr-x root/root usr/lib/ +lrwxrwxrwx root/root usr/lib/libnl.so -> libnl.so.1 +lrwxrwxrwx root/root usr/lib/libnl.so.1 -> libnl.so.1.1 +-rw-r--r-- root/root usr/lib/libnl.so.1.1 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/libnl-1.pc diff --git a/extra/libnl/.footprint.x86_64 b/extra/libnl/.footprint.x86_64 new file mode 100644 index 000000000..82977baeb --- /dev/null +++ b/extra/libnl/.footprint.x86_64 @@ -0,0 +1,63 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/netlink/ +-rw-r--r-- root/root usr/include/netlink/addr.h +-rw-r--r-- root/root usr/include/netlink/attr.h +-rw-r--r-- root/root usr/include/netlink/cache-api.h +-rw-r--r-- root/root usr/include/netlink/cache.h +-rw-r--r-- root/root usr/include/netlink/data.h +drwxr-xr-x root/root usr/include/netlink/fib_lookup/ +-rw-r--r-- root/root usr/include/netlink/fib_lookup/lookup.h +-rw-r--r-- root/root usr/include/netlink/fib_lookup/request.h +drwxr-xr-x root/root usr/include/netlink/genl/ +-rw-r--r-- root/root usr/include/netlink/genl/ctrl.h +-rw-r--r-- root/root usr/include/netlink/genl/family.h +-rw-r--r-- root/root usr/include/netlink/genl/genl.h +-rw-r--r-- root/root usr/include/netlink/genl/mngt.h +-rw-r--r-- root/root usr/include/netlink/handlers.h +-rw-r--r-- root/root usr/include/netlink/list.h +-rw-r--r-- root/root usr/include/netlink/msg.h +-rw-r--r-- root/root usr/include/netlink/netlink-compat.h +-rw-r--r-- root/root usr/include/netlink/netlink-kernel.h +-rw-r--r-- root/root usr/include/netlink/netlink.h +-rw-r--r-- root/root usr/include/netlink/object-api.h +-rw-r--r-- root/root usr/include/netlink/object.h +drwxr-xr-x root/root usr/include/netlink/route/ +-rw-r--r-- root/root usr/include/netlink/route/addr.h +-rw-r--r-- root/root usr/include/netlink/route/class-modules.h +-rw-r--r-- root/root usr/include/netlink/route/class.h +-rw-r--r-- root/root usr/include/netlink/route/classifier-modules.h +-rw-r--r-- root/root usr/include/netlink/route/classifier.h +drwxr-xr-x root/root usr/include/netlink/route/cls/ +-rw-r--r-- root/root usr/include/netlink/route/cls/fw.h +-rw-r--r-- root/root usr/include/netlink/route/cls/police.h +-rw-r--r-- root/root usr/include/netlink/route/cls/u32.h +-rw-r--r-- root/root usr/include/netlink/route/link.h +-rw-r--r-- root/root usr/include/netlink/route/neighbour.h +-rw-r--r-- root/root usr/include/netlink/route/neightbl.h +-rw-r--r-- root/root usr/include/netlink/route/nexthop.h +-rw-r--r-- root/root usr/include/netlink/route/qdisc-modules.h +-rw-r--r-- root/root usr/include/netlink/route/qdisc.h +-rw-r--r-- root/root usr/include/netlink/route/route.h +-rw-r--r-- root/root usr/include/netlink/route/rtnl.h +-rw-r--r-- root/root usr/include/netlink/route/rule.h +drwxr-xr-x root/root usr/include/netlink/route/sch/ +-rw-r--r-- root/root usr/include/netlink/route/sch/cbq.h +-rw-r--r-- root/root usr/include/netlink/route/sch/dsmark.h +-rw-r--r-- root/root usr/include/netlink/route/sch/fifo.h +-rw-r--r-- root/root usr/include/netlink/route/sch/htb.h +-rw-r--r-- root/root usr/include/netlink/route/sch/netem.h +-rw-r--r-- root/root usr/include/netlink/route/sch/prio.h +-rw-r--r-- root/root usr/include/netlink/route/sch/red.h +-rw-r--r-- root/root usr/include/netlink/route/sch/sfq.h +-rw-r--r-- root/root usr/include/netlink/route/sch/tbf.h +-rw-r--r-- root/root usr/include/netlink/route/tc.h +-rw-r--r-- root/root usr/include/netlink/socket.h +-rw-r--r-- root/root usr/include/netlink/types.h +-rw-r--r-- root/root usr/include/netlink/utils.h +drwxr-xr-x root/root usr/lib/ +lrwxrwxrwx root/root usr/lib/libnl.so -> libnl.so.1 +lrwxrwxrwx root/root usr/lib/libnl.so.1 -> libnl.so.1.1 +-rw-r--r-- root/root usr/lib/libnl.so.1.1 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/libnl-1.pc diff --git a/extra/libnl/.md5sum.i686 b/extra/libnl/.md5sum.i686 new file mode 100644 index 000000000..30941e540 --- /dev/null +++ b/extra/libnl/.md5sum.i686 @@ -0,0 +1,3 @@ +d757127e7af3bd3c82cdb51b1b09d2e0 libnl-1-1-vlan-header.patch +e1f5e82c8aa1b3ad025c7b588178de1e libnl-1.1-fix-compilation.patch +ae970ccd9144e132b68664f98e7ceeb1 libnl-1.1.tar.gz diff --git a/extra/libnl/.md5sum.x86_64 b/extra/libnl/.md5sum.x86_64 new file mode 100644 index 000000000..30941e540 --- /dev/null +++ b/extra/libnl/.md5sum.x86_64 @@ -0,0 +1,3 @@ +d757127e7af3bd3c82cdb51b1b09d2e0 libnl-1-1-vlan-header.patch +e1f5e82c8aa1b3ad025c7b588178de1e libnl-1.1-fix-compilation.patch +ae970ccd9144e132b68664f98e7ceeb1 libnl-1.1.tar.gz diff --git a/extra/libnl/Pkgfile b/extra/libnl/Pkgfile new file mode 100644 index 000000000..5736cc7dc --- /dev/null +++ b/extra/libnl/Pkgfile @@ -0,0 +1,24 @@ +# Description: Librairie pour des application utilisants des sockets +# URL: http://people.suug.ch/~tgr/libnl +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: + +name=libnl +version=1.1 +release=2 +source=(http://www.infradead.org/~tgr/$name/files/$name-$version.tar.gz + libnl-1-1-vlan-header.patch + libnl-1.1-fix-compilation.patch) + +build() { + cd $name-$version + patch -Np1 -i ../libnl-1.1-fix-compilation.patch +# patch -Np1 -i ../libnl-1-1-vlan-header.patch + + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + mkdir -p $PKG/usr/include/netlink +# cp -a include/netlink/cli $PKG/usr/include/netlink/cli +} diff --git a/extra/libnl/libnl-1-1-vlan-header.patch b/extra/libnl/libnl-1-1-vlan-header.patch new file mode 100644 index 000000000..c4c2fc638 --- /dev/null +++ b/extra/libnl/libnl-1-1-vlan-header.patch @@ -0,0 +1,80 @@ +From: Patrick McHardy <kaber@trash.net> +Date: Fri, 18 Jan 2008 16:55:48 +0000 (+0100) +Subject: [LIBNL]: Add if_vlan.h +X-Git-Url: http://git.kernel.org/?p=libs%2Fnetlink%2Flibnl.git;a=commitdiff_plain;h=e91bb2ffb090955d443e643a25b250bf3d33534a;hp=7f6b7a8eea0334b34d58dec72c66121a76f08958 + +[LIBNL]: Add if_vlan.h + +vlan support needs VLAN_FLAG_REORDER_HDR, which is not available in +older if_vlan.h versions. Add the current version from the kernel. + +Signed-off-by: Patrick McHardy <kaber@trash.net> +--- + +diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h +new file mode 100644 +index 0000000..068cd7b +--- /dev/null ++++ include/linux/if_vlan.h +@@ -0,0 +1,61 @@ ++/* ++ * VLAN An implementation of 802.1Q VLAN tagging. ++ * ++ * Authors: Ben Greear <greearb@candelatech.com> ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License ++ * as published by the Free Software Foundation; either version ++ * 2 of the License, or (at your option) any later version. ++ * ++ */ ++ ++#ifndef _LINUX_IF_VLAN_H_ ++#define _LINUX_IF_VLAN_H_ ++ ++ ++/* VLAN IOCTLs are found in sockios.h */ ++ ++/* Passed in vlan_ioctl_args structure to determine behaviour. */ ++enum vlan_ioctl_cmds { ++ ADD_VLAN_CMD, ++ DEL_VLAN_CMD, ++ SET_VLAN_INGRESS_PRIORITY_CMD, ++ SET_VLAN_EGRESS_PRIORITY_CMD, ++ GET_VLAN_INGRESS_PRIORITY_CMD, ++ GET_VLAN_EGRESS_PRIORITY_CMD, ++ SET_VLAN_NAME_TYPE_CMD, ++ SET_VLAN_FLAG_CMD, ++ GET_VLAN_REALDEV_NAME_CMD, /* If this works, you know it's a VLAN device, btw */ ++ GET_VLAN_VID_CMD /* Get the VID of this VLAN (specified by name) */ ++}; ++ ++enum vlan_flags { ++ VLAN_FLAG_REORDER_HDR = 0x1, ++}; ++ ++enum vlan_name_types { ++ VLAN_NAME_TYPE_PLUS_VID, /* Name will look like: vlan0005 */ ++ VLAN_NAME_TYPE_RAW_PLUS_VID, /* name will look like: eth1.0005 */ ++ VLAN_NAME_TYPE_PLUS_VID_NO_PAD, /* Name will look like: vlan5 */ ++ VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD, /* Name will look like: eth0.5 */ ++ VLAN_NAME_TYPE_HIGHEST ++}; ++ ++struct vlan_ioctl_args { ++ int cmd; /* Should be one of the vlan_ioctl_cmds enum above. */ ++ char device1[24]; ++ ++ union { ++ char device2[24]; ++ int VID; ++ unsigned int skb_priority; ++ unsigned int name_type; ++ unsigned int bind_type; ++ unsigned int flag; /* Matches vlan_dev_info flags */ ++ } u; ++ ++ short vlan_qos; ++}; ++ ++#endif /* !(_LINUX_IF_VLAN_H_) */ diff --git a/extra/libnl/libnl-1.1-fix-compilation.patch b/extra/libnl/libnl-1.1-fix-compilation.patch new file mode 100644 index 000000000..891562a39 --- /dev/null +++ b/extra/libnl/libnl-1.1-fix-compilation.patch @@ -0,0 +1,10 @@ +--- libnl-1.1.orig/include/netlink-local.h 2008-01-14 16:48:45.000000000 +0100 ++++ libnl-1.1/include/netlink-local.h 2009-06-26 11:15:33.186011844 +0200 +@@ -26,6 +26,7 @@ + #include <sys/socket.h> + #include <inttypes.h> + #include <assert.h> ++#include <limits.h> + + #include <arpa/inet.h> + #include <netdb.h> |