[SCM] postgis branch, master, updated. upstream/2.0.1-92-gc2379ec

Markus Wanner markus at bluegap.ch
Thu Sep 26 07:01:52 UTC 2013


The following commit has been merged in the master branch:
commit c2379ecbf4854813b005b551ec376a19120ab25e
Author: Markus Wanner <markus at bluegap.ch>
Date:   Thu Sep 26 08:56:55 2013 +0200

    Add appropriate notification messages to the transitional scripts
    packages, so the user becomes aware he needs to migrate his
    databases himself.

diff --git a/debian/changelog b/debian/changelog
index fc6335e..1d902f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,7 +3,7 @@ postgis (2.1.0-3) UNRELEASED; urgency=low
   * Add transitional postgis-2.0-scripts packages for all Pg versions ever
     supported. These effectively remove scripts and the postgis.control
     file prior to installing a newer *-postgis-2.1-scrips package, which
-    Breaks+Replaces it.
+    Breaks+Replaces it. Add appropriate notification messages on upgrade.
   * Update patch upstream-r11934 to cover rev 11979, instead. It seems to
     be a more thorough fix. Add minor-r11979-correction patch to account
     for some new WARNINGs, that didn't appear, before.
diff --git a/debian/postgresql-8.4-postgis-2.0-scripts.config b/debian/postgresql-8.4-postgis-2.0-scripts.config
new file mode 100644
index 0000000..a67d43e
--- /dev/null
+++ b/debian/postgresql-8.4-postgis-2.0-scripts.config
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# Should first check for installed extensions.
+db_input critical postgis/pg8.4_postgis2.0_deprecated || true
+db_go
diff --git a/debian/postgresql-8.4-postgis-2.0-scripts.postinst b/debian/postgresql-8.4-postgis-2.0-scripts.postinst
new file mode 100644
index 0000000..a486666
--- /dev/null
+++ b/debian/postgresql-8.4-postgis-2.0-scripts.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_stop
+
+#DEBHELPER#
diff --git a/debian/postgresql-8.4-postgis-2.0-scripts.templates b/debian/postgresql-8.4-postgis-2.0-scripts.templates
new file mode 100644
index 0000000..f631a2f
--- /dev/null
+++ b/debian/postgresql-8.4-postgis-2.0-scripts.templates
@@ -0,0 +1,16 @@
+Template: postgis/pg8.4_postgis2.0_deprecated
+Type: note
+Description: PostGIS 2.0 has been deprecated - please migrate your databases
+ The package postgresql-8.4-postgis-2.0-scripts is installed on this
+ system, which means you likely use the PostGIS extension in some
+ databases.
+ .
+ On Debian, we now ship PostGIS version 2.1 and dropped support for
+ 2.0, meaning we no longer provide bug or security fixes. Thus we
+ strongly recommend you migrate your databases to PostGIS 2.1 on some
+ newer version of PostgreSQL as soon as possible.
+ .
+ Note that databases that are already using PostGIS 2.0 will continue to
+ work. However, with this upgrade to PostGIS 2.1 a CREATE EXTENSION postgis
+ in PostgreSQL version 9.0 will now give you PostGIS 2.1.
+
diff --git a/debian/postgresql-9.0-postgis-2.0-scripts.config b/debian/postgresql-9.0-postgis-2.0-scripts.config
new file mode 100644
index 0000000..10e4951
--- /dev/null
+++ b/debian/postgresql-9.0-postgis-2.0-scripts.config
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# Should first check for installed extensions.
+db_input critical postgis/pg9.0_postgis2.0_deprecated || true
+db_go
diff --git a/debian/postgresql-9.0-postgis-2.0-scripts.postinst b/debian/postgresql-9.0-postgis-2.0-scripts.postinst
new file mode 100644
index 0000000..a486666
--- /dev/null
+++ b/debian/postgresql-9.0-postgis-2.0-scripts.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_stop
+
+#DEBHELPER#
diff --git a/debian/postgresql-9.0-postgis-2.0-scripts.templates b/debian/postgresql-9.0-postgis-2.0-scripts.templates
new file mode 100644
index 0000000..8a99d98
--- /dev/null
+++ b/debian/postgresql-9.0-postgis-2.0-scripts.templates
@@ -0,0 +1,16 @@
+Template: postgis/pg9.0_postgis2.0_deprecated
+Type: note
+Description: PostGIS 2.0 has been deprecated - please migrate your databases
+ The package postgresql-9.0-postgis-2.0-scripts is installed on this
+ system, which means you likely use the PostGIS extension in some
+ databases.
+ .
+ On Debian, we now ship PostGIS version 2.1 and dropped support for
+ 2.0, meaning we no longer provide bug or security fixes. Thus we
+ strongly recommend you migrate your databases to PostGIS 2.1 as soon
+ as possible.
+ .
+ Note that databases that are already using PostGIS 2.0 will continue to
+ work. However, with this upgrade to PostGIS 2.1 a CREATE EXTENSION postgis
+ in PostgreSQL version 9.0 will now give you PostGIS 2.1.
+
diff --git a/debian/postgresql-9.1-postgis-2.0-scripts.config b/debian/postgresql-9.1-postgis-2.0-scripts.config
new file mode 100644
index 0000000..4ef0062
--- /dev/null
+++ b/debian/postgresql-9.1-postgis-2.0-scripts.config
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# Should first check for installed extensions.
+db_input critical postgis/pg9.1_postgis2.0_deprecated || true
+db_go
diff --git a/debian/postgresql-9.1-postgis-2.0-scripts.postinst b/debian/postgresql-9.1-postgis-2.0-scripts.postinst
new file mode 100644
index 0000000..a486666
--- /dev/null
+++ b/debian/postgresql-9.1-postgis-2.0-scripts.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_stop
+
+#DEBHELPER#
diff --git a/debian/postgresql-9.1-postgis-2.0-scripts.templates b/debian/postgresql-9.1-postgis-2.0-scripts.templates
new file mode 100644
index 0000000..05d983f
--- /dev/null
+++ b/debian/postgresql-9.1-postgis-2.0-scripts.templates
@@ -0,0 +1,16 @@
+Template: postgis/pg9.1_postgis2.0_deprecated
+Type: note
+Description: PostGIS 2.0 has been deprecated - please migrate your databases
+ The package postgresql-9.1-postgis-2.0-scripts is installed on this
+ system, which means you likely use the PostGIS extension in some
+ databases.
+ .
+ On Debian, we now ship PostGIS version 2.1 and dropped support for
+ 2.0, meaning we no longer provide bug or security fixes. Thus we
+ strongly recommend you migrate your databases to PostGIS 2.1 as soon
+ as possible.
+ .
+ Note that databases that are already using PostGIS 2.0 will continue to
+ work. However, with this upgrade to PostGIS 2.1 a CREATE EXTENSION postgis
+ in PostgreSQL version 9.1 will now give you PostGIS 2.1.
+
diff --git a/debian/postgresql-9.2-postgis-2.0-scripts.config b/debian/postgresql-9.2-postgis-2.0-scripts.config
new file mode 100644
index 0000000..08b66b5
--- /dev/null
+++ b/debian/postgresql-9.2-postgis-2.0-scripts.config
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# Should first check for installed extensions.
+db_input critical postgis/pg9.2_postgis2.0_deprecated || true
+db_go
diff --git a/debian/postgresql-9.2-postgis-2.0-scripts.postinst b/debian/postgresql-9.2-postgis-2.0-scripts.postinst
new file mode 100644
index 0000000..a486666
--- /dev/null
+++ b/debian/postgresql-9.2-postgis-2.0-scripts.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_stop
+
+#DEBHELPER#
diff --git a/debian/postgresql-9.2-postgis-2.0-scripts.templates b/debian/postgresql-9.2-postgis-2.0-scripts.templates
new file mode 100644
index 0000000..180c2b8
--- /dev/null
+++ b/debian/postgresql-9.2-postgis-2.0-scripts.templates
@@ -0,0 +1,16 @@
+Template: postgis/pg9.2_postgis2.0_deprecated
+Type: note
+Description: PostGIS 2.0 has been deprecated - please migrate your databases
+ The package postgresql-9.2-postgis-2.0-scripts is installed on this
+ system, which means you likely use the PostGIS extension in some
+ databases.
+ .
+ On Debian, we now ship PostGIS version 2.1 and dropped support for
+ 2.0, meaning we no longer provide bug or security fixes. Thus we
+ strongly recommend you migrate your databases to PostGIS 2.1 as soon
+ as possible.
+ .
+ Note that databases that are already using PostGIS 2.0 will continue to
+ work. However, with this upgrade to PostGIS 2.1 a CREATE EXTENSION postgis
+ in PostgreSQL version 9.2 will now give you PostGIS 2.1.
+
diff --git a/debian/rules b/debian/rules
index 28c06d1..65ca336 100755
--- a/debian/rules
+++ b/debian/rules
@@ -182,8 +182,8 @@ clean: debian/control
 	rm -rf $(CURDIR)/java/jdbc/target
 
 #	Cleanup after the Makefile
-	rm -f $(CURDIR)/debian/*.postinst $(CURDIR)/debian/*.postrm
-	rm -f postgis/postgis_upgrade_20_minor.sql.in raster/rt_pg/rtpostgis_drop.sql \
+	rm -f postgis/postgis_upgrade_20_minor.sql.in \
+		raster/rt_pg/rtpostgis_drop.sql \
 		raster/rt_pg/rtpostgis_upgrade_cleanup.sql
 	rm -f $(CURDIR)/debian/postgresql-*-postgis-2.1.install
 	rm -f $(CURDIR)/debian/postgresql-*-postgis-2.1-scripts.install
@@ -292,6 +292,7 @@ binary-common:
 	dh_testdir
 	dh_testroot
 	dh_installchangelogs ChangeLog
+	dh_installdebconf
 	dh_installdocs
 	dh_installexamples
 	dh_installman

-- 
PostGIS for PostgreSQL



More information about the Pkg-grass-devel mailing list