summaryrefslogtreecommitdiff
path: root/extra/libnl1
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-24 23:15:21 +0000
committerroot <root@rshg054.dnsready.net>2012-02-24 23:15:21 +0000
commit299e917c17619f800f0c21cf43209065b608223f (patch)
treee175a7bbdb5d933670f10b09f1cc52ece45ced87 /extra/libnl1
parentd466ef49f224a9347fe0375eac8126725e10a0a4 (diff)
Fri Feb 24 23:15:21 UTC 2012
Diffstat (limited to 'extra/libnl1')
-rw-r--r--extra/libnl1/PKGBUILD28
-rw-r--r--extra/libnl1/fix-compilation.patch10
2 files changed, 38 insertions, 0 deletions
diff --git a/extra/libnl1/PKGBUILD b/extra/libnl1/PKGBUILD
new file mode 100644
index 000000000..6d35c216d
--- /dev/null
+++ b/extra/libnl1/PKGBUILD
@@ -0,0 +1,28 @@
+# $Id: PKGBUILD 150908 2012-02-23 13:56:22Z heftig $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Contributor: William Rea <sillywilly@gmail.com>
+
+pkgname=libnl1
+pkgver=1.1
+pkgrel=1
+pkgdesc="Library for applications dealing with netlink sockets (Legacy version)"
+arch=('i686' 'x86_64')
+url="http://www.infradead.org/~tgr/libnl/"
+license=('GPL')
+depends=('glibc')
+source=("http://www.infradead.org/~tgr/libnl/files/libnl-${pkgver}.tar.gz"
+ 'fix-compilation.patch')
+md5sums=('ae970ccd9144e132b68664f98e7ceeb1'
+ 'e1f5e82c8aa1b3ad025c7b588178de1e')
+
+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
+}
diff --git a/extra/libnl1/fix-compilation.patch b/extra/libnl1/fix-compilation.patch
new file mode 100644
index 000000000..891562a39
--- /dev/null
+++ b/extra/libnl1/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>