|
@@ -1,13 +1,18 @@
|
|
Name: nftables
|
|
Name: nftables
|
|
-Version: 0.8.2
|
|
+Version: 0.9.2
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Summary: Netfilter Tables userspace utillites
|
|
Summary: Netfilter Tables userspace utillites
|
|
|
|
|
|
License: GPLv2
|
|
License: GPLv2
|
|
-Group: System Environment/Base
|
|
+Group: System Environment/Base
|
|
URL: http://netfilter.org/projects/nftables/
|
|
URL: http://netfilter.org/projects/nftables/
|
|
|
|
|
|
Source0: http://ftp.netfilter.org/pub/nftables/nftables-%{version}.tar.bz2
|
|
Source0: http://ftp.netfilter.org/pub/nftables/nftables-%{version}.tar.bz2
|
|
|
|
+Source1: nftables.init
|
|
|
|
+Source2: nftables.conf
|
|
|
|
+
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
|
|
#BuildRequires: autogen
|
|
#BuildRequires: autogen
|
|
#BuildRequires: autoconf
|
|
#BuildRequires: autoconf
|
|
@@ -19,10 +24,23 @@ BuildRequires: libmnl-devel
|
|
BuildRequires: gmp-devel
|
|
BuildRequires: gmp-devel
|
|
BuildRequires: readline-devel
|
|
BuildRequires: readline-devel
|
|
BuildRequires: libnftnl-devel
|
|
BuildRequires: libnftnl-devel
|
|
|
|
+BuildRequires: asciidoc
|
|
BuildRequires: docbook2X
|
|
BuildRequires: docbook2X
|
|
|
|
+BuildRequires: jansson-devel
|
|
|
|
+BuildRequires: iptables-devel
|
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
|
|
|
%description
|
|
%description
|
|
-Netfilter Tables userspace utilities.
|
|
+ Netfilter Tables userspace utilities.
|
|
|
|
+
|
|
|
|
+%package devel
|
|
|
|
+Summary: Development library for nftables / libnftables
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+Requires: pkgconfig
|
|
|
|
+
|
|
|
|
+%description devel
|
|
|
|
+ Development tools and static libraries and header files for
|
|
|
|
+the libnftables library.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
#setup -q -n nftables-%{snapdate}
|
|
#setup -q -n nftables-%{snapdate}
|
|
@@ -30,21 +48,65 @@ Netfilter Tables userspace utilities.
|
|
|
|
|
|
%build
|
|
%build
|
|
#./autogen.sh
|
|
#./autogen.sh
|
|
-%configure --disable-silent-rules
|
|
+%configure --disable-silent-rules --with-xtables --with-json --enable-python=no
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
%make_install
|
|
%make_install
|
|
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
+chmod 644 %{buildroot}/%{_mandir}/man8/nft*
|
|
|
|
+
|
|
|
|
+# Don't ship static lib (for now at least)
|
|
|
|
+rm -f $RPM_BUILD_ROOT/%{_libdir}/libnftables.a
|
|
|
|
+
|
|
chmod 644 $RPM_BUILD_ROOT/%{_mandir}/man8/nft*
|
|
chmod 644 $RPM_BUILD_ROOT/%{_mandir}/man8/nft*
|
|
|
|
|
|
|
|
+mkdir -p $RPM_BUILD_ROOT/%{_initdir}
|
|
|
|
+install -m755 %{SOURCE1} $RPM_BUILD_ROOT/%{_initdir}/nftables
|
|
|
|
+
|
|
|
|
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
|
|
|
|
+cp -a %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/
|
|
|
|
+chmod 600 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/nftables.conf
|
|
|
|
+
|
|
|
|
+mkdir -m 700 -p $RPM_BUILD_ROOT/%{_sysconfdir}/nftables
|
|
|
|
+chmod 600 $RPM_BUILD_ROOT/%{_sysconfdir}/nftables/*.nft
|
|
|
|
+chmod 700 $RPM_BUILD_ROOT/%{_sysconfdir}/nftables
|
|
|
|
+
|
|
|
|
+rm -rf %{buildroot}%{python_sitelib}/*
|
|
|
|
+
|
|
|
|
+%post
|
|
|
|
+/sbin/ldconfig
|
|
|
|
+/sbin/chkconfig --add nftables
|
|
|
|
+
|
|
|
|
+%preun
|
|
|
|
+if [ "$1" = 0 ]; then
|
|
|
|
+ /sbin/chkconfig --del nftables
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+%postun -p /sbin/ldconfig
|
|
|
|
+
|
|
%files
|
|
%files
|
|
-%doc COPYING TODO
|
|
+%license COPYING
|
|
|
|
+%doc TODO
|
|
%config(noreplace) %{_sysconfdir}/nftables/
|
|
%config(noreplace) %{_sysconfdir}/nftables/
|
|
|
|
+%config(noreplace) %{_sysconfdir}/sysconfig/nftables.conf
|
|
|
|
+%{_libdir}/*.so.*
|
|
%{_sbindir}/nft
|
|
%{_sbindir}/nft
|
|
|
|
+%{_mandir}/man5/libnftables-json*
|
|
%{_mandir}/man8/nft*
|
|
%{_mandir}/man8/nft*
|
|
|
|
+%{_initdir}/nftables
|
|
|
|
+
|
|
|
|
+%files devel
|
|
|
|
+%{_libdir}/pkgconfig/*.pc
|
|
|
|
+%{_libdir}/*.so
|
|
|
|
+%{_includedir}/*
|
|
|
|
+%{_mandir}/man3/libnftables*
|
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Sep 02 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.2-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Sun Feb 25 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.2-1
|
|
* Sun Feb 25 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.2-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- dropped Patch0: fixed in upstream.
|
|
- dropped Patch0: fixed in upstream.
|