diff --git a/srcpkgs/nftables/patches/destdir.patch b/srcpkgs/nftables/patches/destdir.patch new file mode 100644 index 00000000000..852ba96518d --- /dev/null +++ b/srcpkgs/nftables/patches/destdir.patch @@ -0,0 +1,14 @@ +Else setuptools installs an .egg directory, this way it installs +nftables/ and nftables-*-egg.info/ + +--- a/py/Makefile.am ++++ b/py/Makefile.am +@@ -7,7 +7,7 @@ + install-exec-local: + cd $(srcdir) && \ + $(PYTHON_BIN) setup.py build --build-base $(abs_builddir) \ +- install --prefix $(DESTDIR)$(prefix) ++ install --prefix $(prefix) --root $(DESTDIR) + + uninstall-local: + rm -rf $(DESTDIR)$(prefix)/lib*/python*/site-packages/nftables diff --git a/srcpkgs/nftables/template b/srcpkgs/nftables/template index 038e9b9d943..e22441ca30c 100644 --- a/srcpkgs/nftables/template +++ b/srcpkgs/nftables/template @@ -1,18 +1,19 @@ # Template file for 'nftables' pkgname=nftables -version=1.0.7 +version=1.0.8 revision=1 build_style=gnu-configure configure_args="--sbindir=/usr/bin --with-json --with-python-bin=/bin/python3 --with-cli=readline" -hostmakedepends="python3 asciidoc docbook2x flex pkg-config automake libtool" +hostmakedepends="asciidoc automake docbook2x flex libtool pkg-config + python3 python3-setuptools" makedepends="gmp-devel jansson-devel libmnl-devel libnftnl-devel readline-devel" short_desc="Netfilter nftables userspace tools" maintainer="Leah Neukirchen " license="GPL-2.0-only" homepage="http://netfilter.org/projects/nftables/" distfiles="http://www.netfilter.org/projects/${pkgname}/files/${pkgname}-${version}.tar.xz" -checksum=c12ac941fff9adaedf17367d5ce213789b98a0d314277bc22b3d71e10891f412 +checksum=9373740de41a82dbc98818e0a46a073faeb8a8d0689fa4fa1a74399c32bf3d50 post_extract() { autoreconf -fi