|
@@ -1,5 +1,5 @@
|
|
Name: ipset
|
|
Name: ipset
|
|
-Version: 6.23
|
|
|
|
|
|
+Version: 6.32
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Group: Applications/System
|
|
Group: Applications/System
|
|
Summary: Manage Linux IP sets
|
|
Summary: Manage Linux IP sets
|
|
@@ -9,6 +9,7 @@ URL: http://ipset.netfilter.org/
|
|
Source0: http://ipset.netfilter.org/%{name}-%{version}.tar.bz2
|
|
Source0: http://ipset.netfilter.org/%{name}-%{version}.tar.bz2
|
|
Source1: %{name}.service
|
|
Source1: %{name}.service
|
|
Source2: %{name}.start-stop
|
|
Source2: %{name}.start-stop
|
|
|
|
+Source3: %{name}.init
|
|
|
|
|
|
BuildRequires: libmnl-devel
|
|
BuildRequires: libmnl-devel
|
|
|
|
|
|
@@ -92,21 +93,30 @@ make %{?_smp_mflags}
|
|
make install DESTDIR=%{buildroot}
|
|
make install DESTDIR=%{buildroot}
|
|
find %{buildroot} -name '*.la' -exec rm -f '{}' \;
|
|
find %{buildroot} -name '*.la' -exec rm -f '{}' \;
|
|
|
|
|
|
|
|
+mkdir -p %{buildroot}%{_initdir}
|
|
|
|
+install -m755 %{SOURCE3} %{buildroot}%{_initdir}/%{name}
|
|
|
|
+
|
|
%if 0
|
|
%if 0
|
|
# install systemd unit file
|
|
# install systemd unit file
|
|
install -d -m 755 %{buildroot}/%{_unitdir}
|
|
install -d -m 755 %{buildroot}/%{_unitdir}
|
|
install -c -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}
|
|
install -c -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}
|
|
-%endif
|
|
|
|
|
|
|
|
# install supporting script
|
|
# install supporting script
|
|
install -d -m 755 %{buildroot}%{_libexecdir}/%{name}
|
|
install -d -m 755 %{buildroot}%{_libexecdir}/%{name}
|
|
install -c -m 755 %{SOURCE2} %{buildroot}%{_libexecdir}/%{name}
|
|
install -c -m 755 %{SOURCE2} %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
+%endif
|
|
|
|
|
|
# Create directory for configuration
|
|
# Create directory for configuration
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
|
|
|
|
|
|
|
|
+%post
|
|
|
|
+/sbin/chkconfig --add ipset
|
|
|
|
+
|
|
|
|
|
|
%preun
|
|
%preun
|
|
|
|
+if [ "$1" = 0 ]; then
|
|
|
|
+ /sbin/chkconfig --del ipset
|
|
|
|
+fi
|
|
if [[ $1 -eq 0 && -n $(lsmod | grep "^xt_set ") ]]; then
|
|
if [[ $1 -eq 0 && -n $(lsmod | grep "^xt_set ") ]]; then
|
|
rmmod xt_set 2>/dev/null
|
|
rmmod xt_set 2>/dev/null
|
|
[[ $? -ne 0 ]] && echo Current iptables configuration requires ipsets && exit 1
|
|
[[ $? -ne 0 ]] && echo Current iptables configuration requires ipsets && exit 1
|
|
@@ -138,6 +148,7 @@ fi
|
|
%doc COPYING ChangeLog
|
|
%doc COPYING ChangeLog
|
|
%doc %{_mandir}/man8/%{name}.8.gz
|
|
%doc %{_mandir}/man8/%{name}.8.gz
|
|
%{_sbindir}/%{name}
|
|
%{_sbindir}/%{name}
|
|
|
|
+%{_initdir}/%{name}
|
|
|
|
|
|
%files libs
|
|
%files libs
|
|
%doc COPYING
|
|
%doc COPYING
|
|
@@ -158,7 +169,10 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
-* Sat Nov 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.23-1
|
|
|
|
|
|
+* Mon May 8 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.32-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
|
|
+* Sat Nov 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.23-1
|
|
- built for Vine Linux.
|
|
- built for Vine Linux.
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|