SPECS: xtables-addons.spec - O: ipset-init.

pluto pluto at pld-linux.org
Sun Sep 21 20:34:33 CEST 2008


Author: pluto                        Date: Sun Sep 21 18:34:33 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- O: ipset-init.

---- Files affected:
SPECS:
   xtables-addons.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/xtables-addons.spec
diff -u SPECS/xtables-addons.spec:1.8 SPECS/xtables-addons.spec:1.9
--- SPECS/xtables-addons.spec:1.8	Fri Sep 12 15:47:30 2008
+++ SPECS/xtables-addons.spec	Sun Sep 21 20:34:28 2008
@@ -23,6 +23,7 @@
 Group:		Networking/Daemons
 Source0:	http://dev.computergmbh.de/files/xtables/%{name}-%{version}.tar.bz2
 # Source0-md5:	cfd0a0997efd4084d0505f93ff28c4cf
+Source1:	ipset.init
 Patch0:		%{name}-libs.patch
 Patch1:		%{name}-geoip-dbpath.patch
 Patch2:		%{name}-help.patch
@@ -34,6 +35,7 @@
 Requires(post,postun):	/sbin/depmod
 Requires:	iptables >= 1.4.1
 Obsoletes:	ipset
+Obsoletes:	ipset-init
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -84,7 +86,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter,%{_mandir}/man8}
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter,%{_mandir}/man8}
 
 %if %{with kernel}
 cd extensions
@@ -95,6 +97,8 @@
 %endif
 
 %if %{with userspace}
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ipset
+
 %{__make} -C extensions install \
 	DESTDIR=$RPM_BUILD_ROOT
 %{__make} -C extensions/ipset install \
@@ -112,14 +116,19 @@
 
 %post
 %depmod %{_kernel_ver}
+/sbin/chkconfig --add ipset
 
 %postun
 %depmod %{_kernel_ver}
+if [ "$1" = "0" ]; then
+	/sbin/chkconfig --del ipset
+fi
 
 %files
 %defattr(644,root,root,755)
 %if %{with userspace}
 # ipset
+%attr(754,root,root) /etc/rc.d/init.d/ipset
 %attr(755,root,root) %{_libdir}/xtables/libipset_iphash.so
 %attr(755,root,root) %{_libdir}/xtables/libipset_ipmap.so
 %attr(755,root,root) %{_libdir}/xtables/libipset_ipporthash.so
@@ -198,6 +207,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2008/09/21 18:34:28  pluto
+- O: ipset-init.
+
 Revision 1.8  2008/09/12 13:47:30  paszczus
 - added xtables-addons-help.patch
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/xtables-addons.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list