/
package.yml
49 lines (46 loc) · 1.53 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name : nftables
version : 1.0.9
release : 8
source :
- https://www.netfilter.org/projects/nftables/files/nftables-1.0.9.tar.xz : a3c304cd9ba061239ee0474f9afb938a9bb99d89b960246f66f0c3a0a85e14cd
license : GPL-2.0-only
component :
- security
- ^python-nftables : programming.python
homepage : https://www.nftables.org/
summary : nftables replaces the popular iptables/ebtables
description: |
This software provides a new in-kernel packet classification framework that is based on a network-specific Virtual Machine (VM) and a new nft userspace command line tool
builddeps :
- pkgconfig(jansson)
- pkgconfig(libmnl)
- pkgconfig(libnftnl)
- pkgconfig(python3)
- docbook2x
- python-build
- python-installer
- python-wheel
rundeps :
- ^python-nftables:
- nftables
clang : yes
optimize : thin-lto
setup : |
%patch -p1 -i $pkgfiles/0001-Stateless.patch
%reconfigure \
--disable-debug \
--disable-python \
--disable-static \
--with-json \
--with-cli=readline
build : |
%make
cd py
python3 -m build --wheel --no-isolation
install : |
%make_install
python3 -m installer --destdir="$installdir" py/dist/*.whl
install -Dm00644 $pkgfiles/nftables.conf $installdir/usr/share/defaults/etc/nftables.conf
install -Dm00644 $pkgfiles/nftables.service $installdir/usr/lib/systemd/system/nftables.service
patterns :
- ^python-nftables : /usr/lib/python*