Name libnftnl
Description Netfilter library providing interface to the nf_tables subsystem
Version 1.2.9-r0
Package Base libnftnl
Homepage https://netfilter.org/projects/libnftnl
Maintainers ['Jakub Jirutka <jakub@jirutka.cz>']
Contributors ['Sören Tempel <soeren+alpine@soeren-tempel.net>']
Distro-repo https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/main/libnftnl
Sources ['https://netfilter.org/projects/libnftnl/files/libnftnl-1.2.9-r0.tar.xz']
Dependencies ['libc.musl-x86_64.so.1', 'libmnl.so.0']
Optional-Dependencies []
Build-Dependencies ['bash', 'jansson-dev', 'libmnl-dev']
Provides ['libnftnl-libs=1.2.9-r0', 'so:libnftnl.so.11=11.6.0']
Builddate 18-04-2025 19:15:58
Architecture x86_64
Distro-Version v3.22
Licenses ['GPL-2.0-or-later']
Hash Q10dhTpx6CGDe2IvNU1dD04ubSPBw=
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=libnftnl
pkgver=1.2.9
pkgrel=0
pkgdesc="Netfilter library providing interface to the nf_tables subsystem"
url="https://netfilter.org/projects/libnftnl"
arch="all"
license="GPL-2.0-or-later"
makedepends="bash jansson-dev libmnl-dev"
provides="$pkgname-libs=$pkgver-r$pkgrel"  # for backward compatibility (Alpine <3.15)
replaces="$pkgname-libs"  # for backward compatibility (Alpine <3.15)
subpackages="$pkgname-dev"
source="https://netfilter.org/projects/libnftnl/files/libnftnl-$pkgver.tar.xz"

case "$CARCH" in
	s390x) options="!check" ;; # FIXME
esac

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-static
	make
}

check() {
	cd tests
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
48f6a3e67ad368340690bed2c8db8d0fab5528f23bc9cf3f5f6dca81c90db340b526d7dbeff1fb59989337e80d3b16cf02443e2a2d5c07b54c8963d2bf4c56e3  libnftnl-1.2.9.tar.xz
"