summaryrefslogtreecommitdiff
path: root/nftables/Pkgfile
blob: 5e58fa658cc72c89d3ebe2b3b38b5a6397d6682a (plain)
    1 # Description: firewalling, NAT, and packet mangling for linux
    2 # URL: https://netfilter.org/projects/nftables/
    3 # Maintainer: CRUX System Team, core-ports at crux dot nu
    4 # Depends on: jansson libedit libgmp libnftnl python3
    5 
    6 name=nftables
    7 version=1.0.5
    8 release=1
    9 source=(https://www.netfilter.org/pub/nftables/nftables-$version.tar.bz2
   10 	nftables.nft nftables.init)
   11 
   12 build() {
   13 	cd $name-$version
   14 
   15 	PYTHON_VERSION=$(python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
   16 
   17 	autoreconf -vfi
   18 
   19 	PYTHON_PATH=/usr/lib/python${PYTHON_VERSION}/site-packages/ \
   20 	./configure \
   21 		--prefix=/usr \
   22 		--sbindir=/usr/bin \
   23 		--sysconfdir=/usr/share \
   24 		--with-cli=readline \
   25 		--with-json \
   26 		--with-python-bin=/usr/bin/python3 \
   27 		--disable-debug
   28 	make
   29 	make DESTDIR=$PKG install
   30 
   31 	/usr/bin/python3 -m compileall -d / $PKG/usr/lib
   32 	/usr/bin/python3 -O -m compileall -d / $PKG/usr/lib
   33 
   34 	install -D -m 755 $SRC/nftables.init $PKG/etc/rc.d/nftables
   35 	install -D -m 600 $SRC/nftables.nft $PKG/etc/nftables.nft
   36 
   37 	rm -r $PKG/usr/share/doc
   38 }

Generated by cgit