summaryrefslogtreecommitdiffstats
path: root/abs/not_built/extra/libnl
diff options
context:
space:
mode:
Diffstat (limited to 'abs/not_built/extra/libnl')
-rw-r--r--abs/not_built/extra/libnl/PKGBUILD28
-rw-r--r--abs/not_built/extra/libnl/fix-compilation.patch10
2 files changed, 38 insertions, 0 deletions
diff --git a/abs/not_built/extra/libnl/PKGBUILD b/abs/not_built/extra/libnl/PKGBUILD
new file mode 100644
index 0000000..8136059
--- /dev/null
+++ b/abs/not_built/extra/libnl/PKGBUILD
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Contributor: William Rea <sillywilly@gmail.com>
+
+pkgname=libnl
+pkgver=1.1
+pkgrel=3
+pkgdesc="Library for applications dealing with netlink sockets"
+arch=('i686' 'x86_64')
+url="http://www.infradead.org/~tgr/libnl/"
+license=('GPL')
+depends=('glibc')
+source=("http://www.infradead.org/~tgr/libnl/files/${pkgname}-${pkgver}.tar.gz"
+ 'fix-compilation.patch')
+
+build() {
+ cd ${srcdir}/libnl-${pkgver}
+ patch -Np1 -i ${srcdir}/fix-compilation.patch
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/libnl-${pkgver}
+ make DESTDIR=${pkgdir} install
+}
+md5sums=('ae970ccd9144e132b68664f98e7ceeb1'
+ '2490289a9edcc5c03802d151bcf3acc4')
diff --git a/abs/not_built/extra/libnl/fix-compilation.patch b/abs/not_built/extra/libnl/fix-compilation.patch
new file mode 100644
index 0000000..92c0696
--- /dev/null
+++ b/abs/not_built/extra/libnl/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>