Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/database In directory vz-cvs-3.sog:/tmp/cvs-serv13370/stable/main/finkinfo/database
Modified Files: postgis.info Added Files: postgis83.info postgis83.patch Log Message: latest %v of postgis83 to stable (scrap older %v this variant) --- NEW FILE: postgis83.info --- Info4: << Package: postgis83 Version: 1.5.2 Revision: 1 Distribution: 10.4, 10.5, 10.6 Description: PostgreSQL geographic object support License: BSD Maintainer: Benjamin Reed <post...@fink.raccoonfink.com> Depends: << libgeos3.2.2-shlibs (>= 3.2.2-3), libxml2-shlibs, postgresql83-shlibs, proj-shlibs << BuildDepends: << fink (>= 0.30.0-1), jts, libgeos3.2.2 (>= 3.2.2-3), libiconv-dev, libxml2, postgresql83-dev, postgresql-java (>= 8.3-1), proj, system-openssl-dev, system-java (>= 1.5-1) << Replaces: postgresql83 GCC: 4.0 Source: http://postgis.refractions.net/download/postgis-%v.tar.gz Source-MD5: 772ec1d0f04d6800cd7e2420a97a7483 PatchScript: sed -e 's,@FINKPREFIX@,%p,g; s,@FINKPGRAWVERSION@,8.3,g; s,@FINKPGVERSION@,83,g' %{PatchFile} | patch -p1 PatchFile: %n.patch PatchFile-MD5: 640e860ba44ad562253491829b0a3e0f SetCPPFLAGS: -I%p/include/postgresql -I%p/include -fno-common NoSetCPPFLAGS: true NoSetLDFLAGS: true UseMaxBuildJobs: true ConfigureParams: --with-pgconfig=%p/bin/pg_config-8.3 --with-geosconfig=%p/opt/libgeos3.2.2/bin/geos-config --with-projdir=%p --with-xml2config=%p/bin/xml2-config CompileScript: << #!/bin/sh -ev export lt_cv_sys_max_cmd_len=65536 PGCONFIG=%p/bin/pg_config-8.3 export CPPFLAGS="-I%p/lib/system-openssl/include -DHAVE_OPTRESET -fno-common" export LDFLAGS="-L%p/lib/system-openssl/lib" export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home" export PATH="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin:$PATH" ./configure %c make libdir="%p/lib/postgresql-8.3" LPATH="%p/lib/postgresql-8.3" pushd java/jdbc make popd << InstallScript: << #!/bin/sh -ev make -j1 install DESTDIR=%d libdir=%p/lib/postgresql-8.3 LPATH="%p/lib/postgresql-8.3" datadir=%p/share/doc/%N for file in pgsql2shp shp2pgsql; do mv %i/bin/$file %i/bin/$file-8.3 done << DocFiles: COPYING CREDITS ChangeLog NEWS README* TODO SplitOff: << Package: %N-java Depends: << jts, postgresql-java (>= 8.3-1) << JarFiles: java/jdbc/postgis.jar java/pljava/postgis_pljava.jar << PostInstScript: << for file in pgsql2shp shp2pgsql; do %p/sbin/update-alternatives --install "%p/bin/$file" "$file" "%p/bin/$file-8.3" 83 done # obsolete, from the old package for file in createdb.postgis mktemplate_gis mktemplate_gis.sh postgis_env.sh postgres_lib.sh rmtemplate_gis rmtemplate_gis.sh; do %p/sbin/update-alternatives --remove "$file" "%p/bin/$file-8.3" done for file in createdb.postgis.1 mktemplate_gis.1 rmtemplate_gis.1; do %p/sbin/update-alternatives --remove "$file" "%p/bin/$file-8.3" done %p/sbin/update-alternatives --remove "postgis-default" "%p/etc/%N" cat <<EOF 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-8.3 start sudo -u postgres %p/bin/psql-8.3 -f %p/share/doc/%N/contrib/postgis-1.5/postgis.sql -d <your_spatial_database> If you are upgrading your database from a previous PostGIS version, you need to upgrade the schema like so: sudo %p/bin/pgsql.sh-8.3 start sudo -u postgres %p/bin/psql-8.3 -f %p/share/doc/%N/contrib/postgis-1.5/postgis_upgrade_XX_to_15.sql -d <your_spatial_database> EOF << PreRmScript: << if [ "$1" != "upgrade" ]; then for file in pgsql2shp shp2pgsql; do %p/sbin/update-alternatives --remove "$file" "%p/bin/$file-8.3" 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-8.3 start sudo -u postgres %p/bin/psql-8.3 \ -f %p/share/doc/%N/contrib/postgis-1.5/postgis.sql \ -d <your_spatial_database> If you are upgrading your database from a previous PostGIS version, you need to upgrade the schema like so: sudo %p/bin/pgsql.sh-8.3 start sudo -u postgres %p/bin/psql-8.3 \ -f %p/share/doc/%N/contrib/postgis-1.5/postgis_upgrade_XX_to_15.sql \ -d <your_spatial_database> << << --- NEW FILE: postgis83.patch --- Distribution: 10.4, 10.5, 10.6 diff -Nurd postgis-1.5.2/README.postgis postgis-1.5.2-new/README.postgis --- postgis-1.5.2/README.postgis 2010-09-27 11:16:58.000000000 -0400 +++ postgis-1.5.2-new/README.postgis 2010-12-29 09:59:20.000000000 -0500 @@ -146,8 +146,8 @@ So, as postgres run: - createlang plpgsql <yourdatabase> - psql -f postgis/postgis.sql -d <your_database> + createlang-@FINKPGRAWVERSION@ plpgsql <yourdatabase> + psql-@FINKPGRAWVERSION@ -f postgis/postgis.sql -d <your_database> Your database should now be spatially enabled. @@ -197,7 +197,7 @@ # Create a "custom-format" dump of the database you want # to upgrade (let's call it "olddb") [...972 lines suppressed...] +`createdb-@FINKPGRAWVERSION@ $createdb_opt $dbname`; die "Database creation failed\n" if ($?); print "Adding plpgsql\n"; -`createlang plpgsql $dbname`; +`createlang-@FINKPGRAWVERSION@ plpgsql $dbname`; # # Open a pipe to the SQL monitor # -open( PSQL, "| psql -a $dbname") || die "Can't run psql\n"; +open( PSQL, "| psql-@FINKPGRAWVERSION@ -a $dbname") || die "Can't run psql\n"; # # Source new postgis.sql @@ -745,4 +745,4 @@ open(INPUT, "<$dumpascii") || die "Can't read $postgissql\n"; while(<INPUT>) { print PSQL; } close(INPUT); -close(PSQL) || die "psql run failed\n" +close(PSQL) || die "psql-@FINKPGRAWVERSION@ run failed\n" Index: postgis.info =================================================================== RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/database/postgis.info,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- postgis.info 29 Dec 2010 14:22:34 -0000 1.8 +++ postgis.info 4 Feb 2012 21:30:00 -0000 1.9 @@ -3,7 +3,7 @@ Version: 1.5.1 Revision: 2 Description: PostgreSQL geographic object support -Type: postgresql (8.0 8.1 8.2 8.3) +Type: postgresql (8.0 8.1 8.2) License: BSD Maintainer: Benjamin Reed <post...@fink.racoonfink.com> ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs