Info2: << Package: postgis%type_pkg[postgresql] Version: 3.1.0 Revision: 2 Description: PostgreSQL geographic object support # This version only supports postgresql >=9.6 (upstream has a moving # window of pg version support). We have an older postgis that has # long had 9.[456] (with its included -java variant), so we'll leave # that as our support for older postgresql and have a separate package # for the newer package-version for more recent pg versions. Type: postgresql (10 11 12) License: BSD Maintainer: Benjamin Reed Depends: << gdal3-shlibs, json-c5-shlibs, libgeos3.6.1-shlibs, libgettext8-shlibs, libiconv, libpcre1-shlibs, libxml2-shlibs (>= 2.9.1-1), postgresql%type_pkg[postgresql]-shlibs, libproj19-shlibs << BuildDepends: << cunit1, dblatex, fink-package-precedence, gdal3-dev, imagemagick, json-c5, libgeos3.6.1, libgettext8-dev, libiconv-dev, libpcre1, libproj19, libxml2 (>= 2.9.1-1), libxslt-bin, pkgconfig, postgresql%type_pkg[postgresql]-dev << GCC: 4.0 Source: http://download.osgeo.org/postgis/source/postgis-%v.tar.gz Source-Checksum: SHA256(da06e2456876cd0c6a9bee0636ff700982e900c597d1e4cb80a99a2623400201) PatchScript: << # Disable check for appling bug-fix to apple's xml2config, # since we're using fink's libxml2. perl -pi -e 's/XCODE_VER=.*/XCODE_VER="(irrelevant for fink libxml2)"/' configure << SetCPPFLAGS: -DHAVE_OPTRESET -fno-common -MD # Needs protobuf-c >= 1.1.0; fink's is too old. ConfigureParams: << --with-pgconfig=%p/opt/postgresql-%type_raw[postgresql]/bin/pg_config \ --with-geosconfig=%p/opt/libgeos3.6.1/bin/geos-config \ --with-xsldir=%p/share/xml/xsl/docbook-xsl \ --with-libiconv=%p \ --without-protobuf \ --disable-static << CompileScript: << %{default_script} fink-package-precedence --depfile-ext='\.d' --no-libs . << InstallScript: << make install DESTDIR=%d datadir=%p/share/doc/%N << DocFiles: COPYING CREDITS ChangeLog NEWS README* TODO PostInstScript: << for file in pgsql2shp shp2pgsql; do %p/sbin/update-alternatives --install "%p/bin/$file" "$file" "%p/opt/postgresql-%type_raw[postgresql]/bin/$file" %type_pkg[postgresql] done cat < If you are upgrading your database from a previous PostGIS version, you need to upgrade the schema like so: sudo %p/bin/pgsql.sh-%type_raw[postgresql] start sudo -u postgres %p/opt/postgresql-%type_raw[postgresql]/bin/psql -f %p/share/doc/%N/contrib/postgis-1.5/postgis_upgrade_XX_to_15.sql -d EOF << PreRmScript: << if [ "$1" != "upgrade" ]; then for file in pgsql2shp shp2pgsql; do %p/sbin/update-alternatives --remove "$file" "%p/bin/$file-%type_raw[postgresql]" done fi << Homepage: http://postgis.refractions.net/ DescDetail: << PostGIS adds support for geographic objects to the PostgreSQL object-relational database. In effect, PostGIS "spatially enables" the PostgreSQL server, allowing it to be used as a backend spatial database for geographic information systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS follows the OpenGIS "Simple Features Specification for SQL" and has been certified as compliant with the "Types and Functions" profile. << DescUsage: << Note: This package does not do anything until you add it's schema to your database! If this is the first time you're using PostGIS in a particular database, you must install the schema like so: sudo %p/bin/pgsql.sh-%type_raw[postgresql] start sudo -u postgres %p/opt/postgresql-%type_raw[postgresql]/bin/psql \ -f %p/share/doc/%N/contrib/postgis-1.5/postgis.sql \ -d If you are upgrading your database from a previous PostGIS version, you need to upgrade the schema like so: sudo %p/bin/pgsql.sh-%type_raw[postgresql] start sudo -u postgres %p/opt/postgresql-%type_raw[postgresql]/bin/psql \ -f %p/share/doc/%N/contrib/postgis-1.5/postgis_upgrade_XX_to_15.sql \ -d << DescPackaging: << -java subpackage removed from upstream in later versions, now would be packaged separately << <<