Browse Source

ipset-6.32-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11069 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 years ago
parent
commit
8625af27e9
1 changed files with 17 additions and 3 deletions
  1. 17 3
      i/ipset/ipset-vl.spec

+ 17 - 3
i/ipset/ipset-vl.spec

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