42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'nftables'
|
|
pkgname=nftables
|
|
version=1.0.4
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--sbindir=/usr/bin --with-json --with-python-bin=/bin/python3
|
|
--with-cli=readline"
|
|
hostmakedepends="python3 asciidoc docbook2x flex pkg-config automake libtool"
|
|
makedepends="gmp-devel jansson-devel libmnl-devel libnftnl-devel readline-devel"
|
|
short_desc="Netfilter nftables userspace tools"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://netfilter.org/projects/nftables/"
|
|
distfiles="http://www.netfilter.org/projects/${pkgname}/files/${pkgname}-${version}.tar.bz2"
|
|
checksum=927fb1fea1f685a328c10cf791eb655d7e1ed49d310eea5cb3101dfd8d6cba35
|
|
|
|
post_extract() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
vsv nftables
|
|
}
|
|
|
|
libnftables_package() {
|
|
short_desc+=" - runtime libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
libnftables-devel_package() {
|
|
depends="libnftables-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|