summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcvsdist <cvsdist@fedoraproject.org>2004-09-09 10:41:12 +0000
committercvsdist <cvsdist@fedoraproject.org>2004-09-09 10:41:12 +0000
commit5a04de739604b61c44bedb9d4ed00f6701103b42 (patch)
tree2943fcbc4b8c2c0ff5be54162fb224943dc8300f
parent6b72880c1f645196832dc57f66666ade5cf1e82d (diff)
downloadpostgresql-setup-5a04de739604b61c44bedb9d4ed00f6701103b42.tar.gz
postgresql-setup-5a04de739604b61c44bedb9d4ed00f6701103b42.tar.xz
postgresql-setup-5a04de739604b61c44bedb9d4ed00f6701103b42.zip
auto-import postgresql-7.2.3-5.80 from postgresql-7.2.3-5.80.src.rpmscratch-splitpostgresql-7_2_3-5_80
-rw-r--r--.cvsignore4
-rw-r--r--README.rpm-dist116
-rw-r--r--postgresql.init15
-rwxr-xr-xpostgresql.spec535
-rw-r--r--sources4
5 files changed, 283 insertions, 391 deletions
diff --git a/.cvsignore b/.cvsignore
index 6d0669d..8ffdcca 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,3 +1,3 @@
-file-lists.tar.gz
migration-scripts.tar.gz
-postgresql-7.2.2.tar.gz
+postgresql-7.2.3.tar.gz
+postgresql-dump.1.gz
diff --git a/README.rpm-dist b/README.rpm-dist
index 0dc9e58..ecf543f 100644
--- a/README.rpm-dist
+++ b/README.rpm-dist
@@ -1,14 +1,18 @@
README.rpm-dist
-----------------------------------------------------------------------------
-Version 4.0, for the PostgreSQL 7.2-1PGDG RPMset.
+Version 4.1, for the PostgreSQL 7.2.1-2PGDG RPMset.
Lamar Owen <lamar.owen@wgcr.org>
-----------------------------------------------------------------------------
+
+DISCLAIMER: the following information is provided in the hope that it helps
+people install and use PostgreSQL. It is being provided without warranty of
+any kind, so, use at your own risk.
+-----------------------------------------------------------------------------
Contents:
0.) Quick -i note.
1.) Introduction, QuickStart, and credits
2.) PostgreSQL RPM packages and rationale
- 3.) Upgrading from an older version of PostgreSQL without losing data.
+ 3.) Upgrading. (Deprecated. Will be removed in a future README)
4.) Regression Testing
5.) Starting postmaster automatically on startup
6.) Grand Unified Configuration(GUC) File.
@@ -31,18 +35,21 @@ This document exists to explain the layout of the RPM's for PostgreSQL, to
explain how to migrate from an older version, and to explain WHY it can be
so difficult to upgrade PostgreSQL.
-This document is written to be applicable to version 7.2 of PostgreSQL,
+This document is written to be applicable to version 7.2.1 of PostgreSQL,
which is the current version of the RPM's as of this writing.
-Official PostgreSQL Global Development Group RPM's will from version 7.1.2
-on carry a 'PGDG' after the release number. Other RPMset's as distributed
-with Linux distributions may have a different release number and initials.
+Official PostgreSQL Global Development Group RPM's carry a 'PGDG' after the
+release number. Other RPMset's as distributed with Linux distributions may
+have a different release number and initials.
It is preferable for the distribution-specific set to be the one used, as
the PGDG set is intentionally generic. So, if your distro has a set of RPMs,
use them in preference. If you want to stay up-to-date on the PostgreSQL
core itself, use the PGDG generic set -- but understand that it is a
-GENERIC set.
+GENERIC set. In particular, SuSE and RedHat users that use late-model
+distributions should definitely use their RPMs. Trond and Reinhard do a
+good job keeping them up to date. The Polish(ed) Linux Distribution also
+does an excellent job with the PLD RPM version.
These RPMs are designed to be LSB-compliant -- if you find this not to be the
case, please let me know by way of the pgsql-ports@postgresql.org mailing
@@ -80,69 +87,41 @@ Jeff Johnson
Reinhard Max
Peter Eisentraut
+A big THANK YOU to Trond, particularly. He has poured an amazing amount of
+work into this package, particularly in cleaning up my errors, as well as
+getting the contrib package to actually be useful.
+
POSTGRESQL RPM PACKAGES AND RATIONALE.
-----------------------------------------------------------------------------
-On RedHat Linux, prior to version 6.5, PostgreSQL was packaged in RPM form in
-three (or four) packages:
-
-postgresql: The server and documentation
-postgresql-clients: The client libraries, the cli, and the tcl interface
-postgresql-devel: Development libraries (for the client-side)
-postgresql-data: A sample database -- not shipped with the 6.4 RPMS.
+[This section has been edited. See prior versions for older history]
-However, it was decided that a different split would be more appropriate for
-users. The 7.0 splitup allows more flexibility in installation, as well as
-making the new clients into their own packages. The new packages are:
+PostgreSQL is a large, multifaceted program, with many clients and options
+that all users will not need. So, several subpackages are built. Here is
+the list of the current (7.2.1) packages:
postgresql: Some clients and libraries, and documentation
postgresql-server: Server executables and data files
postgresql-devel: Client-side development libraries
-postgresql-tcl: TCL/TK client libraries and the pgaccess client
postgresql-perl: PERL client module
postgresql-python: The PygreSQL client library
postgresql-odbc: Linux ODBC client (not required to use ODBC from Win95)
postgresql-jdbc: JAR of the JDBC client
postgresql-test: The regression tests and associated files.
-
-For version 7.0.x, another package is being shipped, and one package has been
-trimmed:
postgresql-tk: Tk client and pgaccess.
postgresql-tcl: Tcl client and PL ONLY.
-
-For version 7.1, more packages are being shipped:
postgresql-libs: client shared libraries.
postgresql-docs: extra documentation,such as the SGML doc sources.
postgresql-contrib: The contrib source tree, as well as selected binaries.
-For SuSE Linux <= 7.0, the packages are named differently, but with the same
-functionality. Here is a mapping:
-SuSE: RedHat:
------ -----------------
-postgres postgresql
-pg_serv postgresql-server
-pg_devel postgresql-devel
-pg_tcl postgresql-tcl
-pg_perl postgresql-perl
-pg_pyth postgresql-python
-pg_odbc postgresql-odbc
-pg_jdbc postgresql-jdbc
-pg_test postgresql-test
-
-There are other changes to the SuSE packages to make them conform to the
-SuSE packaging standards. SuSE Linux has been shipping their own packages.
-
-While the repackaging will initially cause some confusion, it makes it
-possible to set up a RedHat linux machine to be only a client -- the server
-is no longer required. The clients were split out -- after all, a person who
-needs the perl client may very well not need the tcl client, etc. And, the
-regression tests were added to give some confidence of the suitability of
-PostgreSQL, as well as the stability of the server machine. Additionally,
-the regression tests can be used to help find hardware errors.
+The postgresql-libs package is required for all installations. Otherwise, a
+mix and match installation may be made. The devel package is required to
+do any compilation of a program that uses either the client libs or the
+server (SPI) interface.
RPM FILE LOCATIONS.
-----------------------------------------------------------------------------
-In compliance with the Linux FHS, the PostgreSQL RPM's install files in a manner
-not consistent with most of the PostgreSQL documentation. According to the
+In compliance with the LSB, the PostgreSQL RPM's install files in a manner
+not consistent with much of the PostgreSQL documentation. According to the
standard PostgreSQL documentation, PostgreSQL is installed under the directory
/usr/local/pgsql, with executables, source, and data existing in various
subdirectories.
@@ -184,6 +163,17 @@ cause thembe be non-compliant, please let me know.
UPGRADING.
-----------------------------------------------------------------------------
+WARNING: This information is deprecated. Make sure to fully back up
+your database files BEFORE upgrading the RPM. Unfortunately, even then
+you may have problems -- so be ready to hand-edit dump files.
+
+A pg_upgrade utility is found in the contrib tree -- but it is not really
+production quality code. If this lack of easy upgrades bothers you, please
+let the developer list (pgsql-hackers@postgresql.org) know about it -- maybe
+seamless upgrades can be made a higher prioriy if enough users complain.
+
+Use the following information at your own risk.
+
CAUTION: While a semi-automatic upgrade process has been implemented, it is
STRONGLY recommended that a full dump of your database (using pg_dumpall) is
performed BEFORE upgrading the RPMs! If you have already done the upgrade
@@ -195,11 +185,8 @@ I cannot overemphasize this precaution.
NOTE: moving your existing data from /var/lib/pgsql to /var/lib/pgsql/data is
not currently automatic -- you will need to do this yourself at this release!
This change occurred between 6.5.3 and 7.0, so upgrading from prior to 7.0 to
-7.0 or later might be difficult.
-
-NOTE: This program is not included in the packages distributed with
-Red Hat Linux. The releasenotes specifies a dump before a system
-upgrade.
+7.0 or later might be difficult. The rh-dump script is provided to ease this,
+see below.
The single biggest problem with upgrading PostgreSQL RPM's has been the lack
of a reasonably automated upgrade process. PostgreSQL has the property of
@@ -245,6 +232,14 @@ The basic sequence is:
postgresql-dump -t /var/lib/pgsql/backup/db.bak -p /var/lib/pgsql/backup/old -d
(you can abort the ASCII dump with 'Q', as it uses more) Then, (as user root):
+***** NOTE ***** ***** NOTE *****
+
+The above script is broken. Use "rh-pgdump.sh targetfile" instead, remove the
+old databases (/var/lib/pgsql/base) (or safer - move them somewhere else first),
+start the database and follow the insert procedure described below.
+
+***** NOTE ***** ***** NOTE *****
+
service postgresql start
(which will automatically create a new database structure) And finally,
@@ -279,6 +274,11 @@ in the template1 database. Please look at www.postgresql.org for information
on upgrading the template1 database. This is a known bug in the PostgreSQL
pg_dump and pg_dumpall utilities.
+The above information is considered deprecated. The utilities it mentions
+are also considered deprecated and will be removed from a future release of
+the RPMset due to the difficulty involved with a dump-restore upgrade and the
+hand-editing of dumpfiles that are sometimes necessary.
+
REGRESSION TESTING
-------------------------------------------------------------------------------
One of the features of the newer RPM sets is the capability to perform the
@@ -366,6 +366,10 @@ environment to rebuild the full RPM set.
This release of the RPMset includes the ability to conditionally build
sets of packages. The parameters, their defaults, and the meanings are:
+build6x undef #build for RHL 6.x. Define to 1 to build for 6.x,
+ # undefined otherwise.
+ #currently, this disables the kerberos, nls, and ssl
+ # builds, as well as correcting dependencies for 6.x
beta 0 #build with cassert and do not strip the binaries
perl 1 #build the postgresql-perl package.
tcl 1 #build the postgresql-tcl package.
@@ -383,6 +387,7 @@ nls 1 #build with national language support.
enable_mb 1 #enable multibyte encodings.
pgaccess 1 #build the pgaccess client, part of postgresql-tk.
newintarray 0 #substitute a newer intarray contrib.
+pam 1 #build --with-pam
To use these defines, invoke a rebuild like this:
rpm --rebuild --define 'perl 0' --define 'tcl 0' --define 'tkpkg 0'\
@@ -393,7 +398,6 @@ newer intarray code, and disable kerberos support.
More of these conditionals will be added in the future.
-
CONTRIB FILES
-------------------------------------------------------------------------------
The contents of the contrib tree are packaged into the -contrib subpackage
diff --git a/postgresql.init b/postgresql.init
index 29ed5de..60ecb54 100644
--- a/postgresql.init
+++ b/postgresql.init
@@ -48,7 +48,7 @@
# Tested the $? return for the stop script -- it does in fact propagate.
# TODO: multiple postmasters.
-# PGVERSION is:
+# PGVERSION is: (note that PGVERSION is the major: 7.2.1 -> PGVERSION 7.2)
PGVERSION=7.2
# Source function library.
@@ -104,7 +104,7 @@ start(){
SYSDOCDIR=/usr/share/doc/packages
fi
echo
- echo -e $"An old version of the database format was found.\nYou need to upgrade the data format before using PostgreSQL.\nSee $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
+ echo $"An old version of the database format was found.\nYou need to upgrade the data format before using PostgreSQL.\nSee $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
exit 1
# This doesn't seem to do anything useful...
# else
@@ -153,12 +153,13 @@ start(){
pid=`pidof -s postmaster`
if [ $pid ]
then
- success "$PSQL_START"
- touch /var/lock/subsys/postgresql
- echo $pid > /var/run/postmaster.pid
- echo
+ success "$PSQL_START"
+ touch /var/lock/subsys/postgresql
+ echo $pid > /var/run/postmaster.pid
+ echo
else
- failure "$PSQL_START"
+ failure "$PSQL_START"
+ echo
fi
fi
}
diff --git a/postgresql.spec b/postgresql.spec
index fcb4d2e..2827aac 100755
--- a/postgresql.spec
+++ b/postgresql.spec
@@ -1,13 +1,20 @@
-# [for (x)emacs] -*- coding: utf-8 -*-
+# build6x usage: define to 1 to build for RHL6.x. Don't define at all for others.
+%{?build6x:%define kerberos 0}
+%{?build6x:%define nls 0}
+%{?build6x:%define ssl 0}
+#work around the undefined or defined to 1 build 6x interaction with the pam stuff
+%{!?build6x:%define non6xpamdeps 1}
+%{?build6x:%define non6xpamdeps 0}
+
%define beta 0
%{?beta:%define __os_install_post /usr/lib/rpm/brp-compress}
%{!?perl:%define perl 1}
%{!?tcl:%define tcl 1}
-%{!?tkpkg:%define tkpkg 0}
+%{!?tkpkg:%define tkpkg 1}
%{!?odbc:%define odbc 1}
%{!?jdbc:%define jdbc 1}
-%{!?test:%define test 0}
+%{!?test:%define test 1}
%{!?python:%define python 1}
%{!?pltcl:%define pltcl 1}
%{?forceplperl:%define plperl %{expand:forceplperl}}
@@ -17,20 +24,19 @@
%{!?kerberos:%define kerberos 1}
%{!?nls:%define nls 1}
%{!?pam:%define pam 1}
-%{!?sgmldocs:%define sgmldocs 0}
-
# Utility feature defines.
%{!?enable_mb:%define enable_mb 1}
-%{!?pgaccess:%define pgaccess 0}
+%{!?pgaccess:%define pgaccess 1}
# Python major version.
-%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')%{nil}}
-%{expand: %%define pynextver %(python -c 'import sys;print(float(sys.version[0:3])+0.1)')%{nil}}
+%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
+%{expand: %%define pynextver %(python -c 'import sys;print(float(sys.version[0:3])+0.1)')}
+
Summary: PostgreSQL client programs and libraries.
Name: postgresql
-Version: 7.2.2
+Version: 7.2.3
# Conventions for PostgreSQL Global Development Group RPM releases:
@@ -52,31 +58,42 @@ Version: 7.2.2
# Pre-release RPM's should not be put up on the public ftp.postgresql.org server
# -- only test releases or full releases should be.
-Release: 1
+Release: 5.80
License: BSD
Group: Applications/Databases
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.gz
+Source2: redhat-style-files.lst
Source3: postgresql.init
-Source4: file-lists.tar.gz
+Source4: suse-style-files.lst
+Source5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.gz.md5
Source6: README.rpm-dist
Source7: migration-scripts.tar.gz
-Source8: http://jdbc.postgresql.org/download/devpgjdbc1.jar
-Source9: http://jdbc.postgresql.org/download/devpgjdbc2.jar
-Source10: http://jdbc.postgresql.org/download/pgjdbc1.jar
-Source11: http://jdbc.postgresql.org/download/pgjdbc2.jar
+Source8: http://jdbc.postgresql.org/download/jdbc7.2dev-1.1.jar
+Source9: http://jdbc.postgresql.org/download/jdbc7.2dev-1.2.jar
+Source10: http://jdbc.postgresql.org/download/jdbc7.1-1.1.jar
+Source11: http://jdbc.postgresql.org/download/jdbc7.1-1.2.jar
+Source12: postgresql-dump.1.gz
+Source14: rh-pgdump.sh
Source15: postgresql-bashprofile
-Patch1: rpm-pgsql-7.2.patch
-Patch3: postgresql-7.2rc2-betterquote.patch
-Patch4: postgresql-7.2-tighten.patch
-Patch5: postgresql-7.2.1-mktime.patch
-Buildrequires: perl glibc-devel bison flex
+Patch1: rpm-pgsql-%{version}.patch
+Patch2: postgresql-%{version}-geo_ops.patch
+Patch3: postgresql-%{version}-tighten.patch
+Buildrequires: perl glibc-devel
Prereq: /sbin/ldconfig initscripts
+%if %python
+BuildPrereq: python-devel
+%endif
+%if %perl
BuildPrereq: perl
-BuildPrereq: readline-devel >= 4.0
+%endif
+%if %tcl
+BuildPrereq: tcl
+%endif
+%if %tkpkg
+BuildPrereq: tk
+%endif
+BuildPrereq: readline-devel
BuildPrereq: zlib-devel >= 1.0.4
-BuildPrereq: patch >= 2.5.4
-Url: http://www.postgresql.org/
-Requires: postgresql-libs = %{version}
%if %ssl
BuildPrereq: openssl-devel
%endif
@@ -84,17 +101,22 @@ BuildPrereq: openssl-devel
BuildPrereq: krb5-devel
%endif
%if %nls
-BuildPrereq: gettext >= 0.10.36
+BuildPrereq: gettext >= 0.10.35
%endif
+
+%if %pam
+%if %non6xpamdeps
+BuildPrereq: pam-devel
+%endif
+%endif
+
+Url: http://www.postgresql.org/
Obsoletes: postgresql-clients
Buildroot: %{_tmppath}/%{name}-%{version}-root
# Obsolete the packages we are not building...
%if ! %{plperl}
Obsoletes: postgresql-plperl
%endif
-%if %{tcl}
-Buildrequires: tcl
-%endif
%if ! %{tcl}
Obsoletes: postgresql-tcl
%endif
@@ -107,9 +129,6 @@ Obsoletes: postgresql-odbc
%if ! %{perl}
Obsoletes: postgresql-perl
%endif
-%if %{python}
-BuildRequires: python-devel
-%endif
%if ! %{python}
Obsoletes: postgresql-python
%endif
@@ -119,12 +138,6 @@ Obsoletes: postgresql-jdbc
%if ! %{test}
Obsoletes: postgresql-test
%endif
-%if ! %{sgmldocs}
-Obsoletes: postgresql-docs
-%endif
-%if %{pam}
-BuildRequires: pam-devel
-%endif
@@ -136,7 +149,7 @@ BuildRequires: pam-devel
# Major Contributors:
# ---------------
# Lamar Owen
-# Trond Eivind Glomsrød <teg@redhat.com>
+# Trond Eivind Glomsrød <teg@redhat.com>
# Thomas Lockhart
# Reinhard Max
# Karl DeBisschop
@@ -187,10 +200,20 @@ Summary: The programs needed to create and run a PostgreSQL server.
Group: Applications/Databases
Prereq: /usr/sbin/useradd /sbin/chkconfig
Requires: postgresql = %{version} libpq.so
-Requires: postgresql-libs = %{version}
+Conflicts: postgresql-server <= 7.1.3
+
+%description server
+The postgresql-server package includes the programs needed to create
+and run a PostgreSQL server, which will in turn allow you to create
+and maintain PostgreSQL databases. PostgreSQL is an advanced
+Object-Relational database management system (DBMS) that supports
+almost all SQL constructs (including transactions, subselects and
+user-defined types and functions). You should install
+postgresql-server if you want to create and maintain your own
+PostgreSQL databases and/or your own PostgreSQL server. You also need
+to install the postgresql package.
+
-#------------
-%if %sgmldocs
%package docs
Summary: Extra documentation for PostgreSQL
Group: Applications/Databases
@@ -199,27 +222,15 @@ The postgresql-docs package includes the SGML source for the documentation
as well as the documentation in other formats, and some extra documentation.
Install this package if you want to help with the PostgreSQL documentation
project, or if you want to generate printed documentation.
-%endif
-
%package contrib
Summary: Contributed source and binaries distributed with PostgreSQL
Group: Applications/Databases
-Requires: libpq.so postgresql = %{version}
+Requires: postgresql = %{version} postgresql-perl postgresql-tcl tk
%description contrib
-The postgresql-contrib package includes the contrib tree distributed with
-the PostgreSQL tarball. Selected contrib modules are prebuilt.
+The postgresql-contrib package contains contributed packages that are
+included in the PostgreSQL distribution.
-%description server
-The postgresql-server package includes the programs needed to create
-and run a PostgreSQL server, which will in turn allow you to create
-and maintain PostgreSQL databases. PostgreSQL is an advanced
-Object-Relational database management system (DBMS) that supports
-almost all SQL constructs (including transactions, subselects and
-user-defined types and functions). You should install
-postgresql-server if you want to create and maintain your own
-PostgreSQL databases and/or your own PostgreSQL server. You also need
-to install the postgresql package.
%package devel
Summary: PostgreSQL development header files and libraries.
@@ -347,25 +358,16 @@ system, including regression tests and benchmarks.
%setup -q
%patch1 -p1
-#patch2 -p1
-#patch3 -p1
-%patch4 -p1
-%patch5 -p1
+%patch2 -p1
+%patch3 -p1
-#binary
-rm contrib/spi/preprocessor/step1.e
%build
# Get file lists....
-tar xzf %{SOURCE4}
-
-#Commented out for testing on other platforms for now.
-# If libtool installed, copy some files....
-#if [ -d /usr/share/libtool ]
-#then
-# cp /usr/share/libtool/config.* .
-#fi
+#tar xzf %{SOURCE4}
+# Moved out of tarball.
+cp %{SOURCE2} %{SOURCE4} .
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
@@ -415,11 +417,10 @@ CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
--mandir=%{_mandir} \
--docdir=%{_docdir} \
--includedir=%{_includedir} \
- --datadir=/usr/share/pgsql
-
+ --datadir=/usr/share/pgsql
make all
-
+make -C contrib all
%if %test
pushd src/test
@@ -431,6 +432,7 @@ make all
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
+make -C contrib DESTDIR=$RPM_BUILD_ROOT install
%if %perl
make DESTDIR=$RPM_BUILD_ROOT -C src/interfaces/perl5 -f Makefile install
@@ -463,6 +465,16 @@ make DESTDIR=$RPM_BUILD_ROOT install
%endif
+# man pages....
+# the postgresql-dump manpage.....
+pushd $RPM_BUILD_ROOT%{_mandir}
+cp %{SOURCE12} man1
+popd
+
+# install the dump script
+
+install -m755 %SOURCE14 $RPM_BUILD_ROOT/usr/bin/
+
# install dev headers.
make DESTDIR=$RPM_BUILD_ROOT install-all-headers
@@ -550,158 +562,12 @@ popd
cp %{SOURCE6} README.rpm-dist
mv $RPM_BUILD_ROOT%{_docdir}/postgresql/html doc
-# Build contrib stuff....
-pushd contrib
-make clean
-make all
-popd
-# move the contrib tree to the right place after building....
-cp -r contrib $RPM_BUILD_ROOT/usr/lib/pgsql
-# We'll do more prep work in a later release.....
-
-#more massaging
-
-pushd $RPM_BUILD_ROOT/usr/lib/pgsql/contrib
-
-# Get rid of useless makefiles
-rm -f Makefile */Makefile
-
-# array
-pushd array
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/array|" *
-popd
-
-# btree_gist
-pushd btree_gist
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/btree_gist|" *.sql
-popd
-
-# chkpass
-pushd chkpass
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/chkpass|" *.sql
-popd
-
-# cube
-pushd cube
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/cube|" cube.sql
-popd
-
-# dblink
-pushd dblink
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/dblink|" dblink.sql
-popd
-
-# earthdistance
-pushd earthdistance
-perl -pi -e "s|/usr/share/pgsql/contrib|/usr/lib/pgsql/contrib/earthdistance|" *.sql
-popd
-
-# fulltext
-pushd fulltextindex
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/fulltextindex|" *.sql
-popd
-
-# fuzzystrmatch
-pushd fuzzystrmatch
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/fuzzystrmatch|" *.sql
-popd
-
-# intarray
-pushd intarray
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/intarray|" *.sql
-popd
-
-# isbn_issn
-pushd isbn_issn
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/isbn_issn|" *.sql
-popd
-
-# lo
-pushd lo
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/lo|" *.sql
-popd
-
-# miscutil
-pushd miscutil
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/miscutil|" *.sql
-popd
-
-# noupdate
-pushd noupdate
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/noupdate|" *.sql
-popd
-
-# pgcrypto
-pushd pgcrypto
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/pgcrypto|" *.sql
-perl -pi -e "s|/usr/lib/pgsql/contrib/pgcrypto/pgcrypto|/usr/lib/pgsql/contrib/pgcrypto/libpgcrypto|" *.sql
-rm -f *.in *.o
-popd
-
-# pgstattuple
-pushd pgstattuple
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/pgstattuple|" *.sql
-popd
-
-# rserv
-pushd rserv
-perl -pi -e "s|/usr/share/|/usr/lib/|" *
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib|" *
-perl -pi -e "s|/usr/bin|/usr/lib/pgsql/contrib/rserv|" *
-popd
-
-# rtree_gist
-pushd pgstattuple
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib|" *.sql
-popd
-
-# seg
-pushd seg
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib|" *.sql
-popd
-
-# spi
-pushd spi
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/spi|" *.sql
-popd
-
-# Don"t need these
-rm -fr startscripts
-
-# string
-pushd string
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/string|" *.sql
-popd
-
-# tsearch
-pushd tsearch
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/tsearch|" *.sql
-popd
-
-# userlock
-pushd userlock
-perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/userlock|" *.sql
-popd
-
-popd
-
-#more broken symlinks
-rm -f $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_resetxlog/pg_crc.c $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_controldata/pg_crc.c
-cp src/backend/utils/hash/pg_crc.c $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_resetxlog/pg_crc.c
-ln $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_resetxlog/pg_crc.c $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_controldata/pg_crc.c
-
# Symlink libpq.so.2.0 to libpq.so.2 for backwards compatibility, until
# -soname patches are the norm.
pushd $RPM_BUILD_ROOT/usr/lib
ln -s libpq.so.2 libpq.so.2.0
popd
-# arch backups should go in /usr/lib, not /usr/share
-pushd $RPM_BUILD_ROOT
-mkdir -p usr/lib/pgsql/backup
-mv usr/share/pgsql/backup/pg_dumpall_new usr/lib/pgsql/backup/pg_dumpall_new
-popd
-
%find_lang libpq
%find_lang pg_dump
@@ -720,10 +586,10 @@ if [ $1 -gt 1 ]
then
mkdir -p /usr/lib/pgsql/backup > /dev/null
pushd /usr/bin > /dev/null
- cp -fp postmaster postgres pg_dump pg_dumpall psql /usr/lib/pgsql/backup > /dev/null 2>&1 || :
+ cp -fp postmaster postgres pg_dump pg_dumpall psql /usr/share/pgsql/backup > /dev/null 2>&1 || :
popd > /dev/null
pushd /usr/lib > /dev/null
- cp -fp libpq.* /usr/lib/pgsql/backup > /dev/null 2>&1 || :
+ cp -fp libpq.* /usr/share/pgsql/backup > /dev/null 2>&1 || :
popd > /dev/null
fi
@@ -817,19 +683,63 @@ rm -f perlfiles.list
%{_mandir}/man1/pg_dumpall.1*
%{_mandir}/man1/psql.1*
%{_mandir}/man1/vacuumdb.1*
-%{_mandir}/man1/pg_restore.1*
%{_mandir}/man7/*
-%if %sgmldocs
%files docs
%defattr(-,root,root)
%doc doc/src/*
-%endif
%files contrib
%defattr(-,root,root)
-%dir /usr/lib/pgsql/contrib/
-/usr/lib/pgsql/contrib/*
+/usr/lib/pgsql/_int.so
+/usr/lib/pgsql/array_iterator.so
+/usr/lib/pgsql/autoinc.so
+/usr/lib/pgsql/btree_gist.so
+/usr/lib/pgsql/chkpass.so
+/usr/lib/pgsql/cube.so
+/usr/lib/pgsql/dblink.so
+/usr/lib/pgsql/earthdistance.so
+/usr/lib/pgsql/fti.so
+/usr/lib/pgsql/fuzzystrmatch.so
+/usr/lib/pgsql/insert_username.so
+/usr/lib/pgsql/isbn_issn.so
+/usr/lib/pgsql/lo.so
+/usr/lib/pgsql/misc_utils.so
+/usr/lib/pgsql/moddatetime.so
+/usr/lib/pgsql/noup.so
+/usr/lib/pgsql/pgcrypto.so
+/usr/lib/pgsql/refint.so
+/usr/lib/pgsql/rserv.so
+/usr/lib/pgsql/rtree_gist.so
+/usr/lib/pgsql/seg.so
+/usr/lib/pgsql/string_io.so
+/usr/lib/pgsql/timetravel.so
+/usr/lib/pgsql/user_locks.so
+/usr/share/pgsql/contrib/
+/usr/bin/dbf2pg
+/usr/bin/findoidjoins
+/usr/bin/make_oidjoins_check
+/usr/bin/fti.pl
+/usr/bin/oid2name
+/usr/bin/pg_controldata
+/usr/bin/pg_dumplo
+/usr/bin/pg_logger
+/usr/bin/pg_resetxlog
+/usr/bin/pgbench
+/usr/bin/RservTest
+/usr/bin/MasterInit
+/usr/bin/MasterAddTable
+/usr/bin/Replicate
+/usr/bin/MasterSync
+/usr/bin/CleanLog
+/usr/bin/SlaveInit
+/usr/bin/SlaveAddTable
+/usr/bin/GetSyncID
+/usr/bin/PrepareSnapshot
+/usr/bin/ApplySnapshot
+/usr/bin/InitRservTest
+/usr/bin/vacuumlo
+%doc contrib/*/README.* contrib/spi/*.example
%files libs -f libpq.lang
%defattr(-,root,root)
@@ -846,7 +756,9 @@ rm -f perlfiles.list
/usr/bin/pg_ctl
/usr/bin/pg_passwd
/usr/bin/postgres
+/usr/bin/postgresql-dump
/usr/bin/postmaster
+/usr/bin/rh-pgdump.sh
%{_mandir}/man1/initdb.1*
%{_mandir}/man1/initlocation.1*
%{_mandir}/man1/ipcclean.1*
@@ -854,14 +766,15 @@ rm -f perlfiles.list
%{_mandir}/man1/pg_passwd.1*
%{_mandir}/man1/postgres.1*
%{_mandir}/man1/postmaster.1*
+%{_mandir}/man1/postgresql-dump.1*
/usr/share/pgsql/postgres.bki
/usr/share/pgsql/postgres.description
/usr/share/pgsql/*.sample
/usr/lib/pgsql/plpgsql.so
%dir /usr/lib/pgsql
%dir /usr/share/pgsql
-%attr(700,postgres,postgres) %dir /usr/lib/pgsql/backup
-/usr/lib/pgsql/backup/pg_dumpall_new
+%attr(700,postgres,postgres) %dir /usr/share/pgsql/backup
+/usr/share/pgsql/backup/pg_dumpall_new
%attr(700,postgres,postgres) %dir /var/lib/pgsql
%attr(700,postgres,postgres) %dir /var/lib/pgsql/data
%attr(700,postgres,postgres) %dir /var/lib/pgsql/backups
@@ -890,14 +803,11 @@ rm -f perlfiles.list
%files tcl
%defattr(-,root,root)
%attr(755,root,root) /usr/lib/libpgtcl.so.*
+# libpgtcl.so is not in devel because Tcl scripts may load it by that name.
/usr/lib/libpgtcl.so
/usr/bin/pgtclsh
-/usr/bin/pltcl_delmod
-/usr/bin/pltcl_listmod
-/usr/bin/pltcl_loadmod
%{_mandir}/man1/pgtclsh.1*
/usr/lib/pgsql/pltcl.so
-/usr/share/pgsql/unknown.pltcl
%endif
%if %tkpkg
@@ -927,7 +837,6 @@ rm -f perlfiles.list
%dir /usr/lib/perl5/site_perl/%{_arch}-linux/auto
/usr/share/pgsql/perl5
%{_mandir}/man3/Pg.*
-/usr/lib/pgsql/plperl.so
%endif
%if %plperl
@@ -942,13 +851,15 @@ rm -f perlfiles.list
%doc src/interfaces/python/README src/interfaces/python/tutorial
/usr/lib/python%{pyver}/site-packages/_pgmodule.so
/usr/lib/python%{pyver}/site-packages/*.py
-/usr/lib/pgsql/plpython.so
%endif
%if %jdbc
%files jdbc
%defattr(-,root,root)
-/usr/share/pgsql/*jar
+/usr/share/pgsql/jdbc7.1-1.1.jar
+/usr/share/pgsql/jdbc7.1-1.2.jar
+/usr/share/pgsql/jdbc7.2dev-1.1.jar
+/usr/share/pgsql/jdbc7.2dev-1.2.jar
%endif
%if %test
@@ -959,96 +870,57 @@ rm -f perlfiles.list
%endif
%changelog
-* Wed Sep 4 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.2-1
-- 7.2.2 - security update
-
-* Wed Aug 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-17
-- Add bison and flex to buildprereq (#71590)
-
-* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
-- rebuilt with gcc-3.2 (we hope)
-
-* Fri Aug 9 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-15
-- Minor initscript tweak ( #71027)
-
-* Tue Jul 23 2002 Tim Powers <timp@redhat.com> 7.2.1-14
-- build using gcc-3.2-0.1
-
-* Thu Jul 11 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-13
-- Rebuild with new readline
-
-* Mon Jul 8 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-12
-- Update the jarfiles from jdbc.postgresql.org
-
-* Wed Jul 3 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-11
-- Make postgresql-docs conditional
-- don't ship it - it's just sgml sources for docs in the main package
- (#67818)
-
-* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
-- automated rebuild
-
-* Tue Jun 18 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-10
-- step1.e was distributed as a binary... make sure it's rebuilt (#66870)
-
-* Wed Jun 12 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-9
-- Make the perl parts build with new perl
-- Fix mktime() usage - don't use it before the epoch
-- Disable tk/pgaccess
-
-* Thu May 23 2002 Tim Powers <timp@redhat.com>
-- automated rebuild
-
-* Tue May 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-7
-- Rebuild
-
-* Mon Apr 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-6
-- Add a missing percent in a conditional (tcl, devel package)
-
-* Fri Apr 12 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-5
-- Fix conditional build dependencies... it required tcl
- and python-devel only when you didn't build the modules,
- not if you needed them
-
-* Wed Apr 10 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-4
-- Fix pgcrypto (#63073)
-- Remove postgresql-dump. Dump before upgrade, as we've documented many times
-
-* Wed Apr 3 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-3
+* Wed Dec 20 2002 Andrew Overholt <overholt@redhat.com>
+- 7.2.3-4.(73,80) - add buffer overrun patch for geo_ops
+- 7.2.3-5.(73,80) - add pg_hba.conf tightening patch
+
+* Thu Dec 19 2002 Andrew Overholt <overholt@redhat.com>
+- 7.2.3-3.(73,80) - correct init script success/failure messages.
+
+* Tue Dec 17 2002 Andrew Overholt <overholt@redhat.com>
+- 7.2.3-1 - initial Red Hat build.
+- 7.2.3-2.(73,80) - distribution-specific release tags to avoid upgrading
+ issues.
+
+* Wed Oct 02 2002 Lamar Owen <lamar.owen@ramifordistat.net>
+- 7.2.3-1PGDG
+
+* Mon Aug 26 2002 Lamar Owen <lamar.owen@ramifordistat.net>
+- 7.2.2-1PGDG
+- Applied PeterE's contrib patch -- contrib is now completely restructured.
+- server conflicts with less than 7.2, as a warning to the upcoming
+-- yank of the broken partial upgrade.
+
+* Thu Aug 22 2002 Lamar Owen <lamar.owen@ramifordistat.net>
+- 7.2.2 security fix.
+- deprecate postgresql-dump system.
+- 7.2.2-0.1PGDG PRERELEASE!
+
+* Fri Apr 12 2002 Lamar Owen <lamar.owen@ramifordistat.net>
+- Correct tcl conditionals -- especially for the devel package.
+- Corrected BuildPrereq conditionals.
+- Added a build6x conditional -- define it to build for RHL 6.x
+- Integrate a few of Trond's fixes from RawHide.
+- Pulled file-lists out of tarball for better maintainability.
+- Updated README.rpm-dist.
+- 6.x build can't buildprereq pam-devel, as 6.x has no pam-devel.
+
+* Tue Apr 09 2002 Lamar Owen <lamar.owen@ramifordistat.net>
+- Integrate DP's patch and stuff.
+
+* Fri Apr 05 2002 David B. Peterson <dave@toppledwagon.com>
+- hacked for 7.2.1 (made rpm-pgsql-7.2.1.patch from rpm-pgsql-7.2.patch)
+- changed gettext version to 0.10.35 (from 0.10.36, for RH62)
+- added BuildPrereq for tk
+
+* Wed Apr 3 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-3
- make postgresql-server and postgresql depend on postgresql-libs
- store backups of old binaries in /usr/lib/pgsql/backup instead of /usr/share
-* Wed Apr 3 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2.1-2
-- 7.2.1 again, but this time based on the newest 7.2 specfile
- and not an older one. oops.
-
-* Thu Mar 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2-6
-- Move the libpgtcl.so symlink into the tcl subpackage from -devel (#61042)
-- Enable pam support (#59617)
-- Include the odbc plugin, not just the symlink to it (#61522)
-
-* Thu Feb 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2-5
-- Disable python quote patch... it broke kerberos
-
-* Thu Feb 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2-4
-- Rebuild
-
-* Mon Feb 18 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2-3
-- Don't require tcl-devel, it's just tcl
-- Fix contrib. A lot. Again (last time in 7.1)
-- Add buildprereq of recent patch (#59910)
-- make the initscript 0755
-
-* Fri Feb 8 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2-2
-- Sync
-- Fix output of backslash-ns from upgrade detection
-- Make the default config use socket credentials, not trust
-- Add patches for tsearch/gist from Oleg Bartunov <oleg@sai.msu.su>
-- Deprecate rh-pgdump script. Dump before upgrading, restore afterwards.
- And ask the developers to fix it.
-- Dependency and file inclusion enhancements for conditionals
-- escape previous changelog entry which didn't escape a macro
-- python quote enhancement patch added
+* Thu Mar 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2-6
+- Move the libpgtcl.so symlink into the tcl subpackage from -devel
+- Enable pam support
+- Include the odbc plugin, not just the symlink to it
* Tue Feb 04 2002 Lamar Owen <lamar.owen@wgcr.org>
- 7.2 final.
@@ -1057,7 +929,7 @@ rm -f perlfiles.list
- Clean up a few things; undef beta for final build.
- Newer JDBC -- point to correct website and 7.2 dev.
- postgresql.init changes.
-- NLS build does funky %%defattr things; redhat-style-files.lst changed
+- NLS build does funky %defattr things; redhat-style-files.lst changed
-- for execute permission on /etc/rc.d/init.d/postgresql
* Sun Jan 27 2002 Lamar Owen <lamar.owen@wgcr.org>
@@ -1067,7 +939,7 @@ rm -f perlfiles.list
- 7.2b3-0.3PGDG
- beta conditionals for debugging, assertion checking, and no strip.
-* Tue Nov 27 2001 Trond Eivind Glomsrød <teg@redhat.com>
+* Tue Nov 27 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Improve python version handling
* Fri Nov 23 2001 Lamar Owen <lamar.owen@wgcr.org>
@@ -1092,3 +964,18 @@ rm -f perlfiles.list
- Merged some changes from Peter Eisentraut for7.2.
- Cleaned up some legacy junk.
- Prepare for 7.2 beta cycle.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sources b/sources
index bb7be53..3e6cc6c 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-75a05a4d34bceeb83d51f4cbde4d9952 file-lists.tar.gz
5e9beca9c039be1ded2e51a0edcd9fba migration-scripts.tar.gz
-853bf330837b50a6c6e3edf540ad1792 postgresql-7.2.2.tar.gz
+cf665c93a08a60e4a99db3a6dfe7ba10 postgresql-7.2.3.tar.gz
+3d2e8223f6bb715659cbecedeae81ccc postgresql-dump.1.gz