The following commit has been merged in the master branch:
commit 5f9eaf4df3d1b53b6a4489b27226a58432368525
Author: Markus Wanner <mar...@bluegap.ch>
Date:   Wed Jun 5 09:14:27 2013 +0200

    Auto-create required postgresql-$(PGVERSION)-postgis-2.0.install file
    for the current Postgres version.

diff --git a/debian/postgresql-9.1-postgis-2.0.install 
b/debian/postgresql-9.1-postgis-2.0.install
deleted file mode 100644
index abf68bb..0000000
--- a/debian/postgresql-9.1-postgis-2.0.install
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/share/postgresql/9.1/extension
-usr/lib/postgresql/9.1/lib
diff --git a/debian/postgresql-generic-postgis-2.0.install.in 
b/debian/postgresql-generic-postgis-2.0.install.in
new file mode 100644
index 0000000..bf135b6
--- /dev/null
+++ b/debian/postgresql-generic-postgis-2.0.install.in
@@ -0,0 +1,2 @@
+usr/share/postgresql/@PGVERSION@/extension
+usr/lib/postgresql/@PGVERSION@/lib
diff --git a/debian/rules b/debian/rules
index 985be34..7d6a58a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -121,6 +121,7 @@ clean:
        rm -f $(CURDIR)/debian/*.postinst $(CURDIR)/debian/*.postrm
        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.0.install
        dh_clean
 
 install: install-indep install-arch
@@ -170,6 +171,11 @@ install-arch: build-arch
                        ln -sf 
/usr/share/postgis/$(POSTGIS_VERSION)/sql/$$BASENAME $$FILE; \
                done
 
+#      Auto-create required .install file for the current Postgres version.
+       cat $(CURDIR)/debian/postgresql-generic-postgis-2.0.install.in \
+               | sed -e 's/@PGVERSION@/$(NEWEST_POSTGRES_VERSION)/' \
+               > 
$(CURDIR)/debian/postgresql-$(NEWEST_POSTGRES_VERSION)-postgis-2.0.install
+
        dh_install -s
 
 check: install-arch

-- 
PostGIS for PostgreSQL

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

Reply via email to