summaryrefslogtreecommitdiff
path: root/community/nftables/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/nftables/PKGBUILD')
-rw-r--r--community/nftables/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/nftables/PKGBUILD b/community/nftables/PKGBUILD
new file mode 100644
index 000000000..622daa693
--- /dev/null
+++ b/community/nftables/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+
+pkgname=nftables
+pkgver=0.099
+pkgrel=2
+pkgdesc='Netfilter nftables userspace tools'
+arch=('i686' 'x86_64')
+url='http://netfilter.org/projects/nftables/'
+license=('GPL2')
+depends=('libmnl' 'libnftnl' 'gmp' 'readline' 'ncurses')
+makedepends=('docbook2x')
+source=("http://netfilter.org/projects/nftables/files/nftables-$pkgver.tar.bz2"{,.sig}
+ '01-fix-nftables-rename.patch'
+ '02-manpages.patch')
+sha1sums=('c8fb650263f68f43498306af36910791871ec1e1'
+ 'SKIP'
+ '38d7c1e4bc8590a549e16a2385af37704460642b'
+ '3ef58d5199b358ceb184307aca3e215c40ce3707')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p 1 -i "$srcdir/01-fix-nftables-rename.patch"
+ patch -p 1 -i "$srcdir/02-manpages.patch"
+ ./autogen.sh
+}
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et: