[DebianGIS-dev] r1606 - packages/postgis/trunk/debian
frankie at alioth.debian.org
frankie at alioth.debian.org
Mon Jun 9 10:51:52 UTC 2008
Author: frankie
Date: 2008-06-09 10:51:52 +0000 (Mon, 09 Jun 2008)
New Revision: 1606
Added:
packages/postgis/trunk/debian/postgis-generic.postinst.in
Modified:
packages/postgis/trunk/debian/changelog
packages/postgis/trunk/debian/control
packages/postgis/trunk/debian/copyright
packages/postgis/trunk/debian/rules
Log:
Fix for inter-versions support
Modified: packages/postgis/trunk/debian/changelog
===================================================================
--- packages/postgis/trunk/debian/changelog 2008-06-08 09:40:34 UTC (rev 1605)
+++ packages/postgis/trunk/debian/changelog 2008-06-09 10:51:52 UTC (rev 1606)
@@ -1,3 +1,10 @@
+postgis (1.3.3-3) UNRELEASED; urgency=low
+
+ * Added Vcs-* fields in debian/control.
+ * Fixed download URL in debian/copyright.
+
+ -- Francesco Paolo Lovergine <frankie at debian.org> Sun, 08 Jun 2008 11:22:38 +0200
+
postgis (1.3.3-2) unstable; urgency=high
* Dropped postgresql 8.2 support due to removal in Lenny.
Modified: packages/postgis/trunk/debian/control
===================================================================
--- packages/postgis/trunk/debian/control 2008-06-08 09:40:34 UTC (rev 1605)
+++ packages/postgis/trunk/debian/control 2008-06-09 10:51:52 UTC (rev 1606)
@@ -3,9 +3,12 @@
Priority: optional
Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
Uploaders: Stephen Frost <sfrost at debian.org>, Fabio Tranchitella <kobold at debian.org>, Francesco Paolo Lovergine <frankie at debian.org>
-Build-Depends: debhelper (>= 5.0.0), autotools-dev, flex, bison, postgresql-server-dev-8.3, libgeos-dev, proj, libssl-dev, xsltproc, docbook, docbook-xsl, libpg-java, jikes-classpath, fastjar, libjts-java (>=1.7)
+Build-Depends: debhelper (>= 5.0.0), autotools-dev, flex, bison, postgresql-server-dev-8.3, libgeos-dev, proj,
+ libssl-dev, xsltproc, docbook, docbook-xsl, libpg-java, jikes-classpath, fastjar, libjts-java (>=1.7)
Standards-Version: 3.7.3
Homepage: http://postgis.refractions.net/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-grass/packages/postgis/
+Vcs-Svn: svn://svn.debian.org/pkg-grass/packages/postgis/
Package: postgresql-8.3-postgis
Architecture: any
Modified: packages/postgis/trunk/debian/copyright
===================================================================
--- packages/postgis/trunk/debian/copyright 2008-06-08 09:40:34 UTC (rev 1605)
+++ packages/postgis/trunk/debian/copyright 2008-06-09 10:51:52 UTC (rev 1606)
@@ -7,7 +7,7 @@
Additional debianization and changes by Stephen Frost <sfrost at debian.org>
for PostGIS 1.2.1 on or about Mon, 28 May 2007 21:28:24 -0400
-It was downloaded from http://www.postgis.org/download/postgis-1.2.1.tar.gz
+It was downloaded from http://www.postgis.org/download/
Copyright Holder: Refractions Research
Sandro Santilli, Paul Ramsey,
Added: packages/postgis/trunk/debian/postgis-generic.postinst.in
===================================================================
--- packages/postgis/trunk/debian/postgis-generic.postinst.in (rev 0)
+++ packages/postgis/trunk/debian/postgis-generic.postinst.in 2008-06-09 10:51:52 UTC (rev 1606)
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "config" ]; then
+ if [ -f /usr/lib/postgis/@POSTGIS_VERSION@/postgres/@POSTGRES_VERSION@/lib/liblwgeom.so. at SOVERSION@ ]; then
+ ln /usr/lib/postgis/@POSTGIS_VERSION@/postgres/@POSTGRES_VERSION@/lib/liblwgeom.so. at SOVERSION@ \
+ /usr/lib/postgresql/@POSTGRES_VERSION@/lib/liblwgeom.so. at SOVERSION@
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
Modified: packages/postgis/trunk/debian/rules
===================================================================
--- packages/postgis/trunk/debian/rules 2008-06-08 09:40:34 UTC (rev 1605)
+++ packages/postgis/trunk/debian/rules 2008-06-09 10:51:52 UTC (rev 1606)
@@ -23,6 +23,11 @@
CFLAGS = -Wall -g
+MAJOR_VERSION = $(shell grep REL_MAJOR_VERSION Version.config|cut -d= -f2)
+MINOR_VERSION = $(shell grep REL_MINOR_VERSION Version.config|cut -d= -f2)
+MICRO_VERSION = $(shell grep REL_MICRO_VERSION Version.config|cut -d= -f2)
+VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)
+
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
@@ -46,6 +51,7 @@
[ -f doc/html/postgis.html.prev ] && mv doc/html/postgis.html.prev doc/html/postgis.html || true
[ ! -f Makefile ] || $(MAKE) distclean
[ ! -f java/jdbc/Makefile ] || $(MAKE) -C java/jdbc clean
+ rm -f $(CURDIR)/debian/*.postinst
dh_clean
install: install-indep install-arch
@@ -93,9 +99,15 @@
$(MAKE) -C doc
$(MAKE) install prefix=$(CURDIR)/debian/postgresql-8.3-postgis/usr
$(MAKE) -C doc install prefix=$(CURDIR)/debian/postgis/usr
+ install -o root -g root -d $(CURDIR)/debian/postgresql-8.3-postgis/usr/lib/postgis/$(VERSION)/postgres/8.3/lib
+ mv $(CURDIR)/debian/postgresql-8.3-postgis/usr/lib/postgresql/8.3/lib/liblwgeom.so.$(MAJOR_VERSION).$(MINOR_VERSION) \
+ $(CURDIR)/debian/postgresql-8.3-postgis/usr/lib/postgis/$(VERSION)/postgres/8.3/lib
mv $(CURDIR)/debian/postgresql-8.3-postgis/usr/lib/postgresql/8.3/bin $(CURDIR)/debian/postgis/usr
$(MAKE) distclean
-
+ 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
dh_install -s
# Must not depend on anything. This is to be called by
More information about the Pkg-grass-devel
mailing list