mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-21 06:36:45 +02:00
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
# 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
|
|
"
|