summaryrefslogtreecommitdiff
path: root/package/libnl
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/libnl
Initial import
Diffstat (limited to 'package/libnl')
-rw-r--r--package/libnl/Config.in6
-rw-r--r--package/libnl/Makefile27
-rw-r--r--package/libnl/ipkg/libnl.control4
-rw-r--r--package/libnl/patches/patch-include_netlink-types_h19
-rw-r--r--package/libnl/patches/patch-include_netlink_genl_mngt_h19
-rw-r--r--package/libnl/patches/patch-src_nl-list-caches_c11
-rw-r--r--package/libnl/patches/patch-src_utils_c11
-rw-r--r--package/libnl/patches/patch-src_utils_h11
8 files changed, 108 insertions, 0 deletions
diff --git a/package/libnl/Config.in b/package/libnl/Config.in
new file mode 100644
index 000000000..4d5e953a2
--- /dev/null
+++ b/package/libnl/Config.in
@@ -0,0 +1,6 @@
+config ADK_PACKAGE_LIBNL
+ prompt "libnl........................... Tools for manipulating Linux Wireless cards"
+ tristate
+ default n
+ help
+ Tools for configuring Wireless Adapters.
diff --git a/package/libnl/Makefile b/package/libnl/Makefile
new file mode 100644
index 000000000..8e66802ea
--- /dev/null
+++ b/package/libnl/Makefile
@@ -0,0 +1,27 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= libnl
+PKG_VERSION:= 1.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= ae970ccd9144e132b68664f98e7ceeb1
+MASTER_SITES:= http://downloads.openwrt.org/sources/
+
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBNL,libnl,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto confprog
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_LIBNL}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libnl.so* ${IDIR_LIBNL}/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libnl/ipkg/libnl.control b/package/libnl/ipkg/libnl.control
new file mode 100644
index 000000000..8ad5fcce4
--- /dev/null
+++ b/package/libnl/ipkg/libnl.control
@@ -0,0 +1,4 @@
+Package: libnl
+Priority: optional
+Section: net
+Description: Tools for setting up WiFi cards via netlink (nl80211)
diff --git a/package/libnl/patches/patch-include_netlink-types_h b/package/libnl/patches/patch-include_netlink-types_h
new file mode 100644
index 000000000..01d181e28
--- /dev/null
+++ b/package/libnl/patches/patch-include_netlink-types_h
@@ -0,0 +1,19 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libnl-1.1.orig/include/netlink-types.h 2008-01-14 16:48:45.000000000 +0100
++++ libnl-1.1/include/netlink-types.h 2009-04-16 20:16:45.349364825 +0200
+@@ -95,15 +95,6 @@ struct nl_cache_mngr
+
+ struct nl_parser_param;
+
+-struct genl_info
+-{
+- struct sockaddr_nl * who;
+- struct nlmsghdr * nlh;
+- struct genlmsghdr * genlhdr;
+- void * userhdr;
+- struct nlattr ** attrs;
+-};
+-
+ #define LOOSE_FLAG_COMPARISON 1
+
+ #define NL_OBJ_MARK 1
diff --git a/package/libnl/patches/patch-include_netlink_genl_mngt_h b/package/libnl/patches/patch-include_netlink_genl_mngt_h
new file mode 100644
index 000000000..28ba36d23
--- /dev/null
+++ b/package/libnl/patches/patch-include_netlink_genl_mngt_h
@@ -0,0 +1,19 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libnl-1.1.orig/include/netlink/genl/mngt.h 2008-01-14 16:48:45.000000000 +0100
++++ libnl-1.1/include/netlink/genl/mngt.h 2009-04-16 20:16:45.343843731 +0200
+@@ -22,6 +22,15 @@ extern "C" {
+
+ struct nl_cache_ops;
+
++struct genl_info
++{
++ struct sockaddr_nl * who;
++ struct nlmsghdr * nlh;
++ struct genlmsghdr * genlhdr;
++ void * userhdr;
++ struct nlattr ** attrs;
++};
++
+ /**
+ * @ingroup genl_mngt
+ * Generic Netlink Command
diff --git a/package/libnl/patches/patch-src_nl-list-caches_c b/package/libnl/patches/patch-src_nl-list-caches_c
new file mode 100644
index 000000000..cb7c8986c
--- /dev/null
+++ b/package/libnl/patches/patch-src_nl-list-caches_c
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libnl-1.1.orig/src/nl-list-caches.c 2008-01-14 16:48:45.000000000 +0100
++++ libnl-1.1/src/nl-list-caches.c 2009-04-16 20:16:45.349364825 +0200
+@@ -10,6 +10,7 @@
+ */
+
+ #include "utils.h"
++#include <netlink-local.h>
+
+ static void print_usage(void)
+ {
diff --git a/package/libnl/patches/patch-src_utils_c b/package/libnl/patches/patch-src_utils_c
new file mode 100644
index 000000000..05da529a3
--- /dev/null
+++ b/package/libnl/patches/patch-src_utils_c
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libnl-1.1.orig/src/utils.c 2008-01-14 16:48:45.000000000 +0100
++++ libnl-1.1/src/utils.c 2009-04-16 20:16:45.349364825 +0200
+@@ -12,6 +12,7 @@
+ #include "utils.h"
+
+ #include <stdlib.h>
++#include <stdarg.h>
+
+ int nltool_init(int argc, char *argv[])
+ {
diff --git a/package/libnl/patches/patch-src_utils_h b/package/libnl/patches/patch-src_utils_h
new file mode 100644
index 000000000..e19e1e182
--- /dev/null
+++ b/package/libnl/patches/patch-src_utils_h
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libnl-1.1.orig/src/utils.h 2008-01-14 16:48:45.000000000 +0100
++++ libnl-1.1/src/utils.h 2009-04-16 20:16:45.353364776 +0200
+@@ -22,7 +22,6 @@
+ #include <sys/types.h>
+ #include <sys/socket.h>
+
+-#include <netlink-local.h>
+ #include <netlink/netlink.h>
+ #include <netlink/utils.h>
+ #include <netlink/addr.h>