]>
Commit | Line | Data |
---|---|---|
f4e8c132 JB |
1 | Summary: Administration tool for packet filtering and classification |
2 | Summary(pl.UTF-8): Narzędzie administracyjne do filtrowania i klasyfikacji pakietów | |
3 | Name: nftables | |
163d1557 | 4 | Version: 0.9.0 |
435e9057 | 5 | Release: 1 |
f4e8c132 JB |
6 | License: GPL v2 |
7 | Group: Applications/Networking | |
4e4aed31 | 8 | Source0: https://netfilter.org/projects/nftables/files/%{name}-%{version}.tar.bz2 |
163d1557 | 9 | # Source0-md5: d4dcb61df80aa544b2e142e91d937635 |
4e4aed31 | 10 | URL: https://netfilter.org/projects/nftables/ |
f4e8c132 | 11 | BuildRequires: autoconf >= 2.61 |
09b93bc2 | 12 | BuildRequires: automake >= 1.6 |
f4e8c132 JB |
13 | BuildRequires: bison |
14 | BuildRequires: dblatex | |
15 | BuildRequires: docbook2X | |
16 | BuildRequires: flex | |
17 | BuildRequires: gmp-devel | |
435e9057 | 18 | BuildRequires: iptables-devel >= 1.6.1 |
163d1557 | 19 | BuildRequires: jansson-devel |
09b93bc2 | 20 | BuildRequires: libmnl-devel >= 1.0.3 |
163d1557 | 21 | BuildRequires: libnftnl-devel >= 1.1.1 |
4e4aed31 | 22 | BuildRequires: libtool |
7be40d4e | 23 | BuildRequires: pkgconfig |
f4e8c132 | 24 | BuildRequires: readline-devel |
435e9057 | 25 | Requires: iptables-libs >= 1.6.1 |
09b93bc2 | 26 | Requires: libmnl >= 1.0.3 |
163d1557 | 27 | Requires: libnftnl >= 1.1.1 |
f4e8c132 JB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | nftables is the project that aims to replace the existing | |
32 | {ip,ip6,arp,eb}tables framework. Basically, this project provides a | |
33 | new packet filtering framework, a new userspace utility and also a | |
34 | compatibility layer for {ip,ip6}tables. nftables is built upon the | |
35 | building blocks of the Netfilter infrastructure such as the existing | |
36 | hooks, the connection tracking system, the userspace queueing | |
37 | component and the logging subsystem. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | nftables to projekt mający na celu zastąpienie istniejącego szkieletu | |
41 | {ip,ip6,arp,eb}tables. Ten projekt przede wszystkim dostarcza nowy | |
42 | szkielet filtrowania, nowe narzędzie linii poleceń oraz warstwę | |
43 | zgodności dla {ip,ip6}tables. nftables jest zbudowane w oparciu o | |
44 | bloki tworzące infrastrukturę Netfilter, takie jak istniejące uchwyty, | |
45 | system śledzenia połączeń, komponent kolejkowania w przestrzeni | |
46 | użytkownika oraz podsystem logowania. | |
47 | ||
163d1557 JB |
48 | %package devel |
49 | Summary: Header file for nftables library | |
50 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki nftables | |
51 | Group: Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | ||
54 | %description devel | |
55 | Header file for nftables library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Plik nagłówkowy biblioteki nftables. | |
59 | ||
60 | %package static | |
61 | Summary: Static nftables library | |
62 | Summary(pl.UTF-8): Statyczna biblioteka nftables | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | Static nftables library. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Statyczna biblioteka nftables. | |
71 | ||
f4e8c132 JB |
72 | %prep |
73 | %setup -q | |
f4e8c132 JB |
74 | |
75 | %build | |
4e4aed31 | 76 | %{__libtoolize} |
09b93bc2 | 77 | %{__aclocal} -I m4 |
f4e8c132 | 78 | %{__autoconf} |
09b93bc2 JB |
79 | %{__autoheader} |
80 | %{__automake} | |
f4e8c132 | 81 | %configure \ |
09b93bc2 | 82 | DOCBOOK2X_MAN=/usr/bin/docbook2X2man \ |
435e9057 | 83 | --disable-silent-rules \ |
163d1557 | 84 | --with-json \ |
435e9057 | 85 | --with-xtables |
f4e8c132 JB |
86 | |
87 | %{__make} | |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %{__make} install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
163d1557 JB |
95 | # obsoleted by pkg-config |
96 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnftables.la | |
97 | ||
f4e8c132 JB |
98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
163d1557 JB |
101 | %post -p /sbin/ldconfig |
102 | %postun -p /sbin/ldconfig | |
103 | ||
f4e8c132 JB |
104 | %files |
105 | %defattr(644,root,root,755) | |
f4e8c132 | 106 | %attr(755,root,root) %{_sbindir}/nft |
163d1557 JB |
107 | %dir %{_sysconfdir}/nftables |
108 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/all-in-one.nft | |
109 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/arp-filter.nft | |
110 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/bridge-filter.nft | |
111 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/inet-filter.nft | |
112 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-filter.nft | |
113 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-mangle.nft | |
114 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-nat.nft | |
115 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-raw.nft | |
116 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-filter.nft | |
117 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-mangle.nft | |
118 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-nat.nft | |
119 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-raw.nft | |
120 | %attr(755,root,root) %{_libdir}/libnftables.so.*.*.* | |
121 | %attr(755,root,root) %ghost %{_libdir}/libnftables.so.0 | |
f4e8c132 | 122 | %{_mandir}/man8/nft.8* |
163d1557 JB |
123 | |
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
126 | %attr(755,root,root) %{_libdir}/libnftables.so | |
127 | %{_includedir}/nftables | |
128 | %{_pkgconfigdir}/libnftables.pc | |
129 | ||
130 | %files static | |
131 | %defattr(644,root,root,755) | |
132 | %{_libdir}/libnftables.a |