1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-06-25 20:50:13 +02:00
build/pkg/nftables/build
David Oberhollenzer 74ea27e37c Bump nftables version
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-05-08 15:01:23 +02:00

31 lines
729 B
Plaintext

VERSION="0.8.4"
SRCDIR="nftables-${VERSION}"
TARBALL="${SRCDIR}.tar.bz2"
URL="https://netfilter.org/projects/nftables/files"
SHA256SUM="ef372ee4592b07852f4cac233584ead7cbd08fa3041b2d3ff3d3590c8d76769f"
DEPENDS="libmnl libnftnl gmp readline ncurses"
prepare() {
return
}
build() {
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
--disable-debug --disable-man-doc --without-mini-gmp
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip
}
check_update() {
curl --silent -L "$URL" | grep -o ">nftables-[0-9.]*tar.bz2<" | \
sed 's/>nftables-//g' | sed 's/.tar.bz2<//g' | grep -v 0.099 |\
verson_find_greatest "$VERSION"
}