31 lines
719 B
Plaintext
31 lines
719 B
Plaintext
# Description: firewalling, NAT, and packet mangling for linux
|
|
# URL: https://netfilter.org/projects/nftables/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: jansson libedit libgmp libnftnl python3
|
|
|
|
name=nftables
|
|
version=1.0.1
|
|
release=1
|
|
source=(https://www.netfilter.org/pub/nftables/nftables-$version.tar.bz2)
|
|
|
|
build() {
|
|
ls
|
|
cd $name-$version
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sbindir=/usr/bin \
|
|
--sysconfdir=/usr/share \
|
|
--with-json \
|
|
--with-cli=readline \
|
|
--disable-debug \
|
|
--with-python-bin=/usr/bin/python3
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
/usr/bin/python3 -m compileall -d / $PKG/usr/lib
|
|
/usr/bin/python3 -O -m compileall -d / $PKG/usr/lib
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
}
|