Author: frankie
Date: 2008-06-09 11:15:19 +0000 (Mon, 09 Jun 2008)
New Revision: 1608

Added:
   packages/postgis/trunk/debian/postgis-postgresql-generic.postinst.in
Modified:
   packages/postgis/trunk/debian/postgis-generic.postinst.in
   packages/postgis/trunk/debian/rules
Log:
Added purging mechanism


Modified: packages/postgis/trunk/debian/postgis-generic.postinst.in
===================================================================
--- packages/postgis/trunk/debian/postgis-generic.postinst.in   2008-06-09 
11:06:39 UTC (rev 1607)
+++ packages/postgis/trunk/debian/postgis-generic.postinst.in   2008-06-09 
11:15:19 UTC (rev 1608)
@@ -2,11 +2,9 @@
 
 set -e
 
-if [ "$1" = "configure" ]; then
-       if [ -f 
/usr/lib/postgis/@POSTGIS_VERSION@/postgres/@POSTGRES_VERSION@/lib/[EMAIL 
PROTECTED]@ ]; then
-               ln -f 
/usr/lib/postgis/@POSTGIS_VERSION@/postgres/@POSTGRES_VERSION@/lib/[EMAIL 
PROTECTED]@ \
-                     /usr/lib/postgresql/@POSTGRES_VERSION@/lib/[EMAIL 
PROTECTED]@
-       fi
+# Removes all postgis shared libs links
+if [ "$1" = "purge" ]; then
+     find /usr/lib/postgresql/@POSTGRES_VERSION@/lib -type f -name 
"liblwgeom.so.*" -delete
 fi
 
 #DEBHELPER#

Added: packages/postgis/trunk/debian/postgis-postgresql-generic.postinst.in
===================================================================
--- packages/postgis/trunk/debian/postgis-postgresql-generic.postinst.in        
                        (rev 0)
+++ packages/postgis/trunk/debian/postgis-postgresql-generic.postinst.in        
2008-06-09 11:15:19 UTC (rev 1608)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+# Creates a link for the shared lib in the postgres area
+if [ "$1" = "configure" ]; then
+       if [ -f 
/usr/lib/postgis/@POSTGIS_VERSION@/postgres/@POSTGRES_VERSION@/lib/[EMAIL 
PROTECTED]@ ]; then
+               ln -f 
/usr/lib/postgis/@POSTGIS_VERSION@/postgres/@POSTGRES_VERSION@/lib/[EMAIL 
PROTECTED]@ \
+                     /usr/lib/postgresql/@POSTGRES_VERSION@/lib/[EMAIL 
PROTECTED]@
+       fi
+fi
+
+#DEBHELPER#
+
+exit 0

Modified: packages/postgis/trunk/debian/rules
===================================================================
--- packages/postgis/trunk/debian/rules 2008-06-09 11:06:39 UTC (rev 1607)
+++ packages/postgis/trunk/debian/rules 2008-06-09 11:15:19 UTC (rev 1608)
@@ -107,7 +107,9 @@
        sed -e 's/@POSTGIS_VERSION@/1.3.3/' \
            -e 's/@POSTGRES_VERSION@/8.3/' \
            -e 's/@SOVERSION@/1.3/' \
-           $(CURDIR)/debian/postgis-generic.postinst.in 
>$(CURDIR)/debian/postgresql-8.3-postgis.postinst
+           $(CURDIR)/debian/postgis-postgresql-generic.postinst.in 
>$(CURDIR)/debian/postgresql-8.3-postgis.postinst
+       sed -e 's/@POSTGRES_VERSION@/8.3/' \
+           $(CURDIR)/debian/postgis-generic.postinst.in 
>$(CURDIR)/debian/postgis.postinst
        dh_install -s
 
 # Must not depend on anything. This is to be called by


_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to