]> granicus.if.org Git - postgis/commitdiff
Remove extra/debian, per recommendation from Stephen Frost
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 11 Jul 2007 01:17:29 +0000 (01:17 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 11 Jul 2007 01:17:29 +0000 (01:17 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2653 b70326c6-7e19-0410-871a-916f4a2858ee

34 files changed:
extras/debian/README.Debian [deleted file]
extras/debian/changelog [deleted file]
extras/debian/compat [deleted file]
extras/debian/control [deleted file]
extras/debian/createdb.postgis [deleted file]
extras/debian/createdb.postgis.1 [deleted file]
extras/debian/logtop.sh [deleted file]
extras/debian/mktemplate_gis.1 [deleted file]
extras/debian/mktemplate_gis.in [deleted file]
extras/debian/mkupstreampatch.sh [deleted file]
extras/debian/patches/patch.level [deleted file]
extras/debian/patches/upstream.diff [deleted file]
extras/debian/postgresql.vars.mk [deleted file]
extras/debian/rmtemplate_gis [deleted file]
extras/debian/rmtemplate_gis.1 [deleted file]
extras/debian/rules [deleted file]
extras/debian/sofiles.in/control [deleted file]
extras/debian/sofiles.in/copyright [deleted file]
extras/debian/sofiles.in/libpostgis#SOVER#.dirs [deleted file]
extras/debian/sofiles.in/libpostgis#SOVER#.docs [deleted file]
extras/debian/sofiles.in/libpostgis#SOVER#.examples [deleted file]
extras/debian/sofiles.in/libpostgis#SOVER#.install [deleted file]
extras/debian/sofiles.in/libpostgis#SOVER#.manpages [deleted file]
extras/debian/sofiles.in/libpostgis#SOVER#.postinst [deleted file]
extras/debian/sofiles.in/libpostgis#SOVER#.prerm [deleted file]
extras/debian/sofiles.in/libpostgis-doc.doc-base [deleted file]
extras/debian/sofiles.in/libpostgis-doc.docs [deleted file]
extras/debian/sofiles.in/libpostgis-java-debug.install [deleted file]
extras/debian/sofiles.in/libpostgis-java.dirs [deleted file]
extras/debian/sofiles.in/libpostgis-java.docs [deleted file]
extras/debian/sofiles.in/libpostgis-java.examples [deleted file]
extras/debian/sofiles.in/libpostgis-java.install [deleted file]
extras/debian/sofiles.mk [deleted file]
extras/debian/watch [deleted file]

diff --git a/extras/debian/README.Debian b/extras/debian/README.Debian
deleted file mode 100644 (file)
index 9cc6bfe..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-postgis for Debian
-------------------
-
- -- Alex Bodnaru <alexbodn@012.net.il>, Sun,  7 Nov 2004 23:39:53 +0200
-
-in the belief that packaging should not be an additional heavy burden on the 
-upstream developers, this package is been made in close conformance with the 
-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.
-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 
-source for it's various versions, and those files are copyrighted differently. 
-see debian/COPYRIGHT.pgsql##_src.
-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.
-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.
-another facility for postgis programmers using debian: if you have configured 
-and installed postgresql-dev at a custom location, please set PG_CONFIG_PATH to 
-the location of pg_config (PG_CONFIG_PATH should end with '/'), and thus the 
-correct include files will be found. in this case, you should copy the 
-appropriate files from the postgresql source to debian/pgsql${pg_version}_src, 
-instead of those provided here (which apply to default debian installation of 
-postgresql).
-
-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.
-
-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 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.
-
-to install from the sources, please do:
-zcat $location/postgis_$version.diff.gz | patch -p1; chmod ug+x debian/rules, 
-being in the root of your current postgis distribution.
-
-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, and run 
-mktemplate_gis --user=$USERNAME.
-grant create database privilege to the same user, separately.
-
-please direct any problems and questions on this package (but not on the 
-upstream software) to me,
-alexbodn@012.net.il, or roberto.boati@gmail.com
diff --git a/extras/debian/changelog b/extras/debian/changelog
deleted file mode 100644 (file)
index ff507a5..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-postgis (1.1.0+CVS-1) unstable; urgency=low
-
-  * Automatic upstream version tracking.
-
- -- Alex Bodnaru <alexbodn@012.net.il>  Tue, 28 Jun 2005 04:01:59 +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 removed
-  * libpostgis-java-debug has been split from libpostgis-java
-  * bug #308728 has been reassigned to postgresql
-
- -- Alex Bodnaru <alexbodn@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@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@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@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@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@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@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@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@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@schabi.de>
-
- -- Alex Bodnaru <alexbodn@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@eppesuigoccas.homedns.org>
-
- -- Alex Bodnaru <alexbodn@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@eppesuigoccas.homedns.org>
-
- -- Alex Bodnaru <alexbodn@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@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@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: now it may be run to grant full privileges to any user as argument.
-
- -- Alex Bodnaru <alexbodn@012.net.il>  Tue, 22 Mar 2005 03:51:20 +0200
-
-postgis (1.0.0RC4-1) unstable; urgency=low
-
-  * Automatic upstream version tracking.
-
- -- Alex Bodnaru <alexbodn@012.net.il>  Sun, 6 Mar 2005 05:06:51 +0200
-
-postgis (1.0.0RC3-1) unstable; urgency=low
-
-  * Automatic upstream version tracking.
-
- -- Alex Bodnaru <alexbodn@012.net.il>  Thu, 3 Mar 2005 04:30:58 +0200
-
-postgis (1.0.0RC2-1) unstable; urgency=low
-
-  * Automatic upstream version tracking.
-
- -- Alex Bodnaru <alexbodn@012.net.il>  Sun, 30 Jan 2005 05:18:50 +0200
-
-postgis (0.9.0-1) unstable; urgency=low
-
-  * Initial Release.
-
- -- Alex Bodnaru <alexbodn@012.net.il>  Sun,  7 Nov 2004 23:39:53 +0200
-
diff --git a/extras/debian/compat b/extras/debian/compat
deleted file mode 100644 (file)
index b8626c4..0000000
+++ /dev/null
@@ -1 +0,0 @@
-4
diff --git a/extras/debian/control b/extras/debian/control
deleted file mode 100644 (file)
index 04749ce..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-Source: postgis
-Section: science
-Priority: optional
-Maintainer: Alex Bodnaru <alexbodn@012.net.il>
-Build-Depends: debhelper (>= 4.0.0), devscripts, gawk | awk, binutils | binutils-multiarch, libgeos-dev, proj, postgresql-dev (>= 7.2.0), libpgjava, gcj | java-compiler, fastjar
-Standards-Version: 3.6.1
-
-Package: libpostgis1-pg74
-Section: libs
-Priority: optional
-Provides: libpostgis
-Conflicts: postgis
-Architecture: any
-Depends: ${shlibs:Depends}, libgeos2 (>= 2.1.1), postgresql (>= 7.4.0), postgresql-contrib (>= 7.4.0), sudo
-Conflicts: postgresql (>> 7.4.99)
-Suggests: libpostgis-doc (= ${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: libpostgis-doc
-Section: doc
-Priority: optional
-Architecture: all
-Description: geographic objects support for PostgreSQL. Documentation
- 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 documentation for PostGIS.
-
-Package: libpostgis-java
-Section: science
-Priority: optional
-Architecture: all
-Depends: libpgjava
-Recommends: libpostgis
-Replaces: libpostgis-jdbc, libpostgisjava
-Description: geographic objects support for PostgreSQL. JDBC
- 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.
-
-Package: libpostgis-java-debug
-Section: devel
-Priority: optional
-Architecture: all
-Depends: libpgjava
-Recommends: libpostgis
-Replaces: libpostgis-jdbc, libpostgisjava
-Description: geographic objects support for PostgreSQL. JDBC
- 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.
diff --git a/extras/debian/createdb.postgis b/extras/debian/createdb.postgis
deleted file mode 100644 (file)
index 789583c..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec createdb -T template_gis "$@"
diff --git a/extras/debian/createdb.postgis.1 b/extras/debian/createdb.postgis.1
deleted file mode 100644 (file)
index 1dc9525..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-.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. Thus, you could only build databases owned by the 
-template owner.
-.TP 
-\fB\-\-help\fR
-Output help information and exit.
-.SH "EXAMPLES"
-.LP 
-To run this program you can simply type:
-.LP 
-# \fBcreatedb.postgis mypostgis\fR
-.SH "AUTHORS"
-.LP 
-Alex Bodnaru <alexbodn@012.net.il>
-.br 
-Roberto Boati <roberto.boati@daisyred.com>
-.SH "SEE ALSO"
-.LP 
-createdb.postgis(1), createdb(1), dropdb(1)
diff --git a/extras/debian/logtop.sh b/extras/debian/logtop.sh
deleted file mode 100644 (file)
index 58ee035..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-
-LOG_FILE=debian/changelog
-DEB_VER0="1"
-#debian gis private version
-#NEW_DEB_REL=`source debian/debian_versionname.sh`
-#DEB_VER0="0.dgis.$NEW_DEB_REL.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_DEB_REL=`echo $LOG_DEB_VER | awk -F . '{print $3;}'`
-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=
-
-#PRE_VER="no"
-#for VER_ARG in "CVS" "PRE" "RC"; do
-#echo $NEW_VER | grep $VER_ARG
-#    if [ -n "`echo $NEW_VER | grep $VER_ARG`" ]; then
-#          PRE_VER="yes"
-#      fi
-#done
-#if [ ! "$PRE_VER" = "yes" ]; then
-#    NEW_VER="${NEW_VER}RELEASE"
-#fi
-
-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 [ ! "$NEW_DEB_REL" = "$LOG_DEB_REL" ]; then
-#      INS_LINE3="Making package for $NEW_DEB_REL."
-#      DEB_VER="0.dgis.$NEW_DEB_REL."`echo $LOG_DEB_VER | awk -F . '{print $4;}'`
-#      LOG_FULL_VER="$LOG_VER-$DEB_VER"
-#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
diff --git a/extras/debian/mktemplate_gis.1 b/extras/debian/mktemplate_gis.1
deleted file mode 100644 (file)
index 0821d48..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-.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 [\fIoption\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), but once created, any user with createdb permissions can create and manage a spatial enabled database with \fBcreatedb.postgis\fR.
-.br 
-PostgreSQL should be running.
-.SH "OPTIONS"
-.LP 
-.TP 
-\fB\-\-user=\fR<\fIdbowner\fP>
-Creates a database template owned by <\fIdbowner\fP>.
-.TP 
-\fB\-\-template=\fR<\fItemplate_name\fP>
-Set template name to be <\fItemplate_name\fP>, it defaults to <\fItemplate_gis\fP>
-.TP 
-\fB\-\-dba=\fR<\fIdba_name\fP>
-DBA is required to perform template database building. Set DBA name to be <\fIdba_name\fP>, it defaults to <\fIpostgres\fP>
-.TP 
-\fB\-\-force\-sudo\fR
-By default, non root users have no sudo rights. But if the user knows of having the sudo right to DBA, this parameter should be passed.
-.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.
-.TP 
-.B DBAUSER
-If
-.RB $ DBAUSER
-is set, its value is used as the default DBA for building the template.
-.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@012.net.il>
-.br 
-Roberto Boati <roberto.boati@daisyred.com>
-.SH "SEE ALSO"
-.LP 
-createdb.postgis(1), rmtemplate_gis(1)
diff --git a/extras/debian/mktemplate_gis.in b/extras/debian/mktemplate_gis.in
deleted file mode 100644 (file)
index aca6938..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/bin/sh
-
-#create a template database, named template_gis by default,
-#and grant ownership or full privileges to the postgis tables to a user, postgres by default
-
-if [ -z "$TEMPLATEDB" ]; then
-    TDB="template_gis"
-fi
-if [ -z "$GRUSER" ]; then
-    GRUSER="postgres"
-fi
-if [ -z "$DBAUSER" ]; then
-    DBAUSER="postgres"
-fi
-
-for ARGVN in $1 $2 $3 $4 ; do
-    if [ `expr substr $ARGVN 1 7` = "--user=" ]; then
-               GRUSER=`echo $ARGVN | sed -e s/^--user=//`
-    elif [ `expr substr $ARGVN 1 11` = "--template=" ]; then
-               TDB=`echo $ARGVN | sed -e s/^--template=//`
-       elif [ `expr substr $ARGVN 1 6` = "--dba=" ]; then
-               DBAUSER=`echo $ARGVN | sed -e s/^--dba=//`
-       elif [ "$ARGVN" = "--force-sudo" ]; then
-               FORCE_SUDO="true"
-    elif [ -n $ARGVN ]; then
-        echo "Usage of `basename $0`"
-        echo "Supply arguments as follows"
-        echo "--user=username to own or be grant privileges on databases created from template"
-               echo "       default will be taken from \$GRUSER"
-        echo "       and if not defined: postgres"
-        echo "--template=templatename of the template to create"
-        echo "           default will be taken from \$TEMPLATEDB"
-        echo "           and if not defined: template_gis"
-               echo "--dba=dbaname of the dba to run programs as"
-               echo "      default will be taken from \$DBAUSER"
-               echo "      and if it's not defined: postgres"
-               echo "--force-sudo : set this if you know you are allowed to sudo dba for such missions."
-               echo "You must usually be either root, or a postgresql supervisor in order to use `basename $0`"
-        exit 1
-    fi
-done
-
-GRUSER=`echo $GRUSER | awk '{print tolower($0);}'`
-
-processes=`ps -A | grep '\<[p]ostmaster\>'`
-
-AMIDBA=`psql -At -d template1 -c "select usename from pg_user where usesuper = true and usename = '$USER';" 2>&1`
-if [ ! "$AMIDBA" = "$USER" ]; then
-       if [ ! "$USER" = "root" ] && [ ! "$FORCE_SUDO" = "true" ]; then
-               echo "Sorry, `basename $0` was meant to be executed as root, or by a dba user"
-               echo "If you know you can sudo to user $DBAUSER, please add a --force parameter."
-               echo "But it will be much better if you could su $DBAUSER, instead."
-               exit 1
-       else
-               SUDO="sudo -u $DBAUSER"
-               ISDBAPGUSER=`$SUDO psql -At -d template1 -c "select usename from pg_user where usesuper = true and usename = '$DBAUSER';" 2>&1`
-               ISDBASYSUSER=`cat /etc/passwd | awk -F : '{print $1}' | grep ^$DBAUSER$`
-               if [ ! "$ISDBAPGUSER" = "$DBAUSER" ]; then
-                       echo "either $DBAUSER is not a dba, or you cannot sudo -u $DBAUSER"
-                       exit 1
-               fi
-               if [ ! "$ISDBASYSUSER" = "$DBAUSER" ]; then
-                       echo "$DBAUSER is not a user, so there is no way to sudo"
-                       exit 1
-               fi
-       fi
-fi
-
-if [ "$processes" ]; then
-    db_update=`$SUDO psql -d template1 -c "UPDATE pg_database SET datistemplate = FALSE WHERE datname = '$TDB'" 2>&1`
-       if [ "$db_update" = "UPDATE 1" ]; then
-           $SUDO dropdb $TDB 2>&1 > /dev/null
-       fi
-       db_create=`$SUDO createdb $TDB 2>&1`
-       if [ "$db_create" = "CREATE DATABASE" ]; then
-               GRID=`$SUDO psql -d template1 -At -c "select usesysid from pg_user where usename='$GRUSER';"`
-        if [ -n "$GRID" ]; then
-                       $SUDO psql -d $TDB -c "UPDATE pg_database SET datdba = $GRID WHERE datname = '$TDB';" 2>&1 > /dev/null
-        fi
-               if [ -x /usr/bin/createlang ]; then
-                       $SUDO /usr/bin/createlang plpgsql $TDB 2>&1 > /dev/null
-               fi
-               $SUDO psql -d $TDB -f /@pg_datadir@/lwpostgis.sql 2>&1 | cat > /dev/null
-               $SUDO psql -d $TDB -f /@pg_datadir@/spatial_ref_sys.sql 2>&1 | cat > /dev/null
-               #pseudo tables for postgresql 7.2 and 7.4. feel free to add more, for other postgresql versions
-               PSEUDO_TABLES="'pg_xactlock', 'sql_features', 'sql_implementation_info', 'sql_languages', 
-                                          'sql_packages', 'sql_sizing', 'sql_sizing_profiles'"
-               TABLES=`$SUDO psql -d $TDB -At -c "select tablename from pg_tables where tablename not in ($PSEUDO_TABLES);"`
-           if [ -n "$GRID" ]; then
-                       for TABLE in $TABLES ; do
-                       $SUDO psql -d $TDB -c "alter table $TABLE owner to $GRUSER;" 2>&1 > /dev/null
-                       done
-           else #maybe public, or group
-               $SUDO psql -d $TDB -c "grant all privileges on table spatial_ref_sys to $GRUSER;" 2>&1 > /dev/null
-               $SUDO psql -d $TDB -c "grant all privileges on table geometry_columns to $GRUSER;" 2>&1 > /dev/null
-           fi
-               $SUDO psql -d $TDB -c "VACUUM FULL FREEZE;" 2>&1 > /dev/null
-               $SUDO psql -d $TDB -c "UPDATE pg_database SET datistemplate = TRUE WHERE datname = '$TDB';" 2>&1 > /dev/null
-               $SUDO psql -d $TDB -c "UPDATE pg_database SET datallowconn = FALSE WHERE datname = '$TDB';" 2>&1 > /dev/null
-       else
-               echo "$db_create"
-       fi
-else
-       echo "error installing $TDB: postgresql is not running."
-fi
diff --git a/extras/debian/mkupstreampatch.sh b/extras/debian/mkupstreampatch.sh
deleted file mode 100644 (file)
index 1701d27..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/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=`echo $1 | awk '{sub("([^.0-9]+)", "+&"); print $0;}'`
-
-CURRENTDIR="`pwd`"
-DEBIANDIR="$CURRENTDIR/debian"
-PATCHDIR="$DEBIANDIR/patches"
-mkdir -p $PATCHDIR
-PATCHFILE="$PATCHDIR/upstream.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_$$"
-               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 -Naur -x debian "$ORIGDIR" "$CURRENTDIR" > "$PATCHFILE"
-
-if [ -n "$OURTMPDIR" ]; then
-       rm -rf "$OURTMPDIR"
-fi
-
-exit 0
diff --git a/extras/debian/patches/patch.level b/extras/debian/patches/patch.level
deleted file mode 100644 (file)
index 7ed6ff8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-5
diff --git a/extras/debian/patches/upstream.diff b/extras/debian/patches/upstream.diff
deleted file mode 100644 (file)
index 99ddd70..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-diff -Naur -x debian /common/src/postgis/postgis-cvs6.orig/extras/ogc_test_suite/Makefile /common/src/postgis/postgis-cvs6/extras/ogc_test_suite/Makefile
---- /common/src/postgis/postgis-cvs6.orig/extras/ogc_test_suite/Makefile       2005-04-15 15:09:20.000000000 +0000
-+++ /common/src/postgis/postgis-cvs6/extras/ogc_test_suite/Makefile    2005-06-29 00:53:04.000000000 +0000
-@@ -1,15 +1,15 @@
- TESTDB=ogc_test_suite
-+TMPDIR ?= /tmp
-+      
- all:
--      createdb $(TESTDB) > /dev/null
--      createlang plpgsql $(TESTDB)
--      psql $(TESTDB) < ../../lwpostgis.sql >/dev/null 2>&1
--      psql -a -f 1_schema.sql $(TESTDB) > 1_output.txt 2>&1
--      psql -a -f 2_queries.sql $(TESTDB) > 2_output.txt 2>&1
-+      createdb.postgis $(TESTDB) > /dev/null
-+      psql -a -f 1_schema.sql $(TESTDB) > $(TMPDIR)/1_output.txt 2>&1
-+      psql -a -f 2_queries.sql $(TESTDB) > $(TMPDIR)/2_output.txt 2>&1
-       @echo "---------------------------------------"
--      @echo "---* Check results in 2_output.txt *---"
-+      @echo "---* Check results in $(TMPDIR)/2_output.txt *---"
-       @echo "---------------------------------------"
-       
- clean:
-       dropdb $(TESTDB)
--      rm -f 1_output.txt
--      rm -f 2_output.txt
-+      rm -f $(TMPDIR)/1_output.txt
-+      rm -f $(TMPDIR)/2_output.txt
-diff -Naur -x debian /common/src/postgis/postgis-cvs6.orig/extras/ogc_test_suite/README /common/src/postgis/postgis-cvs6/extras/ogc_test_suite/README
---- /common/src/postgis/postgis-cvs6.orig/extras/ogc_test_suite/README 2005-04-15 15:09:20.000000000 +0000
-+++ /common/src/postgis/postgis-cvs6/extras/ogc_test_suite/README      2005-06-29 00:53:04.000000000 +0000
-@@ -3,18 +3,6 @@
- and legal adaptations necessary for PostGIS were added to allow it
- to run.
--- All tests must be run in a database named 'ogc' in order for the 
--  AddGeometryColumn() function calls to work.
--
--  createdb ogc
--  createlang plpgsql ogc
--  psql ogc < ../../lwpostgis.sql
--
--  psql -a -f 1_schema.sql ogc >& 1_output.txt
--  psql -a -f 2_queries.sql ogc >& 2_output.txt
--  psql -a -f 3_cleanup.sql ogc >& 3_output.txt
--
--- Load the test files in order. File 2 has the actual tests, with the
--  correct answers for each test in the comments.
--
-+- Run make to perform the test.
-+- Run make clean to clean the results.
-diff -Naur -x debian /common/src/postgis/postgis-cvs6.orig/regress/run_index_regress /common/src/postgis/postgis-cvs6/regress/run_index_regress
---- /common/src/postgis/postgis-cvs6.orig/regress/run_index_regress    2005-03-07 13:58:04.000000000 +0000
-+++ /common/src/postgis/postgis-cvs6/regress/run_index_regress 2005-06-29 00:53:04.330621405 +0000
-@@ -13,9 +13,7 @@
- echo ""
- DB=postgis_reg
--createdb $DB > /dev/null
--createlang plpgsql $DB > /dev/null
--psql -f ../lwpostgis.sql $DB > /dev/null 2>&1
-+createdb.postgis $DB > /dev/null
- psql -tA < regress_index.sql $DB > "${OUTFILE}" 2>&1
- diff regress_index_expected "${OUTFILE}"
- sleep 1
-diff -Naur -x debian /common/src/postgis/postgis-cvs6.orig/regress/run_lwgeom_regress /common/src/postgis/postgis-cvs6/regress/run_lwgeom_regress
---- /common/src/postgis/postgis-cvs6.orig/regress/run_lwgeom_regress   2005-03-07 13:58:04.000000000 +0000
-+++ /common/src/postgis/postgis-cvs6/regress/run_lwgeom_regress        2005-06-29 00:53:04.330621405 +0000
-@@ -12,13 +12,7 @@
- echo "Building a database for testing (postgis_reg)."
- DB=postgis_reg
--createdb $DB > /dev/null
--
--echo "Building postgis support in it."
--echo ""
--
--createlang plpgsql $DB > /dev/null
--psql -f ../lwpostgis.sql $DB > /dev/null 2>&1
-+createdb.postgis $DB > /dev/null
- echo "there shouldnt be any real output produced after this line."
- echo ""
-diff -Naur -x debian /common/src/postgis/postgis-cvs6.orig/regress/run_ogc_regress /common/src/postgis/postgis-cvs6/regress/run_ogc_regress
---- /common/src/postgis/postgis-cvs6.orig/regress/run_ogc_regress      2005-03-07 13:58:04.000000000 +0000
-+++ /common/src/postgis/postgis-cvs6/regress/run_ogc_regress   2005-06-29 00:53:04.330621405 +0000
-@@ -13,9 +13,7 @@
- echo
- DB=postgis_reg
--createdb $DB > /dev/null
--createlang plpgsql $DB > /dev/null
--psql -f ../lwpostgis.sql $DB > /dev/null 2>&1
-+createdb.postgis $DB > /dev/null
- psql -tA < regress_ogc.sql $DB 2>&1 | grep -v INSERT > "${OUTFILE}"
- diff regress_ogc_expected "${OUTFILE}"
- sleep 1
-diff -Naur -x debian /common/src/postgis/postgis-cvs6.orig/regress/run_regress /common/src/postgis/postgis-cvs6/regress/run_regress
---- /common/src/postgis/postgis-cvs6.orig/regress/run_regress  2005-03-07 13:58:04.000000000 +0000
-+++ /common/src/postgis/postgis-cvs6/regress/run_regress       2005-06-29 00:53:04.331621242 +0000
-@@ -13,9 +13,7 @@
- echo
- DB=postgis_reg
--createdb $DB > /dev/null
--createlang plpgsql $DB > /dev/null
--psql -f ../lwpostgis.sql $DB > /dev/null 2>&1
-+createdb.postgis $DB > /dev/null
- psql -tA < regress.sql $DB 2>&1 | grep -v INSERT > "${OUTFILE}"
- diff regress_expected "${OUTFILE}"
- sleep 1
diff --git a/extras/debian/postgresql.vars.mk b/extras/debian/postgresql.vars.mk
deleted file mode 100644 (file)
index 5e7e57b..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-
-# this makefile includes the Makefile.config from postgis, and echoes a variable value, by the
-# variable name supplied in ${REQVAR}
-
-include Makefile.config
-
-all:
-ifeq (,$(${REQVAR}))
-       @echo $(shell ${PG_CONFIG_PATH}pg_config --configure | \
-                awk 'BEGIN {RS = " "; FS = "=";} \
-                  {if (match($$1,"--${REQVAR}$$")) \
-                   { \
-                       gsub("'\''$$", "", $$2); \
-                       gsub("^/", "", $$2); \
-                       print $$2; \
-                   } \
-                  }' \
-            )
-else
-       @echo $(${REQVAR}) | awk '{gsub("^/", ""); print $$0;}'
-endif
-
-.PHONY: all
diff --git a/extras/debian/rmtemplate_gis b/extras/debian/rmtemplate_gis
deleted file mode 100644 (file)
index 243b5e8..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-#drop template_gis, since it depends on the current postgis version only
-#it may be used to drop any postgresql template, by supplying argument
-
-if [ -z "$TEMPLATEDB" ]; then
-    TDB="template_gis"
-fi
-               
-for ARGVN in $1 $2 ; do
-    if [ `expr substr $ARGVN 1 11` = "--template=" ]; then
-        TDB=`echo $ARGVN | sed -e s/^--template=//`
-#        TDB=${ARGVN:11}
-    elif [ -n $ARGVN ]; then
-        echo "Usage of `basename $0`"
-        echo "Supply argument --template=templatename of the template to create"
-        echo "default will be taken from \$TEMPLATEDB"
-        echo "and if not defined: template_gis"
-        exit 1
-       fi
-done
-                                                                                                                                                                                                                       
-processes=`ps -A | grep '\<[p]ostmaster\>'`
-
-SUDO="sudo -u postgres"
-
-if [ "$processes" ]; then
-       db_update=`$SUDO psql -d template1 -c "UPDATE pg_database SET datistemplate = FALSE WHERE datname = '$TDB';" 2>&1`
-       if [ "$db_update" = "UPDATE 1" ]; then
-               $SUDO dropdb $TDB 2>&1 > /dev/null
-       else
-               echo "$TDB could not be accessed. it may not exist"
-       fi
-else
-       echo "error removing $TDB: postgresql is not running"
-fi
diff --git a/extras/debian/rmtemplate_gis.1 b/extras/debian/rmtemplate_gis.1
deleted file mode 100644 (file)
index e447264..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-.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).
-.br 
-PostgreSQL should be running.
-.SH "OPTIONS"
-.LP 
-.TP 
-\fB\-\-template=\fR<\fItemplate_name\fP>
-.TP 
-\fB\-\-help\fR
-Output help information and exit.
-Set template name to be <\fItemplate_name\fP>, it defaults to <\fItemplate_gis\fP>
-.SH "ENVIRONMENT"
-.TP 
-.B TEMPLATEDB
-If
-.RB $ TEMPLATEDB
-is set, its value is used as the default template name.
-.SH "EXAMPLES"
-.TP 
-.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@012.net.il>
-.br 
-Roberto Boati <roberto.boati@daisyred.com>
-.SH "SEE ALSO"
-.LP 
-createdb.postgis(1), mktemplate_gis(1)
diff --git a/extras/debian/rules b/extras/debian/rules
deleted file mode 100755 (executable)
index 7c0056b..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-main_prefix:=usr
-REL_DEBDIR=debian
-DEBDIR=$(CURDIR)/$(REL_DEBDIR)
-
-JAVA_PATH=/$(main_prefix)/share/java
-LIB_NAME=`ls lwgeom/lib*.so.* | head -n1`
-
-include Version.config
-
-DESTDIR=$(DEBDIR)/tmp
-REL_DESTDIR=$(REL_DEBDIR)/tmp
-PATCHDIR=$(DEBDIR)/patches
-PATCHFILE=$(PATCHDIR)/upstream.diff
-PATCHLEVEL=`cat $(PATCHDIR)/patch.level`
-PATCHREJ=$(PATCHDIR)/rejects
-main_bin=$(main_prefix)/bin
-
-pg_majdotmin:=$(shell ${PG_CONFIG_PATH}pg_config --version | \
-                awk '{print $$2;}' | awk -F . '{print $$1"."$$2;}')
-
-PG_VAR=PGSQL_SRC=$(PGSQL_SRC) make -f $(DEBDIR)/postgresql.vars.mk
-# 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=MODULE_INSTALLDIR)
-pg_ver=$(shell $(PG_VAR) REQVAR=USE_VERSION)
-
-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("@main_prefix@", "$(main_prefix)"); \
-             gsub("@main_bin@", "$(main_bin)"); \
-             gsub("@pg_majdotmin@", "$(pg_majdotmin)"); \
-             print $$0;}'
-
-CFLAGS += -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-    CFLAGS += -O0
-else
-    CFLAGS += -O2
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-    INSTALL_PROGRAM += -s
-endif
-
-# shared library versions
-version=$(REL_MAJOR_VERSION).$(REL_MINOR_VERSION).$(REL_MICRO_VERSION)
-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)
-
-TMP_FILENAME=/tmp/$(shell basename $(FILENAME)_$$PPID)
-PG_IN_FILES=$(DEBDIR)/control $(DEBDIR)/copyright \
-            $(shell ls $(PKG_NAME).* $(DEBDIR)/libpostgis-doc.* $(DEBDIR)/libpostgis-java*)
-APPLY_PG_NAMES=awk $(AWK_PG_REP) $(FILENAME) > $(TMP_FILENAME); mv $(TMP_FILENAME) $(FILENAME)
-
-CLEAN_PG_FILES= \
-    echo "\nCleaning for $(X_VER): "; \
-    make -f $(DEBDIR)/sofiles.mk LIB_NAME=$(LIB_NAME) EXTRA_VER=-pg$(X_VER) clean
-PG_VERSIONS=72 73 74 80
-
-# actions
-
-configure: configure-stamp
-configure-stamp:
-       dh_testdir
-       # commands to configure the package.
-       $(MAKE) configure
-       $(MAKE) Makefile.config
-       # patch doesn't necessarily have to succeed
-ifneq (,$(wildcard $(PATCHFILE)))
-       -patch -s -r $(PATCHREJ) -p$(PATCHLEVEL) -N < $(PATCHFILE)
-endif
-       rm -f $(PATCHREJ)
-       
-       touch configure-stamp
-
-build: build-stamp
-build-stamp: configure-stamp 
-       dh_testdir
-       # Add here commands to compile the package.
-       $(MAKE)
-       @echo finding xsl stylesheets...
-#      XSLBASE=$(XSLBASE) $(MAKE) -C doc html
-       DEBUGJAR=postgis_debug.fastjar JAR=fastjar $(MAKE) -C jdbc2 jar
-       sh $(DEBDIR)/logtop.sh $(version)
-       make -f $(DEBDIR)/sofiles.mk LIB_NAME=$(LIB_NAME) EXTRA_VER=$(EXTRA_VER) build
-       touch build-stamp
-
-clean: configure-stamp
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp configure-stamp
-       dh_clean
-       # Add here commands to clean up after the build process.
-       $(foreach X_VER,$(PG_VERSIONS),$(CLEAN_PG_FILES);)
-       sh $(DEBDIR)/logtop.sh $(version)
-       $(MAKE) maintainer-clean
-       sh $(DEBDIR)/mkupstreampatch.sh $(version)
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k
-       $(foreach FILENAME,$(PG_IN_FILES),$(APPLY_PG_NAMES);)
-       dh_installdirs -A
-       
-       # commands to install the package into debian/tmp
-       $(MAKE) install DESTDIR=$(DESTDIR)
-       DEBUGJAR=postgis_debug.fastjar JAR=fastjar $(MAKE) -C jdbc2 install DESTDIR=$(DESTDIR)$(JAVA_PATH)
-
-       mkdir -p $(DESTDIR)/$(bindir)
-#      cp utils/*.pl $(DESTDIR)/$(bindir)
-       mkdir -p $(DESTDIR)/$(main_bin)
-#      mv $(DESTDIR)/$(bindir)/shp2pgsql $(DESTDIR)/$(main_bin)
-#      mv $(DESTDIR)/$(bindir)/pgsql2shp $(DESTDIR)/$(main_bin)
-       cat $(DEBDIR)/mktemplate_gis.in | awk $(AWK_PG_REP) > $(DESTDIR)/$(main_bin)/mktemplate_gis
-       chmod 755 $(DESTDIR)/$(main_bin)/mktemplate_gis
-       cp $(DEBDIR)/rmtemplate_gis $(DESTDIR)/$(main_bin)
-       chmod 755 $(DESTDIR)/$(main_bin)/rmtemplate_gis
-       cp $(DEBDIR)/createdb.postgis $(DESTDIR)/$(main_bin)
-       chmod 755 $(DESTDIR)/$(main_bin)/createdb.postgis
-
-       dh_installchangelogs NEWS
-       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_link
-       dh_strip
-       find $(REL_DEBDIR) -name .cvsignore -exec rm -f '{}' ';'
-       dh_fixperms
-       dh_makeshlibs --noscripts
-
-
-# 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
diff --git a/extras/debian/sofiles.in/control b/extras/debian/sofiles.in/control
deleted file mode 100644 (file)
index 586729e..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-Source: postgis
-Section: science
-Priority: optional
-Maintainer: Alex Bodnaru <alexbodn@012.net.il>
-Build-Depends: debhelper (>= 4.0.0), devscripts, gawk | awk, binutils | binutils-multiarch, libgeos-dev, proj, postgresql-dev (>= 7.2.0), libpgjava, gcj | java-compiler, fastjar
-Standards-Version: 3.6.1
-
-Package: libpostgis#SOVER#
-Section: libs
-Priority: optional
-Provides: libpostgis
-Conflicts: postgis
-Architecture: any
-Depends: ${shlibs:Depends}, libgeos2 (>= 2.1.1), postgresql (>= @pg_majdotmin@.0), postgresql-contrib (>= @pg_majdotmin@.0), sudo
-Conflicts: postgresql (>> @pg_majdotmin@.99)
-Suggests: libpostgis-doc (= ${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: libpostgis-doc
-Section: doc
-Priority: optional
-Architecture: all
-Description: geographic objects support for PostgreSQL. Documentation
- 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 documentation for PostGIS.
-
-Package: libpostgis-java
-Section: science
-Priority: optional
-Architecture: all
-Depends: libpgjava
-Recommends: libpostgis
-Replaces: libpostgis-jdbc, libpostgisjava
-Description: geographic objects support for PostgreSQL. JDBC
- 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.
-
-Package: libpostgis-java-debug
-Section: devel
-Priority: optional
-Architecture: all
-Depends: libpgjava
-Recommends: libpostgis
-Replaces: libpostgis-jdbc, libpostgisjava
-Description: geographic objects support for PostgreSQL. JDBC
- 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.
diff --git a/extras/debian/sofiles.in/copyright b/extras/debian/sofiles.in/copyright
deleted file mode 100644 (file)
index 5d09367..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-This package was debianized by Alex Bodnaru <alexbodn@012.net.il> on
-Sun,  7 Nov 2004 23:39:53 +0200.
-
-It was downloaded from http://postgis.refractions.net
-
-Upstream Authors: See /@main_prefix@/share/doc/libpostgis#SOVER#/CREDITS
-
-License: 
-
-   This package is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; version 2 dated June, 1991.
-
-   This package is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this package; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA.
-
-On Debian GNU/Linux systems, the complete text of the GNU General
-Public License can be found in `/@main_prefix@/share/common-licenses/GPL'.
diff --git a/extras/debian/sofiles.in/libpostgis#SOVER#.dirs b/extras/debian/sofiles.in/libpostgis#SOVER#.dirs
deleted file mode 100644 (file)
index ca1c22b..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-@main_bin@
-@pg_libdir@
-@pg_bindir@
-@pg_docdir@
-@pg_datadir@
diff --git a/extras/debian/sofiles.in/libpostgis#SOVER#.docs b/extras/debian/sofiles.in/libpostgis#SOVER#.docs
deleted file mode 100644 (file)
index ccf7824..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-README.postgis
-TODO
-CREDITS
-loader/README.*
diff --git a/extras/debian/sofiles.in/libpostgis#SOVER#.examples b/extras/debian/sofiles.in/libpostgis#SOVER#.examples
deleted file mode 100644 (file)
index 28a6b13..0000000
+++ /dev/null
@@ -1 +0,0 @@
-extras/*
diff --git a/extras/debian/sofiles.in/libpostgis#SOVER#.install b/extras/debian/sofiles.in/libpostgis#SOVER#.install
deleted file mode 100644 (file)
index b1a3b98..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-@main_bin@/*
-@pg_libdir@/lib*.so*
-@pg_datadir@/*.sql
-@pg_docdir@/README*
-@pg_bindir@/*
diff --git a/extras/debian/sofiles.in/libpostgis#SOVER#.manpages b/extras/debian/sofiles.in/libpostgis#SOVER#.manpages
deleted file mode 100644 (file)
index 545c065..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-doc/man/pgsql2shp.1
-doc/man/shp2pgsql.1
-debian/createdb.postgis.1
-debian/mktemplate_gis.1
-debian/rmtemplate_gis.1
diff --git a/extras/debian/sofiles.in/libpostgis#SOVER#.postinst b/extras/debian/sofiles.in/libpostgis#SOVER#.postinst
deleted file mode 100644 (file)
index bb4e531..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-#DEBHELPER#
-if [ "$1" = "configure" ]; then
-    /@main_bin@/mktemplate_gis
-    cd /@pg_bindir@
-    rm -f pgsql2shp
-       ln -s /@main_bin@/pgsql2shp pgsql2shp
-    chmod a+x pgsql2shp
-    rm -f shp2pgsql
-       ln -s /@main_bin@/shp2pgsql shp2pgsql
-    chmod a+x shp2pgsql
-fi
diff --git a/extras/debian/sofiles.in/libpostgis#SOVER#.prerm b/extras/debian/sofiles.in/libpostgis#SOVER#.prerm
deleted file mode 100644 (file)
index d1ea132..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-#DEBHELPER#
-if [ "$1" = "upgrade" -o "$1" = "remove" ]; then
-    rm -f /@pg_bindir@/pgsql2shp
-    rm -f /@pg_bindir@/shp2pgsql
-    /@main_bin@/rmtemplate_gis
-fi
diff --git a/extras/debian/sofiles.in/libpostgis-doc.doc-base b/extras/debian/sofiles.in/libpostgis-doc.doc-base
deleted file mode 100644 (file)
index ba95847..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Document: postgis-manual
-Title: PostGIS Manual
-Author: See /@main_prefix@/share/doc/libpostgis#SOVER#/CREDITS
-Abstract: This manual teaches libpostgis handling.
-Section: Apps/Database
-
-Format: HTML
-Index: /@main_prefix@/share/doc/libpostgis-doc/postgis.html
-Files: /@main_prefix@/share/doc/libpostgis-doc/*.html
-
-Format: XML
-Index: /@main_prefix@/share/doc/libpostgis-doc/postgis.xml
-Files: /@main_prefix@/share/doc/libpostgis-doc/*.xml
diff --git a/extras/debian/sofiles.in/libpostgis-doc.docs b/extras/debian/sofiles.in/libpostgis-doc.docs
deleted file mode 100644 (file)
index 8fd0122..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-doc/html/*.html
-doc/html/*.css
-doc/postgis.xml
-README.postgis
-CREDITS
diff --git a/extras/debian/sofiles.in/libpostgis-java-debug.install b/extras/debian/sofiles.in/libpostgis-java-debug.install
deleted file mode 100644 (file)
index 2519009..0000000
+++ /dev/null
@@ -1 +0,0 @@
-@main_prefix@/share/java/postgis_debug.jar
diff --git a/extras/debian/sofiles.in/libpostgis-java.dirs b/extras/debian/sofiles.in/libpostgis-java.dirs
deleted file mode 100644 (file)
index b63a3bc..0000000
+++ /dev/null
@@ -1 +0,0 @@
-@main_prefix@/share/java
diff --git a/extras/debian/sofiles.in/libpostgis-java.docs b/extras/debian/sofiles.in/libpostgis-java.docs
deleted file mode 100644 (file)
index ba30786..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-CREDITS
-jdbc2/README
diff --git a/extras/debian/sofiles.in/libpostgis-java.examples b/extras/debian/sofiles.in/libpostgis-java.examples
deleted file mode 100644 (file)
index 4e3438c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-jdbc2/src/examples/*
diff --git a/extras/debian/sofiles.in/libpostgis-java.install b/extras/debian/sofiles.in/libpostgis-java.install
deleted file mode 100644 (file)
index a7eab14..0000000
+++ /dev/null
@@ -1 +0,0 @@
-@main_prefix@/share/java/postgis.jar
diff --git a/extras/debian/sofiles.mk b/extras/debian/sofiles.mk
deleted file mode 100644 (file)
index d5d27e0..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/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.
-
-# shared library version
-SONAME:=$(shell objdump -p ${LIB_NAME} | grep SONAME | \
-          awk '{if (match($$2,/\.so\.[0-9]+$$/)) print substr($$2,RSTART+4)}')
-INDIR=$(CURDIR)/debian/sofiles.in
-OUTDIR=$(CURDIR)/debian
-SOVER=\#SOVER\#
-SOSUBST=-e s/$(SOVER)/$(SONAME)$(EXTRA_VER)/g
-SOINSTALL2FILES=-e s/\.install$$/\.files/
-
-INFILES2:=$(notdir $(wildcard $(INDIR)/*))
-MKINFILE2=sed $(SOSUBST) $(INDIR)/$(FILE) > $(OUTDIR)/`echo $(FILE) | sed $(SOSUBST)`
-RMINFILE2=rm -f $(OUTDIR)/`echo $(FILE) | sed $(SOSUBST)`
-
-INFILES3:=$(notdir $(wildcard $(INDIR)/*.install))
-MKINFILE3=sed $(SOSUBST) $(INDIR)/$(FILE) > $(OUTDIR)/`echo $(FILE) | sed $(SOSUBST) $(SOINSTALL2FILES)`
-RMINFILE3=rm -f $(OUTDIR)/`echo $(FILE) | sed $(SOSUBST) $(SOINSTALL2FILES)`
-
-clean:
-       mv $(OUTDIR)/control $(OUTDIR)/control.bak
-       $(foreach FILE,$(INFILES2),$(RMINFILE2);)
-       mv $(OUTDIR)/control.bak $(OUTDIR)/control
-       $(foreach FILE,$(INFILES3),$(RMINFILE3);)
-       rm -f $(OUTDIR)/*.substvars
-       rm -f $(OUTDIR)/*.debhelper
-       
-build:
-       $(foreach FILE,$(INFILES2),$(MKINFILE2);)
-       $(foreach FILE,$(INFILES3),$(MKINFILE3);)
-
-soname:
-       echo SONAME=$(SONAME)
-
-.PHONY: clean build soname
diff --git a/extras/debian/watch b/extras/debian/watch
deleted file mode 100644 (file)
index 4b9324d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-# Example watch control file for uscan
-# Rename this file to "watch" and then you can run the "uscan" command
-# to check for upstream updates and more.
-# Site         Directory               Pattern                 Version Script
-version=2
-http://postgis.refractions.net/postgis-(.*)\.tar\.gz   debian  uupdate