1 # Maintainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
7 pkgdesc='Netfilter tables userspace tools'
9 url='https://netfilter.org/projects/nftables/'
11 depends=('libmnl' 'libnftnl' 'gmp' 'readline' 'ncurses' 'jansson')
12 optdepends=('python: Python bindings')
13 makedepends=('asciidoc' 'python')
14 backup=('etc/nftables.conf')
15 validpgpkeys=('37D964ACC04981C75500FB9BD55D978A8A1420E4') # Netfilter Core Team
16 source=("https://netfilter.org/projects/nftables/files/nftables-$pkgver.tar.bz2"{,.sig}
19 install=nftables.install
20 sha256sums=('927fb1fea1f685a328c10cf791eb655d7e1ed49d310eea5cb3101dfd8d6cba35'
22 '2aff88019097d21dbfa4713f5b54c184751c86376e458b683f8d90f3abd232a8'
23 'deffeef36fe658867dd9203ec13dec85047a6d224ea63334dcf60db97e1809ea')
27 # apply patch from the source array (should be a pacman feature)
29 for src in "${source[@]}"; do
32 [[ $src = *.patch ]] || continue
33 msg2 "Applying patch $src..."
34 patch -Np1 < "../$src"
41 autoreconf -fi #FIXME: To remove with 01.patch
45 --sysconfdir=/usr/share \
53 pushd $pkgname-$pkgver
54 make DESTDIR="$pkgdir" install
56 # basic safe firewall config
57 install -Dm644 nftables.conf "$pkgdir/etc/nftables.conf"
59 install -Dm644 nftables.service "$pkgdir/usr/lib/systemd/system/nftables.service"
62 # vim:set ts=2 sw=2 et: