diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2005-01-13 22:53:39 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2005-01-13 22:53:39 +0000 |
commit | 1060dcb89b2f39689ade2a387c8050b51fb9dadd (patch) | |
tree | dd927bc2061242441608284256ce97a05b63a5d9 /databases/postgis/pkg-install | |
parent | [1] Add i810 driver to AMD64 package. (diff) |
Postgis upgrade from 0.9.0 to 0.9.1
Postgis upgrade from 0.9.0 to 0.9.1
Other changes:
- Adds support to PostgreSQL 8
- Includes Postgis HTML documentation
PR: ports/76214
Submitted by: Anderson S. Ferreira <anderson@cnpm.embrapa.br>
Notes
Notes:
svn path=/head/; revision=126371
Diffstat (limited to 'databases/postgis/pkg-install')
-rw-r--r-- | databases/postgis/pkg-install | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/databases/postgis/pkg-install b/databases/postgis/pkg-install new file mode 100644 index 000000000000..05579c05d8b8 --- /dev/null +++ b/databases/postgis/pkg-install @@ -0,0 +1,52 @@ +#!/bin/sh + +msg(){ + echo " + ================== ** Postgis Upgrade Notice ** =================== + + The Postgis 0.9.1 port has changed the location of some files, + including libpostgis.so.0 library. If you are a user from a old + version of Postgis (0.9.0 or older), make a backup from your + databases before continue ! + + If you need to backup your data, press CTRL-C now ! + + ======================= GEOS Support Notice ======================= + In order to use the GEOS support, you may need to specially compile + your version of PostgreSQL to link the C++ runtime library. + To do this, invoke the PostgreSQL Makefile script this way: + + on csh shell: + + setenv LDFLAGS -lstdc++ + make + + on sh or bash shell: + + export LDFLAGS=-lstdc++ + make + + The initial LDFLAGS variable is passed through to the Makefile and + adds the C++ library to the linking stage. + + =================================================================== +" +sleep 10 + +} + +case "$2" in + "PRE-INSTALL") + msg + ;; + "POST-INSTALL") + PREF=${PREFIX:-$PKG_PREFIX} + SHAREDIR=${PREF}/share/postgis + LIBDIR=${PREF}/lib + sed -e "s|\$libdir|${LIBDIR}|g" ${SHAREDIR}/postgis.sql.default > ${SHAREDIR}/postgis.sql + sed -e "s|%%LIBDIR%%|${LIBDIR}|g" ${SHAREDIR}/updatedb.default > ${SHAREDIR}/updatedb + ;; + "MESSAGE") + msg + ;; +esac |