SPECS: xtables-addons.spec - dont build an old ipset stuff, uset ipset.spec...

pluto pluto at pld-linux.org
Mon Oct 27 11:01:57 CET 2008


Author: pluto                        Date: Mon Oct 27 10:01:57 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- dont build an old ipset stuff, uset ipset.spec instead, release 2.

---- Files affected:
SPECS:
   xtables-addons.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/xtables-addons.spec
diff -u SPECS/xtables-addons.spec:1.10 SPECS/xtables-addons.spec:1.11
--- SPECS/xtables-addons.spec:1.10	Sun Sep 28 01:21:25 2008
+++ SPECS/xtables-addons.spec	Mon Oct 27 11:01:52 2008
@@ -9,7 +9,7 @@
 %bcond_without	kernel
 %bcond_without	userspace
 #
-%define		rel 1
+%define		rel 2
 Summary:	Extensible packet filtering system && extensible NAT system
 Summary(pl.UTF-8):	System filtrowania pakietów oraz system translacji adresów (NAT)
 Summary(pt_BR.UTF-8):	Ferramenta para controlar a filtragem de pacotes no kernel-2.6.x
@@ -24,7 +24,6 @@
 Source0:	http://dev.medozas.de/files/xtables/%{name}-%{version}.tar.bz2
 # Source0-md5:	cfd0a0997efd4084d0505f93ff28c4cf
 URL:		http://jengelh.medozas.de/projects/xtables/
-Source1:	ipset.init
 Patch0:		%{name}-libs.patch
 Patch1:		%{name}-geoip-dbpath.patch
 Patch2:		%{name}-help.patch
@@ -37,8 +36,6 @@
 %{?with_dist_kernel:%requires_releq_kernel}
 Requires(post,postun):	/sbin/depmod
 Requires:	iptables >= 1.4.1
-Obsoletes:	ipset
-Obsoletes:	ipset-init
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -88,7 +85,6 @@
 
 %if %{with userspace}
 %{__make} -C extensions
-%{__make} -C extensions/ipset
 %endif
 
 %install
@@ -99,17 +95,12 @@
 cd extensions
 %install_kernel_modules -m compat_xtables -d kernel/net/netfilter
 install xt_*ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/net/netfilter
-install ipset/*.ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter
 cd ..
 %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 \
-	DESTDIR=$RPM_BUILD_ROOT
 
 cd extensions
 for m in $(cat .manpages.lst); do
@@ -123,34 +114,13 @@
 
 %post
 %depmod %{_kernel_ver}
-%if %{with userspace}
-/sbin/chkconfig --add ipset
-%endif
 
 %postun
 %depmod %{_kernel_ver}
-%if %{with userspace}
-if [ "$1" = "0" ]; then
-	/sbin/chkconfig --del ipset
-fi
-%endif
 
 %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
-%attr(755,root,root) %{_libdir}/xtables/libipset_iptree.so
-%attr(755,root,root) %{_libdir}/xtables/libipset_iptreemap.so
-%attr(755,root,root) %{_libdir}/xtables/libipset_macipmap.so
-%attr(755,root,root) %{_libdir}/xtables/libipset_nethash.so
-%attr(755,root,root) %{_libdir}/xtables/libipset_portmap.so
-%attr(755,root,root) %{_sbindir}/ipset
-%{_mandir}/man8/ipset.*
-#
 %attr(755,root,root) %{_libdir}/xtables/libxt_CHAOS.so
 %attr(755,root,root) %{_libdir}/xtables/libxt_DELUDE.so
 %attr(755,root,root) %{_libdir}/xtables/libxt_DHCPADDR.so
@@ -182,19 +152,6 @@
 %{_mandir}/man8/libxt_quota2.*
 %endif
 %if %{with kernel}
-# ipset
-/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ip_set.ko.gz
-/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ip_set_iphash.ko.gz
-/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ip_set_ipmap.ko.gz
-/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ip_set_ipporthash.ko.gz
-/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ip_set_iptree.ko.gz
-/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ip_set_iptreemap.ko.gz
-/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ip_set_macipmap.ko.gz
-/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ip_set_nethash.ko.gz
-/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ip_set_portmap.ko.gz
-/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ipt_SET.ko.gz
-/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ipt_set.ko.gz
-#
 /lib/modules/%{_kernel_ver}/kernel/net/netfilter/compat_xtables.ko.gz
 /lib/modules/%{_kernel_ver}/kernel/net/netfilter/xt_CHAOS.ko.gz
 /lib/modules/%{_kernel_ver}/kernel/net/netfilter/xt_DELUDE.ko.gz
@@ -218,6 +175,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2008/10/27 10:01:52  pluto
+- dont build an old ipset stuff, uset ipset.spec instead, release 2.
+
 Revision 1.10  2008/09/27 23:21:25  charles
 - added URL and updated Source0
 - lt/ac/am (with BRs)
================================================================

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



More information about the pld-cvs-commit mailing list