|
@@ -3,21 +3,26 @@
|
|
Summary: Packet filtering tool
|
|
Summary: Packet filtering tool
|
|
Summary(ja): パケットフィルタリングツール
|
|
Summary(ja): パケットフィルタリングツール
|
|
Name: iptables
|
|
Name: iptables
|
|
-Version: 1.8.4
|
|
+Version: 1.8.7
|
|
-Release: 2%{?_dist_release}%{?with_systemd:.systemd}
|
|
+Release: 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
-Group: System Environment/Base
|
|
+Group: admin-tools,network
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
Packager: daisuke
|
|
Packager: daisuke
|
|
-License: GPL
|
|
+
|
|
|
|
+# pf.os: ISC license
|
|
|
|
+# iptables-apply: Artistic Licence 2.0
|
|
|
|
+License: GPLv2 and Artistic Licence 2.0 and ISC
|
|
URL: http://www.netfilter.org/
|
|
URL: http://www.netfilter.org/
|
|
-Source0: ftp://ftp.netfilter.org/pub/iptables/%{name}-%{version}.tar.bz2
|
|
+Source0: http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2
|
|
Source1: iptables.init
|
|
Source1: iptables.init
|
|
Source2: iptables-config
|
|
Source2: iptables-config
|
|
Source3: iptables.service
|
|
Source3: iptables.service
|
|
Source4: sysconfig_iptables
|
|
Source4: sysconfig_iptables
|
|
Source5: sysconfig_ip6tables
|
|
Source5: sysconfig_ip6tables
|
|
|
|
|
|
|
|
+Patch1: 0001-ebtables-Exit-gracefully-on-invalid-table-names.patch
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: bison flex perl
|
|
BuildRequires: bison flex perl
|
|
BuildRequires: kernel-headers >= 2.4.0
|
|
BuildRequires: kernel-headers >= 2.4.0
|
|
@@ -46,10 +51,11 @@ iptables は Linux kernel のネットワークパケットフィルタを制御
|
|
ユーティリティです。これを用いることで、ファイアウオールや IP マスカレー
|
|
ユーティリティです。これを用いることで、ファイアウオールや IP マスカレー
|
|
ディング, NAT などを設定することができます。
|
|
ディング, NAT などを設定することができます。
|
|
|
|
|
|
|
|
+
|
|
%package devel
|
|
%package devel
|
|
Summary: Libraries, includes, etc. to develop iptables
|
|
Summary: Libraries, includes, etc. to develop iptables
|
|
Summary(ja): iptables 開発用ライブラリ、ヘッダファイル
|
|
Summary(ja): iptables 開発用ライブラリ、ヘッダファイル
|
|
-Group: Development/Libraries
|
|
+Group: programming
|
|
Requires: iptables = %{version}-%{release}
|
|
Requires: iptables = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
@@ -58,10 +64,11 @@ Libraries, include files, etc you can use to develop iptables.
|
|
%description devel -l ja
|
|
%description devel -l ja
|
|
iptables を用いた開発に使用するライブラリやヘッダファイルです。
|
|
iptables を用いた開発に使用するライブラリやヘッダファイルです。
|
|
|
|
|
|
|
|
+
|
|
%package ipv6
|
|
%package ipv6
|
|
Summary: IPv6 Packet filtering tool
|
|
Summary: IPv6 Packet filtering tool
|
|
Summary(ja): IPv6 用パケットフィルタリングツール
|
|
Summary(ja): IPv6 用パケットフィルタリングツール
|
|
-Group: System Environment/Base
|
|
+Group: admin-tools,network
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires(post): chkconfig
|
|
Requires(post): chkconfig
|
|
Requires(preun): chkconfig
|
|
Requires(preun): chkconfig
|
|
@@ -77,25 +84,25 @@ iptables-ipv6 は iptables で IPv6 をサポートするためのパッケー
|
|
これを用いることで、IPv6 環境におけるファイアウオールや IP マスカレー
|
|
これを用いることで、IPv6 環境におけるファイアウオールや IP マスカレー
|
|
ディング, NAT などを設定することができます。
|
|
ディング, NAT などを設定することができます。
|
|
|
|
|
|
|
|
+
|
|
|
|
+%debug_package
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
-%setup -q
|
|
+%autosetup -p1
|
|
-# %patch5 -p1 -b .cloexec
|
|
+
|
|
|
|
|
|
%build
|
|
%build
|
|
|
|
+./autogen.sh
|
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
|
-./configure \
|
|
+%configure \
|
|
--enable-devel \
|
|
--enable-devel \
|
|
--enable-bpf-compiler \
|
|
--enable-bpf-compiler \
|
|
--enable-libipq \
|
|
--enable-libipq \
|
|
- --prefix=/usr \
|
|
|
|
--bindir=/bin \
|
|
--bindir=/bin \
|
|
--sbindir=/sbin \
|
|
--sbindir=/sbin \
|
|
- --sysconfdir=/etc \
|
|
|
|
- --libdir=%{_libdir} \
|
|
|
|
--libexecdir=/%{_lib} \
|
|
--libexecdir=/%{_lib} \
|
|
--with-xtlibdir=/%{_lib}/xtables \
|
|
--with-xtlibdir=/%{_lib}/xtables \
|
|
- --mandir=%{_mandir} \
|
|
|
|
- --includedir=%{_includedir} \
|
|
|
|
--with-kernel=/usr \
|
|
--with-kernel=/usr \
|
|
--with-kbuild=/usr \
|
|
--with-kbuild=/usr \
|
|
--with-ksource=/usr
|
|
--with-ksource=/usr
|
|
@@ -104,7 +111,10 @@ CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
|
-make %{?_smp_mflags}
|
|
+rm -f include/linux/types.h
|
|
|
|
+
|
|
|
|
+%make_build
|
|
|
|
+
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
@@ -151,8 +161,8 @@ install -c -m 755 ip6tables.init %{buildroot}/etc/rc.d/init.d/ip6tables
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
+
|
|
%post
|
|
%post
|
|
-/sbin/ldconfig
|
|
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
%systemd_post iptables.service
|
|
%systemd_post iptables.service
|
|
%else
|
|
%else
|
|
@@ -168,11 +178,9 @@ if [ "$1" = 0 ]; then
|
|
fi
|
|
fi
|
|
%endif
|
|
%endif
|
|
|
|
|
|
-%postun
|
|
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
|
|
+%postun
|
|
%systemd_postun iptables.service
|
|
%systemd_postun iptables.service
|
|
-%else
|
|
|
|
-/sbin/ldconfig
|
|
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%post ipv6
|
|
%post ipv6
|
|
@@ -196,6 +204,7 @@ fi
|
|
%systemd_postun ip6tables.service
|
|
%systemd_postun ip6tables.service
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%license COPYING
|
|
%license COPYING
|
|
@@ -262,7 +271,13 @@ fi
|
|
%{_libdir}/pkgconfig/libipq.pc
|
|
%{_libdir}/pkgconfig/libipq.pc
|
|
%{_libdir}/pkgconfig/xtables.pc
|
|
%{_libdir}/pkgconfig/xtables.pc
|
|
|
|
|
|
|
|
+
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Mar 12 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.7-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- updated ip{,6}tables.service.
|
|
|
|
+- imported Patch1 from rawhide.
|
|
|
|
+
|
|
* Sun Apr 05 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.4-2
|
|
* Sun Apr 05 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.4-2
|
|
- added --wait option to ip{,6}tables.init.
|
|
- added --wait option to ip{,6}tables.init.
|
|
|
|
|