packages: xtables-geoip/xtables-geoip.spec - do not just discard dir, conve...

glen glen at pld-linux.org
Mon May 14 12:53:35 CEST 2012


Author: glen                         Date: Mon May 14 10:53:35 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- do not just discard dir, convert it to full symlink, or stupid rpm will remove files from NEW package that were present in OLD package, i.e the compat .iv0 files!

---- Files affected:
packages/xtables-geoip:
   xtables-geoip.spec (1.29 -> 1.30) 

---- Diffs:

================================================================
Index: packages/xtables-geoip/xtables-geoip.spec
diff -u packages/xtables-geoip/xtables-geoip.spec:1.29 packages/xtables-geoip/xtables-geoip.spec:1.30
--- packages/xtables-geoip/xtables-geoip.spec:1.29	Mon May 14 11:42:50 2012
+++ packages/xtables-geoip/xtables-geoip.spec	Mon May 14 12:53:30 2012
@@ -2,7 +2,7 @@
 Summary:	GeoIP database files for xt_geoip
 Name:		xtables-geoip
 Version:	20120501
-Release:	2
+Release:	3
 License:	GPL, Open Data License
 Group:		Networking/Admin
 URL:		http://www.maxmind.com/
@@ -75,6 +75,8 @@
 # this needs to be a symlink
 if [ -d /var/lib/geoip -a ! -L /var/lib/geoip ]; then
 	mv -f /var/lib/geoip{,.rpmsave}
+	install -d %{dbdir}
+	ln -s %{dbdir} /var/lib/geoip
 fi
 %endif
 
@@ -97,6 +99,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.30  2012/05/14 10:53:30  glen
+- do not just discard dir, convert it to full symlink, or stupid rpm will remove files from NEW package that were present in OLD package, i.e the compat .iv0 files!
+
 Revision 1.29  2012/05/14 09:42:50  glen
 - dir vs symlink fun
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/xtables-geoip/xtables-geoip.spec?r1=1.29&r2=1.30



More information about the pld-cvs-commit mailing list