2013-10-21 05:25:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package nftables
|
|
|
|
#
|
2018-01-23 10:31:36 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-10-21 05:25:52 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: nftables
|
2018-01-23 10:31:36 +01:00
|
|
|
Version: 0.8.1
|
2013-10-21 05:25:52 +02:00
|
|
|
Release: 0
|
2014-08-06 07:19:55 +02:00
|
|
|
Summary: Userspace utility to access the nf_tables packet filter
|
2014-08-11 11:22:43 +02:00
|
|
|
License: GPL-2.0
|
2013-10-21 05:25:52 +02:00
|
|
|
Group: Productivity/Networking/Security
|
2015-05-24 01:09:40 +02:00
|
|
|
Url: http://netfilter.org/projects/nftables/
|
2015-09-17 23:30:41 +02:00
|
|
|
|
2017-10-13 10:47:37 +02:00
|
|
|
#Git-Clone: git://git.netfilter.org/nftables
|
2014-12-16 02:29:20 +01:00
|
|
|
Source: http://ftp.netfilter.org/pub/nftables/nftables-%version.tar.bz2
|
|
|
|
Source2: http://ftp.netfilter.org/pub/nftables/nftables-%version.tar.bz2.sig
|
2013-10-21 05:25:52 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-01-13 10:05:59 +01:00
|
|
|
BuildRequires: bison
|
2014-06-27 19:08:44 +02:00
|
|
|
BuildRequires: dblatex
|
2014-08-06 08:44:12 +02:00
|
|
|
BuildRequires: docbook2x
|
2014-01-13 10:05:59 +01:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gmp-devel
|
2018-01-23 10:31:36 +01:00
|
|
|
BuildRequires: pkg-config >= 0.21
|
2014-01-13 10:05:59 +01:00
|
|
|
BuildRequires: readline-devel
|
2014-06-27 19:08:44 +02:00
|
|
|
BuildRequires: xsltproc
|
2014-12-16 02:29:20 +01:00
|
|
|
BuildRequires: pkgconfig(libmnl) >= 1.0.3
|
2018-01-23 10:31:36 +01:00
|
|
|
BuildRequires: pkgconfig(libnftnl) >= 1.0.9
|
2016-12-21 00:38:39 +01:00
|
|
|
BuildRequires: pkgconfig(xtables) >= 1.6.0
|
2013-10-21 05:25:52 +02:00
|
|
|
|
|
|
|
%description
|
2014-01-21 00:28:30 +01:00
|
|
|
nf_tables is the new firewalling infrastructure in the Linux kernel,
|
|
|
|
intended to replace ip_tables, ip6_tables, arp_tables and ebtables in
|
|
|
|
the long term. nftables is the corresponsing userspace frontend,
|
|
|
|
replacing their respective userspace utilities.
|
2015-05-24 01:09:40 +02:00
|
|
|
|
2014-01-21 00:28:30 +01:00
|
|
|
nftables features native support for sets and dictionaries of
|
|
|
|
arbitrary types, support for many different protocols, meta data
|
|
|
|
types, connection tracking, NAT, logging, atomic incremental and full
|
|
|
|
ruleset updates.
|
2013-10-21 05:25:52 +02:00
|
|
|
|
|
|
|
%prep
|
2014-12-16 02:29:20 +01:00
|
|
|
%setup -q
|
2013-10-21 05:25:52 +02:00
|
|
|
|
|
|
|
%build
|
2014-08-06 08:44:12 +02:00
|
|
|
mkdir bin
|
|
|
|
ln -s "%_bindir/docbook-to-man" bin/docbook2x-man
|
|
|
|
export PATH="$PATH:$PWD/bin"
|
2014-12-16 02:29:20 +01:00
|
|
|
mkdir obj
|
|
|
|
pushd obj/
|
|
|
|
%define _configure ../configure
|
2015-05-24 01:09:40 +02:00
|
|
|
%configure --disable-silent-rules --docdir="%_docdir/%name"
|
2013-10-21 05:25:52 +02:00
|
|
|
make %{?_smp_mflags}
|
2014-12-16 02:29:20 +01:00
|
|
|
popd
|
2013-10-21 05:25:52 +02:00
|
|
|
|
|
|
|
%install
|
2014-06-27 19:08:44 +02:00
|
|
|
b="%buildroot"
|
2014-12-16 02:29:20 +01:00
|
|
|
%make_install -C obj
|
2018-01-23 10:31:36 +01:00
|
|
|
rm -f "%buildroot/%_libdir/pkgconfig"/*.pc
|
2013-10-21 05:25:52 +02:00
|
|
|
|
2014-12-16 02:29:20 +01:00
|
|
|
%files
|
2013-10-21 05:25:52 +02:00
|
|
|
%defattr(-,root,root)
|
2014-01-13 10:07:15 +01:00
|
|
|
%config %_sysconfdir/nftables
|
|
|
|
%_sbindir/nft
|
2014-08-06 08:44:12 +02:00
|
|
|
%_mandir/man8/nft*
|
2016-12-21 00:38:39 +01:00
|
|
|
%doc COPYING
|
2013-10-21 05:25:52 +02:00
|
|
|
|
|
|
|
%changelog
|