1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-26 04:40:41 +01:00

Add nftables package

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-02-12 03:17:19 +01:00
parent f1460ffc46
commit 3aa370e527
3 changed files with 31 additions and 0 deletions

View file

@ -27,3 +27,4 @@ iana-etc
btrfs-progs btrfs-progs
dosfstools dosfstools
openssh openssh
nftables

View file

@ -31,3 +31,4 @@ btrfs-progs
dosfstools dosfstools
kbd kbd
openssh openssh
nftables

29
pkg/nftables/build Normal file
View file

@ -0,0 +1,29 @@
VERSION="0.8.2"
SRCDIR="nftables-${VERSION}"
TARBALL="${SRCDIR}.tar.bz2"
URL="https://netfilter.org/projects/nftables/files"
SHA256SUM="675f0aaf88f11e7eacef63dc89cb65d207d9e09c3ea6d518f0ebbb013f0767ec"
DEPENDS="libmnl libnftnl gmp readline ncurses"
prepare() {
return
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" --sbindir=/bin \
--disable-debug --disable-man-doc --without-mini-gmp
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
make DESTDIR="$DEPLOY" install-strip
}