[DebianGIS-dev] CVS Update: postgis/debian README.Debian _oneutils.package _supported.postgresql changelog control createdb.postgis createdb.postgis.1 debian_versionname.sh logtop.sh mktemplate_gis.1 mkupstreampatch.sh pg_majdotmin.sh postgis_wrapper.in postgresq-postgis-common.manpages postgresql.vars.awk postgresql.vars.mk postgresql.vars.sh rmtemplate_gis.1 rules rules-1.1 sofiles.mk

pabs-guest at haydn.debian.org pabs-guest at haydn.debian.org
Wed Mar 22 15:41:16 UTC 2006


  User: pabs-guest
  Date: 06/03/22 15:41:16

  Modified:    debian   README.Debian changelog control rules
  Added:       debian   _oneutils.package _supported.postgresql
                        createdb.postgis createdb.postgis.1
                        debian_versionname.sh logtop.sh mktemplate_gis.1
                        mkupstreampatch.sh pg_majdotmin.sh
                        postgis_wrapper.in
                        postgresq-postgis-common.manpages
                        postgresql.vars.awk postgresql.vars.mk
                        postgresql.vars.sh rmtemplate_gis.1 rules-1.1
                        sofiles.mk
  Log:
  Add Alex's postgis 1.1 packaging. TODO: patches for stuff outside debian/
  
  Revision  Changes    Path
  1.2       +54 -22    postgis/debian/README.Debian
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/README.Debian?annotate=1.2&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/README.Debian?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=
  
  CVSWeb: Diff to previous version:   http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/README.Debian.diff?r1=1.2&r2=1.1&cvsroot=
  
  -----------------------------------
  
  Index: README.Debian
  ===================================================================
  RCS file: /cvsroot/pkg-grass/postgis/debian/README.Debian,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- README.Debian	26 Mar 2005 22:29:24 -0000	1.1
  +++ README.Debian	22 Mar 2006 15:41:16 -0000	1.2
  @@ -8,42 +8,74 @@
   upstream installation scheme. changes i've proposed to the upstream makefiles 
   are of general benefit (not especially for debian).
   
  -postgis dependency on postgresql consists of a few configuration files, and the 
  -include files for the server and client postgresql api's. here, the include 
  -files are pointing to where debian has those installed, and the other files 
  -are been copied from the source tree of the relevant postgresql distribution, 
  -as updated by postgresql configure.
  +for postgis older than 1.1.0:
  +making postgis dependency on postgresql sources consists of a few configuration 
  +files, and the include files for the server and client postgresql api's. here, 
  +the include files are pointing to where debian has those installed, and the 
  +other files are been copied from the source tree of the relevant postgresql 
  +distribution, as updated by postgresql configure.
   the installed postgresql api version can be determined automatically, and thus 
   the postgresql configuration will be automatically selected.
  -the debian/pgsql##_src directories contain files from the original postgresql 
  +the debian/pgsql_src directory contains files from the original postgresql 
   source for it's various versions, and those files are copyrighted differently. 
  -see debian/COPYRIGHT.pgsql##_src.
  -if you happen to experiment with a postgresql source tree not represented here, 
  -or that it's api include files are not been installed the way debian would 
  -(pg_config --includedir), please make a link debian/pgsql_src to your own 
  -postgresql source tree root, or define PGSQL_SRC as for upstream postgis.
  -
  -the installation process is creating a template database named template_gis,
  -that may be used to automaticaly create postgis enabled databases. the template 
  -database may be made manually at a later time, if postgis installation process 
  -will not detect a running postgresql server.
  +see debian/pgsql_src/COPYRIGHT.pg.
  +if you are adding pgsql_src for a new version, please replace eventual host 
  +specific variables, like CC=i386-linux-gcc, with their generic counterparts, 
  +like gcc here.
   
   the resulting packages will have the library SONAME included in their names, so
   that upgrading will not break older files. thus, the user will allways create 
  -databases with the newest installed postgis, while upgrading databases based 
  +databases with the newest installed postgis, while databases based 
   upon older versions will still work with their own postgis version, until 
   explicitly upgraded. in a vision, that every postgis database will create and 
   install a package, dependent on postgis at the SONAME version when the database 
   was created, older postgis may be removed only after the user has upgraded every
  -dependent database.
  +dependent database. a query on the versions of postgis used in various databases 
  +may fail the prerm in case existing databases are depending on this postgis 
  +version.
   
   to install from the sources, please do:
  -zcat $location/postgis_1.0.0RC4-2.diff.gz | patch -p1; chmod ug+x debian/rules, 
  +zcat $location/postgis_$version.diff.gz | patch -p1; chmod ug+x debian/rules, 
   being in the root of your current postgis distribution.
   
  -please run 'fakeroot debian/rules clean' after 'dpkg-buildpackage -rfakeroot' 
  -before making postgis for another postgresql version.
  +to perform the tests, your current $USER should have creating database privilege,
  +and should have received at least select permissions on the tables that come with
  +postgis: geometry_columns and spatial_ref_sys. to automatically grant superuser
  +privileges on postgis tables only, become root or postgres or cluster dba, and run 
  +mktemplate_gis --user=$db_owner_to_be.
  +grant create database privilege to the same user, separately.
  +rmtemplate_gis will remove such template.
  +
  +please consult the relevant manpages.
  +
  +the postgis template will not be installed upon postgis installation, nor 
  +removed upon removing postgis. the main importance of the template is for 
  +allowing non-dba/non-cluster owners to be able to create databases (createdb 
  +privilege needed, of course), and doing this would anyway require running 
  +mktemplate_gis with custom parameters, especially for the user to own the 
  +template and for the postgis version to be used herein.
  +
  +if you are using the new multicluster architecture of postgresql, please note 
  +the following:
  +manually activating the template_gis related scripts might need specification 
  +of the postgresql version and cluster, like:
  +PGCLUSTER=8.0/main [your_command], 
  +or calling:
  +[your_command] --cluster 7.4/mycluster
  +
  +new configuration files are available to set system-wide/user specific defaults 
  +for the template database name, postgis version to use, dba to make the 
  +template, instead of the cluster owner (for multicluster versions only), or 
  +famous postgres etc. the template scripts are scanning /etc/default/postgis, 
  +~/.postgis/profile, the environment, and then the command line for the values 
  +of the parameters. later scanned values are overriding earlier ones.
  +
  +the package will now build only for the postgresql versions listed in: 
  +debian/_supported.postgresql, provided that those are installed in your systems. 
  +if you wish to modify this file, please just run: 
  +debian/rules maintainer-config
  +afterwards.
   
   please direct any problems and questions on this package (but not on the 
   upstream software) to me,
  -alexbodn at 012.net.il
  +alexbodn at 012.net.il, or roberto.boati at gmail.com
  
  
  
  1.2       +227 -1    postgis/debian/changelog
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/changelog?annotate=1.2&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/changelog?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=
  
  CVSWeb: Diff to previous version:   http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/changelog.diff?r1=1.2&r2=1.1&cvsroot=
  
  -----------------------------------
  
  Index: changelog
  ===================================================================
  RCS file: /cvsroot/pkg-grass/postgis/debian/changelog,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- changelog	26 Mar 2005 22:29:24 -0000	1.1
  +++ changelog	22 Mar 2006 15:41:16 -0000	1.2
  @@ -1,8 +1,234 @@
  +postgis (1.1.0-7) unstable; urgency=low
  +
  +  * postgresql-postgis-common should depend on postgresql-common | postgresql, 
  +    not the other way.
  +  
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Tue, 21 Mar 2006 03:13:04 +0200
  +
  +postgis (1.1.0-6) unstable; urgency=low
  +
  +  * Closes: #312675
  +    postgresql-postgis-utils is the only utils package, replacing the 
  +    previous postgresql-pg_version-postgis-utils. a further elimination 
  +    of older method reminiscence.
  +  
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Sat, 18 Mar 2006 23:13:04 +0200
  +
  +postgis (1.1.0-5) unstable; urgency=low
  +
  +  * Closes: #312675
  +    postgresql-postgis-utils is the only utils package, replacing the 
  +    previous postgresql-pg_version-postgis-utils.
  +  * Closes: 335631
  +    Depends on libgeos which passed c2 ABI transition.
  +  * Uses /usr/share/postgresql-common/supported-versions to dynamically
  +    detect postgresql supported versions. thanks martin.
  +  
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Thu, 9 Mar 2006 04:26:05 +0200
  +
  +postgis (1.1.0-4) unstable; urgency=low
  +
  +  * made invariable control file to match standards. the control file 
  +    may be made automatically by calling 'debian/rules maintainer-configure'
  +  * the supported postgresql versions may be filtered, by filling 
  +    'debian/_supported.postgresql'.
  +  * the postgis binary packages have been renamed, to obey the postgresql 
  +    standard for extension packages: now their name allways begins with 
  +    'postgresql', eventually followed by the postgresql major and minor 
  +    version, if a specific one is needed.
  +    'libpostgis' has become 'postgis'.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Mon, 27 Feb 2006 03:26:15 +0200
  +
  +postgis (1.1.0-3) unstable; urgency=low
  +
  +  * minor bug fixes
  +  * recompilation
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Sun, 26 Feb 2006 05:16:09 +0200
  +
  +postgis (1.1.0-2) unstable; urgency=low
  +
  +  * minor bug fixes
  +  * the package builds again on systems without multiclustering postgresql.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Wed, 28 Dec 2005 07:11:39 +0200
  +
  +postgis (1.1.0-1) unstable; urgency=low
  +
  +  * Automatic upstream version tracking.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Wed, 21 Dec 2005 05:15:37 +0200
  +
  +postgis (1.0.4-2) unstable; urgency=low
  +
  +  * Closes: #321913 Closes: #312676
  +    Support of multiple postgis installations on the same postgresql server.
  +    Please note:
  +    - The template database will be template_gis#SONAME#,
  +    - The famous (lw)?postgis.sql file will be postgis#SONAME#.sql,
  +    where #SONAME# is roughly the major upstream postgis version.
  +  * Closes: #323120
  +    The building process is autodetecting the appropriate postgresql-dev.
  +  * README.Debian updated to support multiversion postgresql architecture.
  +  * Closes: #314854
  +    Newer upstream version.
  +  * Minor improvements to make the build process more quiet.
  +  * Default variables are being kept in configuration files. Thus, the same 
  +    package diff will serve for postgis-0.9 and 1.0.
  +  * Closes: #310100
  +    The template database is no longer been installed/removed with every
  +    installation/remove/upgrade of postgis. It should have received finer 
  +    grained parameters, anyway .
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Sun, 16 Oct 2005 03:31:03 +0200
  +
  +postgis (0.9.2-1) unstable; urgency=low
  +
  +  * Basic support for libpostgis0.
  +    The only package(s) made are the library and examples one(s), so that 
  +    postgis-0.9.2 databases can be created and used, while not clashing with 
  +    files and utilities for postgis-1.0.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Sun, 9 Oct 2005 09:49:04 +0200
  +
  +postgis (1.0.4-1) unstable; urgency=low
  +
  +  * Automatic upstream version tracking.
  +  * Closes: #316519
  +    Changed the dependencies in control file to work with multiversion 
  +    postgresql.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Sat, 1 Oct 2005 18:07:37 +0300
  +
  +postgis (1.0.3-1) unstable; urgency=low
  +
  +  * Automatic upstream version tracking.
  +  * Adapted regress/test_index_concurrency to createdb.postgis method.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Thu, 1 Sep 2005 04:27:26 +0300
  +
  +postgis (1.0.1-1) unstable; urgency=low
  +
  +  * Automatic upstream version tracking.
  +  * Closes: #309528
  +    binary-all has been separated from binary-arch
  +  * Closes: #311732
  +    upstream fix: problem with ' char in field names.
  +  * Closes: #310094
  +    all warnings have been clarified and/or the issues have been fixed
  +  * libpostgis-java-debug has been split from libpostgis-java
  +  * bug #308728 has been reassigned to postgresql
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Fri, 27 May 2005 17:17:06 +0300
  +
  +postgis (1.0.0-2) unstable; urgency=low
  +
  +  * Closes: #308848
  +    gcj has been specifically set as the required java compiler, although other
  +    java compilers would do as well
  +  * Closes: #310101
  +    createdb.postgis documentation updated
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Fri,  27 May 2005 05:02:45 +0300
  +
  +postgis (1.0.0-1) unstable; urgency=low
  +
  +  * First official release for the Debian archive.
  +  * Corrected build-depends.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Thu,  5 May 2005 10:02:45 +0200
  +
  +postgis (1.0.0RELEASE-4) unstable; urgency=low
  +
  +  * example wkb_reader now compiles generically. tested with i386 and ppc.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Thu, 5 May 2005 05:14:02 +0300
  +
  +postgis (1.0.0RELEASE-3) unstable; urgency=low
  +
  +  * mktemplate_gis and rmtemplate_gis work on dash.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Sat, 30 Apr 2005 17:34:02 +0300
  +postgis (1.0.0RELEASE-2) unstable; urgency=low
  +
  +  * Fixed minor typos in manual pages.
  +  * Documented the special debian usage of the ogc_test_suite.
  +  * Fixed bug in automatic upstream version tracking.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Sat, 30 Apr 2005 16:25:22 +0300
  +
  +
  +postgis (1.0.0RELEASE-1) unstable; urgency=low
  +
  +  * Automatic upstream version tracking.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Sat, 30 Apr 2005 15:33:00 +0300
  +
  +postgis (1.0.0RELEASE-1) unstable; urgency=low
  +
  +  * Automatic upstream version tracking.
  +  * added libpostgisjava replacement directive.
  +  * improved automatic upstream version sensing: adding RELEASE for clean
  +    upstream versions.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Sun, 24 Apr 2005 20:04:36 +0300
  +
  +postgis (1.0.0RC6-6) unstable; urgency=low
  +
  +  * renamed libpostgisjava to libpostgis-java
  +  * specified libgeos2 version 2.1.1 and above as a dependency. 
  +    upstream authors will be warned to document this too.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Fri, 22 Apr 2005 18:49:01 +0200
  +
  +postgis (1.0.0RC6-5) unstable; urgency=low
  +
  +  * Cleaned up removal of .cvsignore files, so it will not be imposed on upstream.
  +  * Added optional usage of postgresql-dev installed at custom location.
  +  * NOTICE: Since manpages have been added and constantly updated after 1.0.0rc6 
  +    was released, please     copy them from postgis-cvs to the orig directory, or 
  +    use orig file uploaded with this package
  +  * Improved the dependencies system, following suggestions from 
  +    Markus Schaber <markus at schabi.de>
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Fri, 15 Apr 2005 14:49:01 +0200
  +
  +postgis (1.0.0RC6-4) unstable; urgency=low
  +
  +  * Adjusted useless i386-linux-gcc to gcc (existent for postgresql 7.4 only), thanks to comments from
  +    Giuseppe Sacco <giuseppe at eppesuigoccas.homedns.org>
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Tue, 12 Apr 2005 04:12:01 +0200
  +
  +postgis (1.0.0RC6-3) unstable; urgency=low
  +
  +  * Improved build-depends, thanks to comments from
  +    Giuseppe Sacco <giuseppe at eppesuigoccas.homedns.org>
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Mon, 11 Apr 2005 05:15:01 +0200
  +
  +postgis (1.0.0RC6-2) unstable; urgency=low
  +
  +  * Improved mktemplate_gis, and renamed from mktemplate_gis.sh.
  +  * Updated man pages.
  +  * Using createdb.postgis as the main method of creating gis enambled databases.
  +  * Updated upstream testing scripts to use createdb.postgis.
  +  * Fixind problem: postgres should be able to call mktemplate_gis.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Thu, 31 Mar 2005 05:05:41 +0200
  +
  +postgis (1.0.0RC6-1) unstable; urgency=low
  +
  +  * Automatic upstream version tracking.
  +
  + -- Alex Bodnaru <alexbodn at 012.net.il>  Thu, 31 Mar 2005 05:05:41 +0200
  +
   postgis (1.0.0RC4-2) unstable; urgency=low
   
     * Minor bugfix in debian/rules
     * Removed need for executable files in ./debian. rules is the only executable.
  -  * Improvement for mktemplate_gis.sh: now it may be run to grant full privileges to any user as argument.
  +  * Improvement for mktemplate_gis: now it may be run to grant full privileges to any user as argument.
   
    -- Alex Bodnaru <alexbodn at 012.net.il>  Tue, 22 Mar 2005 03:51:20 +0200
   
  
  
  
  1.3       +141 -24   postgis/debian/control
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/control?annotate=1.3&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/control?rev=1.3&content-type=text/x-cvsweb-markup&cvsroot=
  
  CVSWeb: Diff to previous version:   http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/control.diff?r1=1.3&r2=1.2&cvsroot=
  
  -----------------------------------
  
  Index: control
  ===================================================================
  RCS file: /cvsroot/pkg-grass/postgis/debian/control,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- control	22 Mar 2006 15:07:39 -0000	1.2
  +++ control	22 Mar 2006 15:41:16 -0000	1.3
  @@ -1,19 +1,17 @@
   Source: postgis
  -Section: science
  +Section: libs
   Priority: optional
   Maintainer: Alex Bodnaru <alexbodn at 012.net.il>
  -Build-Depends: debhelper (>= 4.0.0), devscripts, findutils, libgeos-dev, proj, c-compiler, c++-compiler, postgresql-dev (>= 7.2.0), libpgjava, java-compiler, fastjar
  -Standards-Version: 3.6.1
  +Build-Depends: debhelper (>= 4.0.0), devscripts, gawk | awk, binutils | binutils-multiarch, flex, bison, autoconf, libgeos-dev, proj, libpgjava, gcj | java-compiler, fastjar , postgresql-server-dev-8.0, postgresql-server-dev-7.4, postgresql-server-dev-8.1
  +Standards-Version: 3.6.2
   
  -Package: libpostgis1-pg74
  -Section: science
  +Package: postgresql-postgis-examples
  +Section: doc
   Priority: optional
  -Provides: libpostgis
  -Architecture: any
  -Depends: ${shlibs:Depends}, postgresql (>= 7.4.0), postgresql-contrib (>= 7.4.0), sudo
  -Conflicts: postgresql (>> 7.4.99)
  -Recommends: libpostgis1-pg74-doc (= ${Source-Version})
  -Description: geographic objects support for PostgreSQL
  +Conflicts: libpostgis-examples
  +Replaces: libpostgis-examples
  +Architecture: all
  +Description: geographic objects support for PostgreSQL. Examples
    PostGIS adds support for geographic objects to the 
    PostgreSQL object-relational database. In effect, 
    PostGIS "spatially enables" the PostgreSQL server, 
  @@ -23,13 +21,14 @@
    follows the OpenGIS "Simple Features Specification 
    for SQL" and will be submitted for conformance 
    testing at version 1.0.
  - .
  -  Homepage: http://postgis.refractions.net
  -
  -Package: libpostgis-doc
  + This package contains examples for PostGIS .
  + 
  +Package: postgresql-postgis-doc
   Section: doc
   Priority: optional
   Architecture: all
  +Conflicts: libpostgis-doc
  +Replaces: libpostgis-doc
   Description: geographic objects support for PostgreSQL. Documentation
    PostGIS adds support for geographic objects to the 
    PostgreSQL object-relational database. In effect, 
  @@ -40,16 +39,16 @@
    follows the OpenGIS "Simple Features Specification 
    for SQL" and will be submitted for conformance 
    testing at version 1.0.
  - .
    This package contains documentation for PostGIS.
  - .
  -  Homepage: http://postgis.refractions.net
   
  -Package: libpostgisjava
  -Section: science
  +Package: postgresql-postgis-java
  +Section: libs
   Priority: optional
  +Conflicts: libpostgis-jdbc, libpostgisjava, libpostgis-java
   Architecture: all
  -Depends: libpostgis, libpgjava
  +Depends: libpgjava
  +Recommends: postgresql-postgis
  +Replaces: libpostgis-jdbc, libpostgisjava, libpostgis-java
   Description: geographic objects support for PostgreSQL. JDBC
    PostGIS adds support for geographic objects to the 
    PostgreSQL object-relational database. In effect, 
  @@ -60,7 +59,125 @@
    follows the OpenGIS "Simple Features Specification 
    for SQL" and will be submitted for conformance 
    testing at version 1.0.
  - .
    This package adds JDBC support.
  - .
  -  Homepage: http://postgis.refractions.net
  +
  +Package: postgresql-postgis-java-debug
  +Section: libdevel
  +Priority: optional
  +Architecture: all
  +Depends: postgresql-postgis-java (= ${Source-Version})
  +Conflicts: libpostgis-jdbc, libpostgisjava, libpostgis-java-debug
  +Replaces: libpostgis-jdbc, libpostgisjava, libpostgis-java-debug
  +Description: geographic objects support for PostgreSQL. JDBC debugging
  + 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 will be submitted for conformance 
  + testing at version 1.0.
  + This package adds JDBC support, with debug facilities.
  +
  +Package: postgresql-postgis-common
  +Section: libs
  +Priority: optional
  +Architecture: all
  +Depends: postgresql-common | postgresql
  +Replaces: libpostgis0-common, libpostgis1-common, libpostgis-common
  +Conflicts: libpostgis0-common, libpostgis1-common, libpostgis-common
  +Description: geographic objects support for PostgreSQL. common files
  + 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 will be submitted for conformance 
  + testing at version 1.0.
  + This package contains files common to postgresql-postgis packages
  + installed concurrently on the same system.
  +
  +Package: postgresql-8.0-postgis1
  +Section: libs
  +Priority: optional
  +Provides: postgresql-postgis, postgresql-postgis1
  +Conflicts: postgis, libpostgis1-pg8.0 
  +Replaces: libpostgis, libpostgis1-pg8.0 
  +Architecture: any
  +Depends: ${shlibs:Depends}, postgresql-postgis-utils , postgresql-8.0, postgresql-contrib-8.0
  +Suggests: postgresql-postgis-examples (>= ${Source-Version})
  +Description: geographic objects support for PostgreSQL
  + 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 will be submitted for conformance 
  + testing at version 1.0.
  +
  +Package: postgresql-7.4-postgis1
  +Section: libs
  +Priority: optional
  +Provides: postgresql-postgis, postgresql-postgis1
  +Conflicts: postgis, libpostgis1-pg7.4 
  +Replaces: libpostgis, libpostgis1-pg7.4 
  +Architecture: any
  +Depends: ${shlibs:Depends}, postgresql-postgis-utils , postgresql-7.4, postgresql-contrib-7.4
  +Suggests: postgresql-postgis-examples (>= ${Source-Version})
  +Description: geographic objects support for PostgreSQL
  + 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 will be submitted for conformance 
  + testing at version 1.0.
  +
  +Package: postgresql-8.1-postgis1
  +Section: libs
  +Priority: optional
  +Provides: postgresql-postgis, postgresql-postgis1
  +Conflicts: postgis, libpostgis1-pg8.1 
  +Replaces: libpostgis, libpostgis1-pg8.1 
  +Architecture: any
  +Depends: ${shlibs:Depends}, postgresql-postgis-utils , postgresql-8.1, postgresql-contrib-8.1
  +Suggests: postgresql-postgis-examples (>= ${Source-Version})
  +Description: geographic objects support for PostgreSQL
  + 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 will be submitted for conformance 
  + testing at version 1.0.
  +
  +Package: postgresql-postgis-utils
  +Section: libs
  +Priority: optional
  +Architecture: any
  +Depends: postgresql-postgis-common (= ${Source-Version})
  +Replaces: , libpostgis1-pg74, libpostgis-utils-pg7.4, postgresql-7.4-postgis-utils, libpostgis1-pg80, libpostgis-utils-pg8.0, postgresql-8.0-postgis-utils, libpostgis1-pg81, libpostgis-utils-pg8.1, postgresql-8.1-postgis-utils
  +Conflicts: , libpostgis1-pg74, libpostgis-utils-pg7.4, postgresql-7.4-postgis-utils, libpostgis1-pg80, libpostgis-utils-pg8.0, postgresql-8.0-postgis-utils, libpostgis1-pg81, libpostgis-utils-pg8.1, postgresql-8.1-postgis-utils
  +Description: geographic objects support for PostgreSQL. client utilities
  + 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 will be submitted for conformance 
  + testing at version 1.0.
  + This package contains files common to postgresql-postgis packages
  + installed concurrently on the same system, but depending on
  + postgresql server .
  +
  
  
  
  1.2       +145 -128  postgis/debian/rules
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/rules?annotate=1.2&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/rules?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=
  
  CVSWeb: Diff to previous version:   http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/rules.diff?r1=1.2&r2=1.1&cvsroot=
  
  -----------------------------------
  
  Index: rules
  ===================================================================
  RCS file: /cvsroot/pkg-grass/postgis/debian/rules,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rules	26 Mar 2005 22:29:24 -0000	1.1
  +++ rules	22 Mar 2006 15:41:16 -0000	1.2
  @@ -9,62 +9,52 @@
   # Uncomment this to turn on verbose mode.
   #export DH_VERBOSE=1
   
  -main_prefix := $(shell pg_config --configure | \
  -                 awk 'BEGIN {RS = " "; FS = "=";} {if (match($$1,"--prefix$$")) {gsub("'\''$$", "", $$0); print $$2;}}')
  +
  +# file to include for version-specific commands
  +include debian/rules-1.1
  +
  +main_prefix:=usr
   REL_DEBDIR=debian
   DEBDIR=$(CURDIR)/$(REL_DEBDIR)
   
  -JAVA_PATH=/usr/share/java
  -XSLBASE=$(shell find /usr/share/ -path */html/docbook.xsl | head -n1 | \
  -          awk '{gsub("/html/docbook.xsl$$","",$$0); print $$0;}')
  -
  -LIB_NAME=`ls lwgeom/lib*.so.* | head -n1`
  -#determine postgreql src directory
  -PGSQL_SRC:=${PGSQL_SRC}
  -pg_ver:=
  -ifeq (,$(PGSQL_SRC))
  -ifeq (,$(findstring Makefile,$(wildcard $(DEBDIR)/pgsql_src/src/*)))
  -    override pg_majdotmin:=$(shell pg_config --version | \
  -                             awk '{print $$2;}' | awk -F . '{print $$1"."$$2;}')
  -    override pg_ver=$(shell echo $(pg_majdotmin) | awk -F . '{print $$1$$2;}')
  -endif
  -override PGSQL_SRC:=$(DEBDIR)/pgsql$(pg_ver)_src
  -ifeq (,$(findstring Makefile,$(wildcard $(PGSQL_SRC)/src/*)))
  -    override PGSQL_SRC:=
  -endif
  -endif
  -ifeq (,$(PGSQL_SRC))
  -    override PGSQL_SRC:=$(CURDIR)/../..
  -endif
  -
  -PG_VAR=PGSQL_SRC=$(PGSQL_SRC) make -f $(DEBDIR)/postgresql.vars
  -# WARNING: do not use those vars before touching the files in configure:
  -bindir=$(shell $(PG_VAR) REQVAR=bindir)
  -datadir=$(shell $(PG_VAR) REQVAR=datadir)
  -docdir=$(shell $(PG_VAR) REQVAR=docdir)
  -libdir=$(shell $(PG_VAR) REQVAR=pkglibdir)
  +JAVA_PATH=/$(main_prefix)/share/java
   
  -DESTDIR=$(DEBDIR)/tmp
  -REL_DESTDIR=$(REL_DEBDIR)/tmp
   
  -ifeq (,$(pg_ver))
  -    override pg_majdotmin:=$(shell grep -w PG_VERSION $(PGSQL_SRC)/src/include/*config.h | \
  -                             awk '{gsub("\"","",$$3); print $$3;}' | awk -F . '{print $$1"."$$2;}')
  -    override pg_ver=$(shell echo $(pg_majdotmin) | awk -F . '{print $$1$$2;}')
  +pg_majdotmin=$(shell $(PG_CONFIG) --version | \
  +               awk '{print $$2;}' | awk -F . '{print $$1"."$$2;}')
  +
  +ifneq (,$(shell dpkg-query -W postgresql-common | awk '{print $$2;}'))
  +    PG_TYPE=multipg
  +    $(shell chmod ug+x $(DEBDIR)/pg_majdotmin.sh)
  +    FIND_PG_CONFIGS=find /$(main_prefix)/lib/postgresql -name pg_config -exec $(DEBDIR)/pg_majdotmin.sh '{}' $(DEBDIR)/_supported.postgresql ';'
  +    PG_CONFIGS=$(shell $(FIND_PG_CONFIGS))
  +    PG_VERSIONS=$(foreach PG_CONFIG,$(PG_CONFIGS),$(shell echo $(pg_majdotmin);))
  +    ONEUTILS=$(DEBDIR)/_oneutils.package 
   else
  -    our_postgres="true"
  +    PG_TYPE=onepg
  +    PG_CONFIGS=pg_config
  +    PG_CONFIG=$(PG_CONFIGS)
  +    PG_VERSIONS=$(pg_majdotmin)
   endif
   
  -AWK_PG_REP='{gsub("@pg_datadir@", "$(datadir)"); \
  -             gsub("@pg_bindir@", "$(bindir)"); \
  -             gsub("@pg_docdir@", "$(docdir)"); \
  -             gsub("@pg_libdir@", "$(libdir)"); \
  -             gsub("@pg_version@", "$(pg_ver)"); \
  -             gsub("@pg_majdotmin@", "$(pg_majdotmin)"); \
  -             print $$0;}'
  +bindir=$(shell $(PG_CONFIG) --bindir)
  +sharedir=$(main_prefix)/share/postgresql-postgis-common
  +examplesdir=$(main_prefix)/share/postgresql-postgis$(INITIAL_MAJOR)-examples
   
  -MAKE+= USE_GEOS=1 GEOS_DIR=$(main_prefix) USE_PROJ=1 PROJ_DIR=$(main_prefix) \
  -       PGSQL_SRC=$(PGSQL_SRC)
  +DESTDIR=$(DEBDIR)/tmp
  +REL_DESTDIR=$(REL_DEBDIR)/tmp
  +PATCHDIR=$(DEBDIR)/patches
  +PATCHFILE=$(PATCHDIR)/upstream-$(version).diff
  +PATCHLEVEL=`cat $(PATCHDIR)/patch.level`
  +PATCHREJ=$(PATCHDIR)/rejects
  +main_bin=$(main_prefix)/bin
  +pg_main_bin=$(main_prefix)/lib/postgresql/bin
  +
  +export CURDIR DESTDIR DEBDIR LIB_LOC main_prefix main_bin sharedir \
  +       HAVE_DOC HAVE_UTILS HAVE_COMMON HAVE_JAVA DIR_JAVA JAVA_DEBUG \
  +       PG_CONFIG PG_VERSIONS INITIAL_MAJOR CLASSPATH major pg_main_bin
  +
  +MAKE+= USE_GEOS=1 GEOS_DIR=/$(main_prefix) USE_PROJ=1 PROJ_DIR=/$(main_prefix)
   
   CFLAGS += -Wall -g
   
  @@ -78,128 +68,155 @@
   endif
   
   # shared library versions
  -major=`grep ^SO_MAJOR_VERSION Version.config | cut -d= -f2`
  -minor=`grep ^SO_MINOR_VERSION Version.config | cut -d= -f2`
  -micro=`grep ^SO_MICRO_VERSION Version.config | cut -d= -f2`
  +major:=$(shell grep ^SO_MAJOR_VERSION $(VERSION_FILE) | cut -d= -f2)
  +minor:=$(shell grep ^SO_MINOR_VERSION $(VERSION_FILE) | cut -d= -f2)
  +micro:=$(shell grep ^SO_MICRO_VERSION $(VERSION_FILE) | cut -d= -f2)
   version=$(major).$(minor).$(micro)
  -EXTRA_VER=-pg$(pg_ver)
  -SONAME=$(shell objdump -p $(LIB_NAME) | grep SONAME | \
  -         awk '{if (match($$2,/\.so\.[0-9]+$$/)) print substr($$2,RSTART+4)}')
   
  -PKG_NAME=$(DEBDIR)/libpostgis$(SONAME)$(EXTRA_VER)
  +COMMON_PG_FILES=PG_CONFIG=$(PG_CONFIG) make -f $(DEBDIR)/sofiles.mk
  +
  +PREP_CONTROL=$(COMMON_PG_FILES) control
  +PREP_PG_FILES=$(COMMON_PG_FILES) build
  +CLEAN_PG_FILES=$(COMMON_PG_FILES) clean
  +
  +CLEAN_BUILD_INSTALL = $(MAKE) clean; \
  +                      $(CURDIR)/configure --with-pgsql=$(PG_CONFIG); \
  +                      $(MAKE); \
  +                      $(MAKE) loaderdumper utils; \
  +                      $(MAKE) install DESTDIR=$(DESTDIR); \
  +                      $(PREP_PG_FILES); \
  +                      chmod ug+x $(DEBDIR)/scriptslink.sh; \
  +                      ONEUTILS=$(ONEUTILS) $(DEBDIR)/scriptslink.sh $(POSTGIS_SQL)
  +
  +# actions
  +maintainer-configure: maintainer-clean
  +# build the control file acording to pg_type
  +	chmod ug+x $(DEBDIR)/control.source/mkcontrol.$(PG_TYPE).sh
  +	SRC=$(DEBDIR)/control.source DEST=$(DEBDIR)/sofiles.in ONEUTILS=$(ONEUTILS) $(DEBDIR)/control.source/mkcontrol.$(PG_TYPE).sh
  +	$(foreach PG_CONFIG,$(PG_CONFIGS),$(PREP_CONTROL);)
  +	rm -f $(DEBDIR)/sofiles.in/control
  +
  +maintainer-clean:
  +	cat $(DEBDIR)/control.source/control.0 | sed -e 's/@major@/$(INITIAL_MAJOR)/g' > $(DEBDIR)/control
  +
  +pg_versions:
  +#	echo $(PG_CONFIGS)
  +	echo $(PG_VERSIONS) | sed -e 's/\ /\n/g' | sort -n
  +
  +# standard actions
   
   configure: configure-stamp
   configure-stamp:
  +	@echo ++++++++++++++++++ C O N F I G U R E +++++++++++++++++++++
   	dh_testdir
  -ifneq (,$(our_postgres))
  -# our postgresql configureation files repository is not keeping the file dates, so remind it ...
  -	touch $(PGSQL_SRC)/config.status
  -	touch $(PGSQL_SRC)/src/Makefile.global
  -	ln -s $(shell pg_config --includedir)/server $(PGSQL_SRC)/src/include
  -	mkdir $(PGSQL_SRC)/src/interfaces
  -	ln -s $(shell pg_config --includedir) $(PGSQL_SRC)/src/interfaces/libpq
  +#check if needed
  +	dpkg-checkbuilddeps
  +	# commands to configure the package.
  +	make distclean; make Makefile.config
  +	# patch doesn't necessarily have to succeed
  +ifneq (,$(wildcard $(PATCHFILE)))
  +	-patch -s -r $(PATCHREJ) -p$(PATCHLEVEL) -N < $(PATCHFILE)
   endif
  -	# Add here commands to configure the package.
  +	rm -f $(PATCHREJ)
   	
   	touch configure-stamp
   
   build: build-stamp
   build-stamp: configure-stamp 
  +	@echo ++++++++++++++++++ B U I L D +++++++++++++++++++++
   	dh_testdir
  +	chmod ug+x $(DEBDIR)/logtop.sh
  +	$(DEBDIR)/logtop.sh $(version)
  +	echo $(shell cd ..; dpkg-source -b `basename $(CURDIR)`; cd $(CURDIR))
   	# Add here commands to compile the package.
  +ifeq ($(PG_TYPE),onepg)
   	$(MAKE)
  -	@echo finding xsl stylesheets...
  -	XSLBASE=$(XSLBASE) $(MAKE) -C doc html
  -	DEBUGJAR=postgis_debug.fastjar JAR=fastjar $(MAKE) -C jdbc2 jar
  -	source $(DEBDIR)/logtop $(version)
  -	make -f $(DEBDIR)/sofiles LIB_NAME=$(LIB_NAME) EXTRA_VER=$(EXTRA_VER) build
  +endif
  +	$(BUILD_JAVA)
  +	$(BUILD_DOC)
   	touch build-stamp
   
   clean: configure-stamp
  +	@echo ++++++++++++++++++ C L E A N +++++++++++++++++++++
   	dh_testdir
   	dh_testroot
   	rm -f build-stamp configure-stamp
   	dh_clean
  -	make -f $(DEBDIR)/sofiles LIB_NAME=$(LIB_NAME) EXTRA_VER=$(EXTRA_VER) clean
   	# Add here commands to clean up after the build process.
  -	$(MAKE) clean
  -	$(MAKE) -C doc clean
  -	$(MAKE) -C doc maintainer-clean
  -	$(MAKE) -C jdbc2 clean
  -ifneq (,$(our_postgres))
  -	rm -f $(PGSQL_SRC)/src/include
  -	rm -f $(PGSQL_SRC)/src/interfaces/libpq
  -	-rmdir $(PGSQL_SRC)/src/interfaces
  -endif
  +	$(foreach PG_CONFIG,$(PG_CONFIGS),$(CLEAN_PG_FILES);)
  +#check if needed
  +	dpkg-checkbuilddeps
  +	$(CLEAN_JAVA)
  +	$(CLEAN_DOC)
  +	$(MAKE) distclean
  +	chmod ug+x $(DEBDIR)/mkupstreampatch.sh
  +	$(DEBDIR)/mkupstreampatch.sh $(version)
  +#	rm -f $(DEBDIR)/sofiles.in/control
   
   install: build
  +	@echo ++++++++++++++++++ I N S T A L L +++++++++++++++++++++
   	dh_testdir
   	dh_testroot
   	dh_clean -k
  -	awk $(AWK_PG_REP) $(DEBDIR)/control > $(DEBDIR)/control1
  -	mv $(DEBDIR)/control1 $(DEBDIR)/control
  -	awk $(AWK_PG_REP) $(PKG_NAME).dirs > $(PKG_NAME).dirs1
  -	mv $(PKG_NAME).dirs1 $(PKG_NAME).dirs
  -	awk $(AWK_PG_REP) $(PKG_NAME).install > $(PKG_NAME).install1
  -	mv $(PKG_NAME).install1 $(PKG_NAME).install
  -	awk $(AWK_PG_REP) $(PKG_NAME).files > $(PKG_NAME).files1
  -	mv $(PKG_NAME).files1 $(PKG_NAME).files
  -	awk $(AWK_PG_REP) $(PKG_NAME).postinst > $(PKG_NAME).postinst1
  -	mv $(PKG_NAME).postinst1 $(PKG_NAME).postinst
  -	awk $(AWK_PG_REP) $(PKG_NAME).prerm > $(PKG_NAME).prerm1
  -	mv $(PKG_NAME).prerm1 $(PKG_NAME).prerm
  -	dh_installdirs -A
  -	
  +	mkdir -p $(DESTDIR)/$(main_bin)
  +	mkdir -p $(DESTDIR)/$(pg_main_bin)
  +	mkdir -p $(DESTDIR)/$(examplesdir)
  +	mkdir -p $(DESTDIR)/$(sharedir)
  +	mkdir -p $(DESTDIR)/etc/default
   	# commands to install the package into debian/tmp
  +ifeq ($(PG_TYPE),onepg)
   	$(MAKE) install DESTDIR=$(DESTDIR)
  -	DEBUGJAR=postgis_debug.fastjar JAR=fastjar $(MAKE) -C jdbc2 install DESTDIR=$(DESTDIR)$(JAVA_PATH)
  -
  -	cp utils/*.pl $(DESTDIR)/$(bindir)
  -	cat $(DEBDIR)/mktemplate_gis.sh.in | awk $(AWK_PG_REP) > $(DESTDIR)/$(bindir)/mktemplate_gis.sh
  -	chmod 755 $(DESTDIR)/$(bindir)/mktemplate_gis.sh
  -	cp $(DEBDIR)/rmtemplate_gis.sh $(DESTDIR)/$(bindir)
  -	chmod 755 $(DESTDIR)/$(bindir)/rmtemplate_gis.sh
  +	$(PREP_PG_FILES)
  +	chmod ug+x $(DEBDIR)/scriptslink.sh
  +	$(DEBDIR)/scriptslink.sh $(POSTGIS_SQL)
  +else
  +# make and install postgis for each postgresql version
  +	$(foreach PG_CONFIG,$(PG_CONFIGS),$(CLEAN_BUILD_INSTALL);)
  +endif
  +	$(INSTALL_JAVA)
  +	cp $(DEBDIR)/profile $(DESTDIR)/etc/default/postgis
  +	dh_installdirs -A
   
  +	cp -r $(CURDIR)/regress $(CURDIR)/extras/ogc_test_suite $(CURDIR)/extras/wkb_reader $(DESTDIR)/$(examplesdir)
   
  -# Build architecture-independent files here.
  -binary-indep: build install
  -# We have nothing to do by default.
  +#	chmod ug+x $(DEBDIR)/logtop.sh
  +#	$(DEBDIR)/logtop.sh $(version)
   
  -# Build architecture-dependent files here.
  -binary-arch: build install
  -	dh_testdir
  -	dh_testroot
   	dh_installchangelogs CHANGES
  +	dh_installman 
  +	dh_compress
   	dh_installdocs
  -	dh_installexamples regress
   	dh_install --sourcedir=$(DESTDIR)
   	dh_movefiles --sourcedir=$(REL_DESTDIR) #this style is required for woody
  -#	dh_installmenu
  -#	dh_installdebconf	
  -#	dh_installlogrotate
  -#	dh_installemacsen
  -#	dh_installpam
  -#	dh_installmime
  -#	dh_installinit
  -#	dh_installcron
  -#	dh_installinfo
  -	dh_installman
   	dh_link
   	dh_strip
  -	find . -name .cvsignore -exec rm -f '{}' ';'
  -# here, only small files get compressed, with little improvement but hard to use
  -#	dh_compress
  -#	find $(PKG_NAME) -path *regress/*.gz -exec gzip -d '{}' ';'
  +	find $(REL_DEBDIR) -name .cvsignore -exec rm -f '{}' ';'
  +	find $(REL_DEBDIR) -name CVS -exec rm -df '{}' ';'
   	dh_fixperms
  -#	dh_perl
  -#	dh_python
   	dh_makeshlibs --noscripts
  -	dh_installdeb
  -	dh_shlibdeps
  -	dh_gencontrol
  -	dh_md5sums
  -	dh_builddeb
  +
  +
  +# Build architecture-independent files here.
  +binary-indep: build install
  +	dh_testdir
  +	dh_testroot
  +	dh_installdeb -i
  +	dh_shlibdeps -i
  +	dh_gencontrol -i
  +	dh_md5sums -i
  +	dh_builddeb -i
  +
  +# Build architecture-dependent files here.
  +binary-arch: build install
  +	dh_testdir
  +	dh_testroot
  +	dh_installdeb -s
  +	dh_shlibdeps -s
  +	dh_gencontrol -s
  +	dh_md5sums -s
  +	dh_builddeb -s
   
   binary: binary-indep binary-arch
  -.PHONY: build clean binary-indep binary-arch binary install configure
   
  +
  +.PHONY: build clean maintainer-clean binary-indep binary-arch binary install configure
  
  
  
  1.1                  postgis/debian/_oneutils.package
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/_oneutils.package?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/_oneutils.package?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: _oneutils.package
  ===================================================================
  if this file is named _oneutils.package, only one postgresql-postgis-utils 
  package will be generated.
  please rename this file in case you want to build separate utils for each 
  supported postgresql.
  
  
  
  1.1                  postgis/debian/_supported.postgresql
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/_supported.postgresql?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/_supported.postgresql?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: _supported.postgresql
  ===================================================================
  7.4
  8.1
  8.0
  
  
  
  1.1                  postgis/debian/createdb.postgis
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/createdb.postgis?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/createdb.postgis?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: createdb.postgis
  ===================================================================
  #!/bin/sh
  
  # create a database using the given template
  # other parameters are passed to createdb, 
  # but the specified owner will not have 
  # extra privileges on objects in the template. see createdb.postgis(1)
  
  source /usr/share/postgresql-postgis-common/postgis_env.sh
  
  for ARGVN in $1 $2 ; do
      if [ `expr substr $ARGVN 1 11` = "--template=" ]; then
  	 	TDB=`echo $ARGVN | sed -e s/^--template=//`
      elif [ `expr substr $ARGVN 1 6` = "--help" ]; then
          echo "Usage of `basename $0`"
          echo "Supply arguments as follows"
          echo "--template=templatename of the template to use"
  		echo "Other arguments will be passed verbatim to createdb,"
  		echo "and it may return additional messages."
  		echo "You must usually have createdb privileges"
  		echo "in order to use `basename $0`"
          exit 1
      fi
  done
  
  PWD1=`pwd`
  
  cd /tmp
  
  exec createdb -T $TDB "$@"
  
  cd $PWD1
  
  
  
  1.1                  postgis/debian/createdb.postgis.1
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/createdb.postgis.1?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/createdb.postgis.1?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: createdb.postgis.1
  ===================================================================
  .TH "createdb.postgis" "1" "" "Roberto Boati" "Postgis utilities"
  .SH "NAME"
  .LP 
  createdb.postgis \- Create Postgis database in a PostgreSQL server.
  .SH "SYNTAX"
  .LP 
  createdb.postgis [\fIoptions\fP] \fIdatabase_name\fP
  .SH "DESCRIPTION"
  .LP 
  This program create a database for working with Postgis geometries.
  .br 
  Using this program any user with createdb permissions can create a spatial enabled database.
  .SH "OPTIONS"
  .LP 
  .TP 
  <\fIdatabase_name\fP>
  Database to be created.
  .TP 
  <\fIoptions\fP>
  All options from createdb(1), except choice of template database, can be used here.
  Specifying an owner here will not be able to set ownership to the tables originating 
  from the template database used, unless the template owner, that is calling this 
  script, is dba. Otherwise, you could only build databases owned by the 
  template owner.
  .TP
  The most significant option would be \fI\-\-template\fP below.
  .TP 
  \fB\-\-template=\fR<\fItemplatedb\fP>
  Set template name to be <\fItemplatedb\fP>
  .TP
  Envirunment variable: \fITEMPLATEDB\fR.
  .TP 
  .TP 
  \fB\-\-help\fR
  Output help information and exit.
  .SH "ENVIRONMENT"
  .TP 
  .B TEMPLATEDB
  If
  .RB $ TEMPLATEDB
  is set, its value is used as the default template name.
  .SH "FILES"
  .LP
  The environment variables for template_gis creation, removal and usage may be stored in files, as follows:
  .TP
  .B /etc/default/postgis
  will designate default values for the whole system.
  .TP
  .B $HOME/.postgis/profile
  will designate the values used by the current user by default.
  Beware, this is the current SYSTEM user, not the dba or the database owner to 
  become. As those values are more user specific, they supersede the ones in the 
  system default file for the current user.
  .SH "NOTES"
  .LP
  The order of precedence of the variables definition:
  .TP
  .B 1.
  Command line options.
  .TP
  .B 2.
  Environment variables.
  .TP
  .B 3.
  The user specific profile file.
  .TP
  .B 4.
  The system wide default file.
  .TP
  .B The builtin (hardwired) values are not a good choice.
  .SH "EXAMPLES"
  .LP 
  To run this program you can simply type:
  .LP 
  # \fBcreatedb.postgis mypostgis\fR
  .SH "AUTHORS"
  .LP 
  Alex Bodnaru <alexbodn at 012.net.il>
  .br 
  Roberto Boati <roberto.boati at daisyred.com>
  .SH "SEE ALSO"
  .LP 
  createdb.postgis(1), createdb(1), dropdb(1)
  
  
  
  1.1                  postgis/debian/debian_versionname.sh
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/debian_versionname.sh?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/debian_versionname.sh?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: debian_versionname.sh
  ===================================================================
  #!/bin/sh
  
  case `cat /etc/debian_version` in
    3.1)
      echo sarge
  	;;
    3.0)
      echo woody
  	;;
    2.2)
      echo potato
  	;;
    2.1)
      echo slink
  	;;
    2.0)
      echo hamm
  	;;
    *)
      echo "unknown debian release"
  #	exit 1
  esac
  
  #exit 0
  
  
  1.1                  postgis/debian/logtop.sh
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/logtop.sh?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/logtop.sh?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: logtop.sh
  ===================================================================
  #!/bin/sh
  
  LOG_FILE=debian/changelog
  DEB_VER0="1"
  LOG_TOP=`head -n1 $LOG_FILE` # first log line
  LOG_FULL_VER=`echo $LOG_TOP | awk '{gsub("[)(]", "", $2); print $2;}'` # full ver
  LOG_VER=`echo $LOG_FULL_VER | awk -F '-' '{print $1;}'` # upstream part
  LOG_VER=`echo $LOG_VER | awk '{print toupper($0);}'`
  LOG_DEB_VER=`echo $LOG_FULL_VER | awk -F '-' '{print $2;}'` # debian part
  LOG_PKG=`echo $LOG_TOP | awk '{print $1;}'`
  NEW_VER=`echo $1 | awk '{sub("([^.0-9]+)", "+&"); print $0;}'`
  NEW_PKG=$2
  
  INS_LINE1=
  INS_LINE2=
  INS_LINE3=
  
  if [ -n "$NEW_VER" ] && [ ! "$NEW_VER" = "$LOG_VER" ]; then
  	LOG_VER=$NEW_VER
  	INS_LINE1='Automatic upstream version tracking.'
  	LOG_FULL_VER="$LOG_VER-$DEB_VER0"
  fi
  
  if [ -n "$NEW_PKG" ] && [ ! "$NEW_PKG" = "$LOG_PKG" ]; then
  	INS_LINE2='Making package alternative.'
  	LOG_PKG=$NEW_PKG
  fi
  
  if [ -n "$INS_LINE1" ] || [ -n "$INS_LINE2" ] || [ -n "$INS_LINE3" ]; then 
  	TMP_FILE=/tmp/changelog.$$
  	cat $LOG_FILE > $TMP_FILE
  	if [ -r /tmp/changelog.$$ ]; then
  		echo "$LOG_PKG ($LOG_FULL_VER) "`echo $LOG_TOP | awk '{print $3" "$4;}'` > $LOG_FILE
  		echo "" >> $LOG_FILE
  		if [ ! -z "$INS_LINE1" ]; then
  			echo "  * $INS_LINE1" >> $LOG_FILE
  		fi
  		if [ ! -z "$INS_LINE2" ]; then
  			echo "  * $INS_LINE2" >> $LOG_FILE
  		fi
  		if [ ! -z "$INS_LINE3" ]; then
  			echo "  * $INS_LINE3" >> $LOG_FILE
  		fi
  		echo "" >> $LOG_FILE
  		echo " -- $DEBFULLNAME <$DEBEMAIL>  "`822-date` >> $LOG_FILE
  		echo "" >> $LOG_FILE
  		cat $TMP_FILE >> $LOG_FILE
  	fi
  	rm -f $TMP_FILE
  fi
  
  
  
  1.1                  postgis/debian/mktemplate_gis.1
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/mktemplate_gis.1?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/mktemplate_gis.1?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: mktemplate_gis.1
  ===================================================================
  .TH "mktemplate_gis" "1" "" "Roberto Boati" "Postgis utilities"
  .SH "NAME"
  .LP 
  mktemplate_gis \- Create Postgis template in a PostgreSQL server.
  .SH "SYNTAX"
  .LP 
  mktemplate_gis [\fIoptions\fP]
  .SH "DESCRIPTION"
  .LP 
  This program create a template database for working with Postgis geometries.
  .br 
  It requires to be run by root, or by PostgreSQL superuser (DBA), 
  or by the cluster owner, but once created, any user with createdb permissions 
  can create and manage a spatial enabled database with \fBcreatedb.postgis\fR.
  The privileges on the objects in the created databases will be set to the user 
  defined here (see \fIGRUSER\fR below).
  .br 
  PostgreSQL should be running.
  .SH "OPTIONS"
  .LP 
  .TP
  For default values see below.
  .TP 
  \fB\-\-user=\fR<\fIdbowner\fP>
  Creates a database template owned by <\fIdbowner\fP>.
  If normal user, \fIdbowner\fR will own the template database, 
  else if it's a group or public, 
  \fIdbowner\fR will have full rights to the objects in the template database.
  The rights granted here will also hols for new databases created from this 
  template, even by non-dba and non-cluster owning users.
  .TP
  Environment variable: \fIGRUSER\fR.
  .TP 
  \fB\-\-template=\fR<\fItemplatedb\fP>
  Set template name to be <\fItemplatedb\fP>
  .TP
  Envirunment variable: \fITEMPLATEDB\fR.
  .TP 
  \fB\-\-dba=\fR<\fIdba_name\fP>
  DBA is required to perform template database building.
  .TP
  Envirunment variable: \fIDBAUSER\fR.
  .TP 
  \fB\-\-script=\fR<\fIpgis_script\fP>
  pgis_script is the sql script containing the postgis functions for the template database.
  If no directory name will be given, the script will be taken from /usr/share/postgresql/\fI$CLUSTERVER\fP/contrib.
  .TP
  Envirunment variable: \fIPGISSCRIPT\fR.
  .TP 
  \fB\-\-no\-srs\fP
  this argument will suppress loading of the huge spatial_ref_sys in the database template.
  the table will be created anyway.
  .TP
  Envirunment variable: \fINO_SRS=true\fR.
  .TP 
  \fB\-\-help\fR
  Output help information and exit.
  .SH "ENVIRONMENT"
  .TP 
  .B TEMPLATEDB
  If
  .RB $ TEMPLATEDB
  is set, its value is used as the default template name.
  .TP 
  .B GRUSER
  If
  .RB $ GRUSER
  is set, its value is used as the default user to own the template. This user 
  will naturally have default rights to databases created with this template.
  .TP 
  .B DBAUSER
  If
  .RB $ DBAUSER
  is set, its value is used as the default DBA for building the template. Else, 
  the cluster owner and postgres are the next candidates.
  .TP 
  .B PGISSCRIPT
  If
  .RB $ PGISSCRIPT
  is set, its value is used as the default postgis sql script for the template. 
  If a directory will not be specified, the file will be taken from the default 
  scripts/contrib directory for this postgresql version.
  .SH "FILES"
  .LP
  The environment variables for template_gis creation, removal and usage may be stored in files, as follows:
  .TP
  .B /etc/default/postgis
  will designate default values for the whole system.
  .TP
  .B $HOME/.postgis/profile
  will designate the values used by the current user by default.
  Beware, this is the current SYSTEM user, not the dba or the database owner to 
  become. As those values are more user specific, they supersede the ones in the 
  system default file for the current user.
  .SH "NOTES"
  .LP
  The order of precedence of the variables definition:
  .TP
  .B 1.
  Command line options.
  .TP
  .B 2.
  Environment variables.
  .TP
  .B 3.
  The user specific profile file.
  .TP
  .B 4.
  The system wide default file.
  .TP
  .B The builtin (hardwired) values are not a good choice.
  .SH "EXAMPLES"
  .LP 
  To run this program the standard way, you can simply type:
  .LP 
  # \fBmktemplate\_gis\fR
  .LP 
  Alternatively you can specify also a template name to create and the database superuser:
  .LP 
  # \fBmktemplate\_gis \-\-user=postgres \-\-template=template\_postgis\fR
  .SH "AUTHORS"
  .LP 
  Alex Bodnaru <alexbodn at 012.net.il>
  .br 
  Roberto Boati <roberto.boati at daisyred.com>
  .SH "SEE ALSO"
  .LP 
  createdb.postgis(1), rmtemplate_gis(1)
  
  
  
  1.1                  postgis/debian/mkupstreampatch.sh
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/mkupstreampatch.sh?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/mkupstreampatch.sh?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: mkupstreampatch.sh
  ===================================================================
  #!/bin/sh
  
  #run this script from the debian/rules clean section
  #make a diff from the clean upstream postgis to this patched for debian use
  
  if [ -z "$1" ]; then
  	echo "ERROR: please supply mkupstreampatch.sh with the postgis version as parameter"
  	exit 1
  fi
  
  VERSION=$1
  major=$2
  
  CURRENTDIR="`pwd`"
  DEBIANDIR="$CURRENTDIR/debian"
  PATCHDIR="$DEBIANDIR/patches"
  mkdir -p $PATCHDIR
  PATCHFILE="$PATCHDIR/upstream-$VERSION.diff"
  PATCHLEVEL="$PATCHDIR/patch.level"
  
  ORIGDIR="$CURRENTDIR.orig"
  if [ ! -d $ORIGDIR ]; then
  	ORIGFILE="$CURRENTDIR/../postgis_$VERSION.orig.tar.gz"
  	if [ -f $ORIGFILE ]; then
  		echo "patching from file $ORIGFILE"
  		OURTMPDIR="/tmp/postgis_$$"
  		rm -df "$OURTMPDIR"
  		mkdir -p "$OURTMPDIR"
  		cd "$OURTMPDIR"
  		tar xzf "$ORIGFILE"
  		DIRTIP=`ls | head -n 1`
  		ORIGDIR="$OURTMPDIR/$DIRTIP" #tar file root
  		ln -s "$CURRENTDIR" "$DIRTIP.debian" #link to our dir
  		CURRENTDIR="$OURTMPDIR/$DIRTIP.debian"
  	else
  		echo "WARNING: there is no source of original postgis in known location"
  		exit 0
  	fi
  else
  	echo "patching from dir $ORIGDIR"
  fi
  
  echo "$ORIGDIR" | awk -F / '{print NF;}' > "$PATCHLEVEL"
  LC_ALL=C TZ=UTC0 diff -Nar -U 4 -x debian "$ORIGDIR" "$CURRENTDIR" > "$PATCHFILE"
  
  if [ -n "$OURTMPDIR" ]; then
  	rm -rf "$OURTMPDIR"
  fi
  
  exit 0
  
  
  
  1.1                  postgis/debian/pg_majdotmin.sh
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/pg_majdotmin.sh?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/pg_majdotmin.sh?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: pg_majdotmin.sh
  ===================================================================
  #!/bin/sh
  
  PG_CONFIG=$1
  
  majdotmin=`$PG_CONFIG --version | awk '{print $2;}' | awk -F . '{print $1"."$2;}'`
  supported_versions="/usr/share/postgresql-common/supported-versions"
  if [ ! -f $2 ] && [ -x $supported_versions ]; then
  	$supported_versions > $2
  fi
  if [ -f $2 ]; then
  	if [ -n "`grep $majdotmin $2`" ]; then
  		echo $PG_CONFIG
  	fi
  else
  	echo $PG_CONFIG
  fi
  
  
  
  1.1                  postgis/debian/postgis_wrapper.in
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/postgis_wrapper.in?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/postgis_wrapper.in?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: postgis_wrapper.in
  ===================================================================
  #!/usr/bin/perl -w
  # Call a PostGis client program with the version, cluster and default
  # database specified in ~/.postgresqlrc or
  # /etc/postgresql-common/user_clusters.
  #
  # (C) 2005 Martin Pitt <mpitt at debian.org>
  
  # Temporary copied 2005 by Alex Bodnaru <alexbodn at 012.net.il>, to add same 
  # support with postgis utilities. This file should be removed when the original 
  # /usr/share/postgresql-common/pg_wrapper would not be selective on the 
  # supported @commands (see grep below).
  
  use lib '/usr/share/postgresql-common';
  use PgCommon;
  
  @commands = qw/@POSTGIS_SCRIPTS@/;
  
  $cmd = (split '/', $0)[-1];
  grep { $cmd eq $_ } @commands or die "postgis_wrapper: invalid command name $cmd";
  
  # Check for PGCLUSTER in %ENV
  if (defined $ENV{PGCLUSTER}) {
      ($version, $cluster) = split ('/', $ENV{PGCLUSTER}, 2);
      error 'Invalid version specified with $PGCLUSTER' unless $version;
      error 'Invalid cluster specified with $PGCLUSTER' unless $cluster;
      error 'Cluster specified with $PGCLUSTER does not exist' unless cluster_exists $version, $cluster;
  }
  
  # Check for --cluster argument and filter it out
  for ($i = 0; $i <= $#ARGV; ++$i) {
      if ($ARGV[$i] eq '--cluster') {
          error '--cluster option needs an argument (<version>/<cluster>)' if ($i >= $#ARGV);
  
          ($version, $cluster) = split ('/', $ARGV[$i+1], 2);
          error 'No version specified with --cluster' unless $version;
          error 'No cluster specified with --cluster' unless $cluster;
  
  	error 'Cluster does not exist' unless cluster_exists $version, $cluster;
  
          splice @ARGV, $i, 2;
          last;
      }
  }
  
  # Determine $version, $cluster, $db, $port from map files
  ($version, $cluster, $db) = user_cluster_map() unless $cluster;
  if ($cluster) {
      $port = get_cluster_port($version, $cluster);
  
      unless ($ENV{'PGHOST'}) {
          # default to cluster specific Unix socket directory
          $ENV{'PGHOST'} = get_cluster_socketdir $version, $cluster;
      }
  }
  
  $ENV{'PGPORT'} = "$port" if $port;
  $ENV{'PGDATABASE'} = $db if $db;
  
  error 'You must install at least one postgresql-client-<version> package.' unless $version; 
  
  @args = (get_program_path ($cmd, $version));
  error 'Invalid PostgreSQL cluster version' unless $args[0];
  push @args, @ARGV;
  exec @args;
  
  __END__
  
  =head1 NAME
  
  pg_wrapper - wrapper for PostgreSQL client commands
  
  =head1 SYNOPSIS
  
  I<client-program> [B<--cluster> I<version>/I<cluster>] [...]
  
  (I<client-program>: B<psql>, B<createdb>, B<dropuser>, and all other client
  programs installed in C</usr/lib/postgreqsl/>I<version>C</bin>).
  
  =head1 DESCRIPTION
  
  This program is run only as a link to names which correspond to PostgreSQL
  programs in C</usr/lib/postgresql/>I<version>C</bin>. It determines the
  configured cluster and database for the user and calls the appropriate version
  of the desired program to connect to that cluster and database, supplying any
  specifed options to that command.
  
  By default, the cluster is determined from the configuration files
  L<user_clusters(5)> and L<postgresqlrc(5)>. However, this can be overriden by
  specifying the C<$PGCLUSTER> environment variable or the B<--cluster>
  I<version>/I<cluster> option.
  
  =head1 ENVIRONMENT
  
  =over
  
  =item B<PGCLUSTER>
  
  If C<$PGCLUSTER> is set, its value (of the form I<version>/I<cluster>)
  specifies the desired cluster, similar to the B<--cluster> option. However, if
  B<--cluster> is specified, it overrides the value of C<$PGCLUSTER>.
  
  =back
  
  =head1 FILES
  
  =over
  
  =item C</etc/postgresql-common/user_clusters>
  
  stores the default cluster and database for users and groups as set by
  the administrators. 
  
  =item C<$HOME/.postgresqlrc>
  
  stores defaults set by the user himself.
  
  =back
  
  =head1 SEE ALSO
  
  L<user_clusters(5)>, L<postgresqlrc(5)>
  
  =head1 AUTHOR
  
  Martin Pitt L<E<lt>mpitt at debian.orgE<gt>>
  
  
  
  1.1                  postgis/debian/postgresq-postgis-common.manpages
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/postgresq-postgis-common.manpages?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/postgresq-postgis-common.manpages?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: postgresq-postgis-common.manpages
  ===================================================================
  doc/man/pgsql2shp.1
  doc/man/shp2pgsql.1
  debian/createdb.postgis.1
  debian/mktemplate_gis.1
  debian/rmtemplate_gis.1
  
  
  
  1.1                  postgis/debian/postgresql.vars.awk
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/postgresql.vars.awk?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/postgresql.vars.awk?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: postgresql.vars.awk
  ===================================================================
  #!/usr/bin/awk
  
  # this would parse pg_config --configure for the variable value, by the
  # variable name supplied in ${REQVAR}
  
  BEGIN {
  	RS = " ";
  	FS = "=";
  }
  
  {
  	if (match($1, "--"REQVAR"$") || match($1, "--with-"REQVAR"$"))
  	{
  		gsub("'$", "", $2);
  		print $2;
  	}
  }
  
  
  
  1.1                  postgis/debian/postgresql.vars.mk
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/postgresql.vars.mk?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/postgresql.vars.mk?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: postgresql.vars.mk
  ===================================================================
  #!/usr/bin/make -f
  # -*- makefile -*-
  
  # this makefile includes the Makefile.global from correct postgresql, and echoes a variable value, bt the
  # variable name supplied in ${REQVAR}
  
  -include Makefile.config
  
  all:
  	@echo $(${REQVAR})
  
  .PHONY: all
  
  
  
  1.1                  postgis/debian/postgresql.vars.sh
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/postgresql.vars.sh?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/postgresql.vars.sh?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: postgresql.vars.sh
  ===================================================================
  #!/bin/sh
  
  # parse the possible sources for the value of the variable with the
  # name supplied in ${REQVAR}
  # use programs at ${MYLOC}
  
  REQVAL=""
  if [ -n "`${PG_CONFIG} --help | grep "[-][-]${REQVAR}[[:blank:]]"`" ]; then
  	REQVAL=`${PG_CONFIG} --${REQVAR}` # please ignore eventual error on stderr
  fi
  if [ -z $REQVAL ]; then
  	REQVAL=`${PG_CONFIG} --configure | awk -v REQVAR=$REQVAR -f ${MYLOC}/postgresql.vars.awk`
  fi
  if [ -z $REQVAL ]; then
  	REQVAL=`make -s -f ${MYLOC}/postgresql.vars.mk`
  fi
  
  echo $REQVAL | sed -e s/^[/]//
  
  
  
  1.1                  postgis/debian/rmtemplate_gis.1
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/rmtemplate_gis.1?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/rmtemplate_gis.1?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: rmtemplate_gis.1
  ===================================================================
  .TH "rmtemplate_gis" "1" "" "Roberto Boati" "Postgis utilities"
  .SH "NAME"
  .LP 
  rmtemplate_gis \- Delete Postgis template in a PostgreSQL server.
  .SH "SYNTAX"
  .LP 
  rmtemplate_gis [\fIoption\fP]
  .SH "DESCRIPTION"
  .LP 
  This program deletes a template database Postgis.
  .br 
  It requires to be run by root, or by PostgreSQL superuser (postgres), 
  or by a dba, or by the cluster owner, or by the database owner.
  .br 
  PostgreSQL should be running.
  .SH "OPTIONS"
  .LP
  .TP
  For default values see below.
  .TP 
  \fB\-\-template=\fR<\fItemplatedb\fP>
  Set template name to be <\fItemplatedb\fP>
  .TP
  Envirunment variable: \fITEMPLATEDB\fR.
  .TP 
  \fB\-\-dba=\fR<\fIdba_name\fP>
  DBA is required to perform template database building.
  .TP
  Envirunment variable: \fIDBAUSER\fR.
  .TP 
  \fB\-\-help\fR
  Output help information and exit.
  .SH "ENVIRONMENT"
  .TP 
  .B TEMPLATEDB
  If
  .RB $ TEMPLATEDB
  is set, its value is used as the default template name.
  .TP 
  .B DBAUSER
  If
  .RB $ DBAUSER
  is set, its value is used as the default DBA for removing the template.
  .SH "FILES"
  .LP
  The environment variables for template_gis creation, removal and usage may be stored in files, as follows:
  .TP
  .B /etc/default/postgis
  will designate default values for the whole system.
  .TP
  .B $HOME/.postgis/profile
  will designate the values used by the current user by default.
  Beware, this is the current SYSTEM user, not the dba or the database owner to 
  become. As those values are more user specific, they supersede the ones in the 
  system default file for the current user.
  .SH "NOTES"
  .LP
  The order of precedence of the variables definition:
  .TP
  .B 1.
  Command line options.
  .TP
  .B 2.
  Environment variables.
  .TP
  .B 3.
  The user specific profile file.
  .TP
  .B 4.
  The system wide default file.
  .TP
  .B The builtin (hardwired) values are not a good choice.
  .SH "EXAMPLES"
  .LP 
  To run this program the standard way, you can simply type:
  .LP 
  # \fBrmtemplate\_gis\fR
  .LP 
  Alternatively you can specify also a template name to delete:
  .LP 
  # \fBrmtemplate\_gis \-\-template=template\_postgis\fR
  .SH "AUTHORS"
  .LP 
  Alex Bodnaru <alexbodn at 012.net.il>
  .br 
  Roberto Boati <roberto.boati at daisyred.com>
  .SH "SEE ALSO"
  .LP 
  createdb.postgis(1), mktemplate_gis(1)
  
  
  
  1.1                  postgis/debian/rules-1.1
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/rules-1.1?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/rules-1.1?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: rules-1.1
  ===================================================================
  
  #special commands for building postgis-1.0 on debian
  
  VERSION_FILE=Version.config
  INITIAL_MAJOR=
  POSTGIS_SQL=lwpostgis.sql
  LIB_LOC=lwgeom
  HAVE_DOC=true
  CLEAN_DOC=$(MAKE) -C doc clean
  HAVE_JAVA=true
  CLASSPATH=$(JAVA_PATH)/postgresql.jar
  DIR_JAVA=jdbc2
  CLEAN_JAVA=$(MAKE) -C $(DIR_JAVA) clean
  BUILD_JAVA=DEBUGJAR=postgis_debug.fastjar JAVAC=javac JAR=fastjar \
             $(MAKE) -C $(DIR_JAVA) jar
  INSTALL_JAVA=DEBUGJAR=postgis_debug.fastjar JAVAC=javac JAR=fastjar \
               $(MAKE) -C $(DIR_JAVA) install DESTDIR=$(DESTDIR)$(JAVA_PATH)
  JAVA_DEBUG=true
  HAVE_COMMON=true
  HAVE_UTILS=true
  
  
  
  1.1                  postgis/debian/sofiles.mk
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/sofiles.mk?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/postgis/debian/sofiles.mk?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: sofiles.mk
  ===================================================================
  #!/usr/bin/make -f # -*- makefile -*-
  
  #prepare control and data files for a library package, taking the library SONAME
  #into account: replace the string #SOVER# in the file names with the SONAME
  #automatically found in the library using objdump and the postgresql version.
  
  INDIR=$(CURDIR)/debian/sofiles.in
  OUTDIR=$(CURDIR)/debian
  
  pg_majdotmin=$(shell $(PG_CONFIG) --version | \
                 awk '{print $$2;}' | awk -F . '{print $$1"."$$2;}')
  pg_ver=$(shell echo $(pg_majdotmin) | awk -F . '{print $$1$$2;}')
  #PG_CONFIG should be predefined
  PG_VAR=MYLOC=$(OUTDIR) source $(OUTDIR)/postgresql.vars.sh
  bindir=$(shell REQVAR=bindir $(PG_VAR))
  datadir=$(shell REQVAR=datadir $(PG_VAR))
  docdir=$(shell REQVAR=docdir $(PG_VAR))
  libdir=$(shell REQVAR=pkglibdir $(PG_VAR))
  
  SONAME0=\#SONAME\#
  WILD_LIB=$(LIB_LOC)/lib*.so.*
  ifneq (,$(wildcard $(WILD_LIB)))
      LIB_NAME=$(shell ls $(WILD_LIB) | head -n1)
      SONAME=$(shell objdump -p $(LIB_NAME) | grep SONAME | \
               awk '{if (match($$2,/\.so\.[0-9]+$$/)) print substr($$2,RSTART+4)}')
  else
      SONAME=$(major)
  endif
  SOVER0=\#SOVER\#
  SOVER=$(SONAME)-pg$(pg_majdotmin)
  SOVER3=$(SONAME)-pg$(pg_ver)
  
  
  SOSUBST=-e s/$(SOVER0)/$(SOVER)/g \
          -e s/$(SONAME0)/$(SONAME)/g \
          -e s/"@dir_java@"/$(DIR_JAVA)/g \
          -e s/"@pg_datadir@"/"$(subst /,\/,$(datadir))"/g \
          -e s/"@pg_bindir@"/"$(subst /,\/,$(bindir))"/g \
          -e s/"@pg_docdir@"/"$(subst /,\/,$(docdir))"/g \
          -e s/"@pg_libdir@"/"$(subst /,\/,$(libdir))"/g \
          -e s/"@pg_version@"/"$(subst /,\/,$(pg_ver))"/g \
          -e s/"@main_prefix@"/"$(subst /,\/,${main_prefix})"/g \
          -e s/"@main_bin@"/"$(subst /,\/,${main_bin})"/g \
          -e s/"@pg_main_bin@"/"$(subst /,\/,${pg_main_bin})"/g \
          -e s/"@pg_majdotmin@"/"$(subst /,\/,$(pg_majdotmin))"/g \
          -e s/"@major@"/"$(subst /,\/,$(INITIAL_MAJOR))"/g
  
  DUPFILES=-e s/\.install$$/\.files/ \
           -e s/"-pg at pg_majdotmin@"/"-pg$(pg_ver)"/g \
           -e s/$(SOVER0)/"$(SOVER3)"/g
  
  
  INFILES2:=$(notdir $(wildcard $(INDIR)/*))
  MKINFILE2=sed $(SOSUBST) $(INDIR)/$(FILE) > $(OUTDIR)/`echo $(FILE) | sed $(SOSUBST)`
  RMINFILE2=rm -f $(OUTDIR)/`echo $(FILE) | sed $(SOSUBST)`
  
  #INFILES3:=$(notdir $(shell ls $(INDIR)/*.install $(INDIR)/*-pg at pg_majdotmin@* $(INDIR)/*$(SOVER0)* $(INDIR)/*@major@* | uniq))
  INFILES3:=$(notdir $(shell ls $(INDIR)/*.install $(INDIR)/*-pg at pg_majdotmin@* $(INDIR)/*$(SOVER0)* | uniq))
  MKINFILE3=sed $(SOSUBST) $(INDIR)/$(FILE) > $(OUTDIR)/`echo $(FILE) | sed $(SOSUBST) $(DUPFILES)`
  RMINFILE3=rm -f $(OUTDIR)/`echo $(FILE) | sed $(SOSUBST) $(DUPFILES)`
  
  control:
  	$(foreach FILE,"control",$(MKINFILE2);)
  
  clean:
  	$(foreach FILE,$(INFILES2),$(RMINFILE2);)
  	$(foreach FILE,$(INFILES3),$(RMINFILE3);)
  	rm -f $(OUTDIR)/*.substvars
  	rm -f $(OUTDIR)/*.debhelper
  
  build:
  	$(foreach FILE,$(INFILES2),$(MKINFILE2);)
  	$(foreach FILE,$(INFILES3),$(MKINFILE3);)
  
  .PHONY: clean build control
  
  
  



More information about the Pkg-grass-devel mailing list