| Name |
nftables |
| Description |
Netfilter tables userspace tools |
| Version |
1:1.1.6-2 |
| Package Base |
nftables |
| Homepage |
https://netfilter.org/projects/nftables/ |
| Maintainers |
['Antonio Rojas <arojas@archlinux.org>', 'Sébastien "Seblu" Luttringer <seblu@archlinux.org>'] |
| Contributors |
[] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/nftables |
| Sources |
['git+https://git.netfilter.org/nftables.git#tag=v1.1.6?signed', 'nftables.conf', 'nftables.service'] |
| Dependencies |
['gmp', 'jansson', 'libmnl', 'libnftnl', 'ncurses', 'readline'] |
| Optional-Dependencies |
['python', 'python-jsonschema'] |
| Build-Dependencies |
['asciidoc', 'python', 'python-setuptools', 'python-build', 'git', 'python-installer', 'python-wheel'] |
| Provides |
[] |
| Builddate |
27-12-2025 19:10:08 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['GPL-2.0-only'] |
| Hash |
2eb80341e8a25382fcf8c6766c5bb8c4efacda9a22bed3f0957a0c91523bc67c |
# Maintainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
pkgname=nftables
epoch=1
pkgver=1.1.6
pkgrel=2
pkgdesc='Netfilter tables userspace tools'
arch=('x86_64')
url='https://netfilter.org/projects/nftables/'
license=('GPL-2.0-only')
depends=('glibc' 'gmp' 'jansson' 'libmnl' 'libnftnl' 'readline')
optdepends=('python: Python bindings'
'python-jsonschema: Python bindings')
makedepends=('asciidoc' 'python' 'python-setuptools' 'python-build'
'git' 'python-installer' 'python-wheel')
backup=('etc/nftables.conf')
validpgpkeys=('8C5F7146A1757A65E2422A94D70D1A666ACF2B21') # Netfilter Core Team
source=("git+https://git.netfilter.org/nftables.git#tag=v${pkgver}?signed"
'nftables.conf'
'nftables.service')
install=nftables.install
sha256sums=('2874c264df80d770d95e2a93f15cddf65ee642fad8977777c12e745bf3eb8d61'
'fa2f984794025339cf2d26d329f9b0bf83a39b9fa310d06b4cc40a0c1b0c8f46'
'deffeef36fe658867dd9203ec13dec85047a6d224ea63334dcf60db97e1809ea')
prepare() {
cd $pkgname
autoreconf -fiv
}
build() {
cd $pkgname
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/usr/share \
--with-json \
--with-cli=readline \
--disable-python \
--disable-debug
make
# Building the Python module separately due to the automatic build resulting
# in an incorrect directory structure and unimportable module (see FS#79229)
cd py
python -m build --wheel --no-isolation
}
package() {
pushd $pkgname
make DESTDIR="$pkgdir" install
python -m installer --destdir="$pkgdir" py/dist/*.whl
popd
# basic safe firewall config
install -Dm644 nftables.conf "$pkgdir/etc/nftables.conf"
# systemd
install -Dm644 nftables.service "$pkgdir/usr/lib/systemd/system/nftables.service"
}