diff options
Diffstat (limited to 'source/n/nftables/nftables.SlackBuild')
-rwxr-xr-x | source/n/nftables/nftables.SlackBuild | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/source/n/nftables/nftables.SlackBuild b/source/n/nftables/nftables.SlackBuild index ca860fb5e..2810ce877 100755 --- a/source/n/nftables/nftables.SlackBuild +++ b/source/n/nftables/nftables.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2014, 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2014, 2018, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=nftables VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -88,14 +88,22 @@ LIBS="-lncursesw" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PKGNAM-$VERSION \ - --with-python-bin=python3 \ --with-xtables \ --disable-static \ + --disable-python \ + --with-json \ + --with-cli=readline \ --build=$ARCH-slackware-linux || exit 1 make $NUMJOBS || make || exit 1 make install DESTDIR=$PKG || exit 1 +# Build python module: +( cd py + python3 -m build --wheel --no-isolation || exit 1 + python3 -m installer --destdir="$PKG" dist/*.whl || exit 1 +) || exit 1 + rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \ |