[packages/nftables] - new

qboosh qboosh at pld-linux.org
Sat Apr 19 14:44:29 CEST 2014


commit f4e8c13250d58231547ddc00a71579eeb52435da
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 19 14:46:21 2014 +0200

    - new

 nftables-db2man.patch | 28 +++++++++++++++++++
 nftables.spec         | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)
---
diff --git a/nftables.spec b/nftables.spec
new file mode 100644
index 0000000..b727151
--- /dev/null
+++ b/nftables.spec
@@ -0,0 +1,74 @@
+Summary:	Administration tool for packet filtering and classification
+Summary(pl.UTF-8):	Narzędzie administracyjne do filtrowania i klasyfikacji pakietów
+Name:		nftables
+Version:	0.2
+Release:	1
+License:	GPL v2
+Group:		Applications/Networking
+Source0:	http://www.netfilter.org/projects/nftables/files/%{name}-%{version}.tar.bz2
+# Source0-md5:	9b824060febe56ed5e2fbd7f43ea78d4
+Patch0:		%{name}-db2man.patch
+URL:		http://www.netfilter.org/projects/nftables/
+BuildRequires:	autoconf >= 2.61
+BuildRequires:	bison
+BuildRequires:	dblatex
+BuildRequires:	docbook2X
+BuildRequires:	flex
+BuildRequires:	gmp-devel
+BuildRequires:	libmnl-devel
+BuildRequires:	libnftnl-devel
+BuildRequires:	readline-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+nftables is the project that aims to replace the existing
+{ip,ip6,arp,eb}tables framework. Basically, this project provides a
+new packet filtering framework, a new userspace utility and also a
+compatibility layer for {ip,ip6}tables. nftables is built upon the
+building blocks of the Netfilter infrastructure such as the existing
+hooks, the connection tracking system, the userspace queueing
+component and the logging subsystem.
+
+%description -l pl.UTF-8
+nftables to projekt mający na celu zastąpienie istniejącego szkieletu
+{ip,ip6,arp,eb}tables. Ten projekt przede wszystkim dostarcza nowy
+szkielet filtrowania, nowe narzędzie linii poleceń oraz warstwę
+zgodności dla {ip,ip6}tables. nftables jest zbudowane w oparciu o
+bloki tworzące infrastrukturę Netfilter, takie jak istniejące uchwyty,
+system śledzenia połączeń, komponent kolejkowania w przestrzeni
+użytkownika oraz podsystem logowania.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__autoconf}
+%configure \
+	DB2MAN=/usr/bin/docbook2X2man
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+        DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc TODO
+%attr(755,root,root) %{_sbindir}/nft
+%dir %{_sysconfdir}/nftables
+%attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/bridge-filter
+%attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/inet-filter
+%attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-filter
+%attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-mangle
+%attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-nat
+%attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-filter
+%attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-mangle
+%attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-nat
+%{_mandir}/man8/nft.8*
diff --git a/nftables-db2man.patch b/nftables-db2man.patch
new file mode 100644
index 0000000..b0183fd
--- /dev/null
+++ b/nftables-db2man.patch
@@ -0,0 +1,28 @@
+--- nftables-0.2/configure.ac.orig	2014-04-14 13:16:24.000000000 +0200
++++ nftables-0.2/configure.ac	2014-04-19 14:07:59.475893678 +0200
+@@ -25,20 +25,13 @@
+ AC_PROG_INSTALL
+ AC_PROG_SED
+ 
+-AC_CHECK_PROG(CONFIG_MAN1, [docbook2x-man], [y], [n])
+-if test "$CONFIG_MAN1" == "y"
++AC_CHECK_PROG(DB2MAN, [docbook2x-man db2x_docbook2man], [n])
++if test "$DB2MAN" = "n"
+ then
+-	CONFIG_MAN=y
+-	DB2MAN=docbook2x-man
++	CONFIG_MAN=n
++	AC_MSG_WARN([docbookx2-man/db2x_docbook2man not found, no manpages will be built])
+ else
+-	AC_CHECK_PROG(CONFIG_MAN2, [db2x_docbook2man], [y], [n])
+-	if test "$CONFIG_MAN2" == "y"
+-	then
+-		CONFIG_MAN=y
+-		DB2MAN=db2x_docbook2man
+-	else
+-		AC_MSG_WARN([docbookx2-man/db2x_docbook2man not found, no manpages will be built])
+-	fi
++	CONFIG_MAN=y
+ fi
+ AC_SUBST(CONFIG_MAN)
+ AC_SUBST(DB2MAN)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nftables.git/commitdiff/f4e8c13250d58231547ddc00a71579eeb52435da



More information about the pld-cvs-commit mailing list