1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-20 12:36:14 +02:00
build/pkg/nftables/build
David Oberhollenzer fa4eff263b Cleanup: implement defaults for package functions
This commit adds an "emptypackage" template that implements defaults
for all package functions and is included before every package.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2020-04-16 15:16:58 +02:00

24 lines
718 B
Plaintext

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