rpms/shorewall/F-10 shorewall.spec,1.66,1.67

Jonathan G. Underwood jgu at fedoraproject.org
Thu Jan 15 00:11:29 UTC 2009


Author: jgu

Update of /cvs/extras/rpms/shorewall/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv556

Modified Files:
	shorewall.spec 
Log Message:
* Thu Jan 15 2009 Jonathan G. Underwood <jonathan.underwood at gmail.com> - 4.2.4-2
- Fix up dependencies between sub-packages
- No longer attempt to own all files in /var/lib/shorewall* but rather clean
  them up on package removal



Index: shorewall.spec
===================================================================
RCS file: /cvs/extras/rpms/shorewall/F-10/shorewall.spec,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- shorewall.spec	11 Jan 2009 23:43:12 -0000	1.66
+++ shorewall.spec	15 Jan 2009 00:10:59 -0000	1.67
@@ -11,7 +11,7 @@
 
 Name:           shorewall
 Version:	%{major_ver}
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	An iptables front end for firewall configuration
 Group:		Applications/System
 License:	GPLv2+
@@ -73,7 +73,7 @@
 Summary:	Perl-based compiler for Shoreline Firewall 
 Group: 	 	Applications/System
 Version:	%{perl_ver}
-Requires:	shorewall-common = %{version}-%{release}
+Requires:	shorewall-common = %{common_ver}-%{release}
 Requires:	perl
 
 %description perl
@@ -84,7 +84,7 @@
 Summary:	Shell-based compiler for Shoreline Firewall 
 Group: 	 	Applications/System
 Version:	%{shell_ver}
-Requires:	shorewall-common = %{version}-%{release}
+Requires:	shorewall-common = %{common_ver}-%{release}
 
 %description shell
 Shorewall-shell is a part of Shorewall that allows running Shorewall
@@ -161,10 +161,6 @@
 ./install.sh
 popd
 
-# Create %ghost files
-install -d $RPM_BUILD_ROOT/%{_localstatedir}/lib/shorewall
-touch $RPM_BUILD_ROOT/%{_localstatedir}/lib/shorewall/{chains,nat,proxyarp,restarted,zones,restore-base,restore-tail,state,.modules,.modulesdir}
-
 #### Build shorewall-perl
 pushd shorewall-perl-%{perl_ver}
 ./install.sh -n
@@ -202,6 +198,7 @@
 if [ $1 = 0 ]; then
    /sbin/service shorewall stop >/dev/null 2>&1
    /sbin/chkconfig --del shorewall
+   rm -f /var/lib/shorewall/*
 fi
 
 %post -n shorewall6
@@ -213,6 +210,7 @@
 if [ $1 = 0 ]; then
    /sbin/service shorewall6 stop >/dev/null 2>&1
    /sbin/chkconfig --del shorewall6
+   rm -f /var/lib/shorewall6/*
 fi
 
 %post lite
@@ -224,6 +222,7 @@
 if [ $1 = 0 ]; then
    /sbin/service shorewall stop >/dev/null 2>&1
    /sbin/chkconfig --del shorewall-lite
+   rm -f /var/lib/shorewall-lite/*
 fi
 
 %post -n shorewall6-lite
@@ -235,6 +234,7 @@
 if [ $1 = 0 ]; then
    /sbin/service shorewall6-lite stop >/dev/null 2>&1
    /sbin/chkconfig --del shorewall6-lite
+   rm -f /var/lib/shorewall6-lite/*
 fi
 
 %files
@@ -261,10 +261,7 @@
 %{_datadir}/shorewall/configfiles
 %{_datadir}/shorewall/functions
 %{_datadir}/shorewall/lib.*
-
 %dir %{_localstatedir}/lib/shorewall
-%ghost %{_localstatedir}/lib/shorewall/*
-%ghost %{_localstatedir}/lib/shorewall/.*
 
 # Man files - can't use /man5/* here as shorewall-lite also has man5 pages
 %{_mandir}/man5/shorewall-tunnels.5.gz
@@ -372,7 +369,6 @@
 %{_mandir}/man5/shorewall6-zones.5.gz
 %{_mandir}/man5/shorewall6.conf.5.gz
 %{_mandir}/man8/shorewall6.8.gz
-
 %attr(0755,root,root) %{_datadir}/shorewall6/wait4ifup
 %{_datadir}/shorewall6/action.*
 %{_datadir}/shorewall6/actions.std
@@ -383,6 +379,7 @@
 %{_datadir}/shorewall6/macro.Ping
 %{_datadir}/shorewall6/modules
 %{_datadir}/shorewall6/version
+%dir %{_localstatedir}/lib/shorewall
 
 %files -n shorewall6-lite
 %defattr(0644,root,root,0755)
@@ -392,11 +389,10 @@
 %config(noreplace) %{_sysconfdir}/shorewall6-lite/shorewall6-lite.conf
 %attr(0755,root,root) %{_initrddir}/shorewall6-lite
 %{_sysconfdir}/shorewall6-lite/Makefile
-
+%dir %{_localstatedir}/lib/shorewall
 %{_mandir}/man5/shorewall6-lite-vardir.5.gz
 %{_mandir}/man5/shorewall6-lite.conf.5.gz
 %{_mandir}/man8/shorewall6-lite.8.gz
-
 %{_datadir}/shorewall6-lite/configpath
 %{_datadir}/shorewall6-lite/functions
 %{_datadir}/shorewall6-lite/lib.*
@@ -406,6 +402,11 @@
 %attr(0755,root,root) %{_datadir}/shorewall6-lite/wait4ifup
 
 %changelog
+* Thu Jan 15 2009 Jonathan G. Underwood <jonathan.underwood at gmail.com> - 4.2.4-2
+- Fix up dependencies between sub-packages
+- No longer attempt to own all files in /var/lib/shorewall* but rather clean
+  them up on package removal
+
 * Sun Jan 11 2009 Jonathan G. Underwood <jonathan.underwood at gmail.com> - 4.2.4-1
 - Update to version 4.2.4 which adds IPV6 support and two new sub-packages
   (shorewall6 and shorewall6-lite) 




More information about the fedora-extras-commits mailing list