diff options
Diffstat (limited to 'community/libnftnl')
-rw-r--r-- | community/libnftnl/01-fix-nftables-rename.patch | 36 | ||||
-rw-r--r-- | community/libnftnl/PKGBUILD | 38 |
2 files changed, 74 insertions, 0 deletions
diff --git a/community/libnftnl/01-fix-nftables-rename.patch b/community/libnftnl/01-fix-nftables-rename.patch new file mode 100644 index 000000000..646590701 --- /dev/null +++ b/community/libnftnl/01-fix-nftables-rename.patch @@ -0,0 +1,36 @@ +From 91264d8b8b746f7eee8a3e1ee9b5e57758441cfc Mon Sep 17 00:00:00 2001 +From: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> +Date: Mon, 20 Jan 2014 15:56:21 +0000 +Subject: build: Ensure pkg-config file provides the right informations + +It's not -lnftables anymore but -lnftnl (among other details) + +Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> +Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> +--- +diff --git a/libnftnl.pc.in b/libnftnl.pc.in +index 0c6d57e..fd5cc6a 100644 +--- a/libnftnl.pc.in ++++ b/libnftnl.pc.in +@@ -1,15 +1,15 @@ +-# libnftables pkg-config file ++# libnftnl pkg-config file + + prefix=@prefix@ + exec_prefix=@exec_prefix@ + libdir=@libdir@ + includedir=@includedir@ + +-Name: libnftables ++Name: libnftnl + Description: Netfilter nf_tables infrastructure library +-URL: http://netfilter.org/projects/libnftables/ ++URL: http://netfilter.org/projects/libnftnl/ + Version: @VERSION@ + Requires: + Conflicts: +-Libs: -L${libdir} -lnftables ++Libs: -L${libdir} -lnftnl + Cflags: -I${includedir} +-- +cgit v0.9.2 diff --git a/community/libnftnl/PKGBUILD b/community/libnftnl/PKGBUILD new file mode 100644 index 000000000..127eedf1d --- /dev/null +++ b/community/libnftnl/PKGBUILD @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Sébastien Luttringer + +pkgname=libnftnl +pkgver=1.0.0 +pkgrel=1 +pkgdesc='Netfilter library providing interface to the nf_tables subsystem' +arch=('i686' 'x86_64') +url='http://netfilter.org/projects/libnftnl/' +license=('GPL2') +depends=('libmnl') +source=("http://netfilter.org/projects/libnftnl/files/libnftnl-1.0.0.tar.bz2"{,.sig} + '01-fix-nftables-rename.patch') +sha1sums=('02464d6511f22392c20ca003248d85741ecbc865' + 'SKIP' + 'b406eb6b71b25d2abe559a5643421d42117d9724') + +prepare() { + patch -p 1 -d $pkgname-$pkgver < '01-fix-nftables-rename.patch' +} + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr + make +} + +check() { + cd $pkgname-$pkgver + make check +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: |