1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-06-28 05:50:13 +02:00
build/pkg/nftables/build
David Oberhollenzer c8d01f966a Use pkgtool to resolve and manage dependencies, add sub package support
Been working on this for too long, don't remember the specifics, will add
documentation.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-03 17:47:02 +01:00

30 lines
765 B
Plaintext

VERSION="0.9.0"
SRCDIR="nftables-${VERSION}"
TARBALL="${SRCDIR}.tar.bz2"
URL="https://netfilter.org/projects/nftables/files"
SHA256SUM="ad8181b5fcb9ca572f444bed54018749588522ee97e4c21922648bb78d7e7e91"
DEPENDS="libmnl-dev libnftnl-dev gmp-dev readline-dev ncurses-dev crt-dev"
SUBPKG="nftables nftables-dev"
prepare() {
return
}
build() {
run_configure "$1" --disable-debug --disable-man-doc --without-mini-gmp
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$DEPLOY"
}
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"
}