auto-import changelog data from postgresql-7.4.2-1.src.rpm

Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 7.4.2-1
- Update to PostgreSQL 7.4.2; sync with community SRPM as much as possible.
- Support PGOPTS from /etc/sysconfig/pgsql, per bug 111504.
- Fix permissions on /etc/sysconfig/pgsql, per bug 115278.
- SELinux patch in init file: always su </dev/null, per bug 117901.
- Rebuilt
Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
Wed Feb 25 2004 Tom Lane <tgl@redhat.com>
- Update to PostgreSQL 7.4.1.
- Rebuilt
Tue Feb 24 2004 Tom Lane <tgl@redhat.com>
- Fix chown syntax in postgresql.init also.
- Rebuilt
Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
- Use ':' instead of '.' as separator for chown.
Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
Fri Jan 09 2004 Lamar Owen <lowen@pari.edu>
- 7.4.1-1PGDG
- Merge Sander Steffann's changes up to 7.4-0.5PGDG
- Proper 7.4.1 JDBC jars this time.
- Patch for no pl/python from Alvaro
This commit is contained in:
cvsdist 2004-09-09 10:47:18 +00:00
parent c205ec8396
commit 027e0bdc7c
4 changed files with 76 additions and 45 deletions

View File

@ -1,2 +1,2 @@
PyGreSQL-3.4-pre021201.tgz PyGreSQL-3.4.tgz
postgresql-7.4.tar.bz2 postgresql-7.4.2.tar.bz2

View File

@ -88,6 +88,7 @@ fi
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME} [ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}
export PGDATA export PGDATA
export PGPORT export PGPORT
export PGOPTS
# Check that networking is up. # Check that networking is up.
# Pretty much need it for postmaster. # Pretty much need it for postmaster.
@ -143,7 +144,7 @@ start(){
if [ ! -d $PGDATA ] if [ ! -d $PGDATA ]
then then
mkdir -p $PGDATA mkdir -p $PGDATA
chown postgres.postgres $PGDATA chown postgres:postgres $PGDATA
chmod go-rwx $PGDATA chmod go-rwx $PGDATA
fi fi
# Make sure the locale from the initdb is preserved for later startups... # Make sure the locale from the initdb is preserved for later startups...
@ -153,7 +154,7 @@ start(){
# Is expanded this early to be used in the command su runs # Is expanded this early to be used in the command su runs
echo "export LANG LC_ALL LC_CTYPE LC_COLLATE LC_NUMERIC LC_CTYPE LC_TIME" >> $PGDATA/../initdb.i18n echo "export LANG LC_ALL LC_CTYPE LC_COLLATE LC_NUMERIC LC_CTYPE LC_TIME" >> $PGDATA/../initdb.i18n
# Initialize the database # Initialize the database
su -l postgres -s /bin/sh -c "/usr/bin/initdb --pgdata=$PGDATA > /dev/null 2>&1" < /dev/null su -l postgres -c "/usr/bin/initdb --pgdata=$PGDATA > /dev/null 2>&1" < /dev/null
[ -f $PGDATA/PG_VERSION ] && echo_success [ -f $PGDATA/PG_VERSION ] && echo_success
[ ! -f $PGDATA/PG_VERSION ] && echo_failure [ ! -f $PGDATA/PG_VERSION ] && echo_failure
echo echo
@ -170,7 +171,7 @@ start(){
#all systems go -- remove any stale lock files #all systems go -- remove any stale lock files
rm -f /tmp/.s.PGSQL.${PGPORT} > /dev/null rm -f /tmp/.s.PGSQL.${PGPORT} > /dev/null
echo -n "$PSQL_START" echo -n "$PSQL_START"
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o '-p ${PGPORT}' start > /dev/null 2>&1" < /dev/null su -l postgres -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o '-p ${PGPORT} ${PGOPTS}' start > /dev/null 2>&1" < /dev/null
sleep 1 sleep 1
pid=`pidof -s /usr/bin/postmaster` pid=`pidof -s /usr/bin/postmaster`
if [ $pid ] if [ $pid ]
@ -188,7 +189,7 @@ start(){
stop(){ stop(){
echo -n $"Stopping ${NAME} service: " echo -n $"Stopping ${NAME} service: "
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl stop -D $PGDATA -s -m fast" > /dev/null 2>&1 su -l postgres -c "/usr/bin/pg_ctl stop -D $PGDATA -s -m fast" > /dev/null 2>&1 < /dev/null
ret=$? ret=$?
if [ $ret -eq 0 ] if [ $ret -eq 0 ]
then then
@ -211,7 +212,7 @@ condrestart(){
} }
reload(){ reload(){
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl reload -D $PGDATA -s" > /dev/null 2>&1 su -l postgres -c "/usr/bin/pg_ctl reload -D $PGDATA -s" > /dev/null 2>&1 < /dev/null
} }
# This script is slightly unusual in that the name of the daemon (postmaster) # This script is slightly unusual in that the name of the daemon (postmaster)

View File

@ -2,16 +2,22 @@
%{?build6x:%define kerberos 0} %{?build6x:%define kerberos 0}
%{?build6x:%define nls 0} %{?build6x:%define nls 0}
%{?build6x:%define ssl 0} %{?build6x:%define ssl 0}
%{?build6x:%define tcldevel 0}
%{?build6x:%define aconfver /bin/true} %{?build6x:%define aconfver /bin/true}
#work around the undefined or defined to 1 build 6x interaction with the pam stuff #work around the undefined or defined to 1 build 6x interaction with the pam stuff
%{!?build6x:%define non6xpamdeps 1} %{!?build6x:%define non6xpamdeps 1}
%{?build6x:%define non6xpamdeps 0} %{?build6x:%define non6xpamdeps 0}
#build7x and build89 similar #build7x, build8, and build9 similar
%{?build7x:%define kerbdir --with-krb5=/usr/kerberos} %{?build8:%define build89 1}
%{?build89:%define kerbdir --with-krb5=/usr/kerberos} %{?build9:%define build89 1}
%{?build7x:%define kerbdir /usr/kerberos}
%{?build7x:%define tcldevel 0}
%{?build89:%define kerbdir /usr/kerberos}
%{?build8:%define tcldevel 0}
%{?build7x:%define aconfver autoconf-2.53} %{?build7x:%define aconfver autoconf-2.53}
%{!?kerbdir:%define kerbdir --with-krb5} %{!?tcldevel:%define tcldevel 1}
%{!?kerbdir:%define kerbdir /usr}
%{!?aconfver:%define aconfver autoconf} %{!?aconfver:%define aconfver autoconf}
%define beta 0 %define beta 0
@ -39,7 +45,7 @@
Summary: PostgreSQL client programs and libraries. Summary: PostgreSQL client programs and libraries.
Name: postgresql Name: postgresql
Version: 7.4 Version: 7.4.2
# Conventions for PostgreSQL Global Development Group RPM releases: # Conventions for PostgreSQL Global Development Group RPM releases:
@ -61,33 +67,27 @@ Version: 7.4
# Pre-release RPM's should not be put up on the public ftp.postgresql.org server # Pre-release RPM's should not be put up on the public ftp.postgresql.org server
# -- only test releases or full releases should be. # -- only test releases or full releases should be.
Release: 5 Release: 1
License: BSD License: BSD
Group: Applications/Databases Group: Applications/Databases
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2 Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
Source3: postgresql.init Source3: postgresql.init
Source5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2.md5 Source5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2.md5
Source6: README.rpm-dist Source6: README.rpm-dist
Source8: http://jdbc.postgresql.org/download/pg73jdbc1.jar Source8: http://jdbc.postgresql.org/download/pg74.1jdbc1.jar
Source9: http://jdbc.postgresql.org/download/pg73jdbc2.jar Source9: http://jdbc.postgresql.org/download/pg74.1jdbc2.jar
Source10: http://jdbc.postgresql.org/download/pg73jdbc3.jar Source10: http://jdbc.postgresql.org/download/pg74.1jdbc2ee.jar
Source11: http://jdbc.postgresql.org/download/devpgjdbc1.jar Source11: http://jdbc.postgresql.org/download/pg74.1jdbc3.jar
Source12: http://jdbc.postgresql.org/download/devpgjdbc2.jar
Source13: http://jdbc.postgresql.org/download/devpgjdbc3.jar
Source15: postgresql-bashprofile Source15: postgresql-bashprofile
Source16: filter-requires-perl-Pg.sh Source16: filter-requires-perl-Pg.sh
#Source17: postgresql-7.3.4-USpdfdocs.tar.gz Source18: ftp://ftp.pygresql.org/pub/distrib/PyGreSQL-3.4.tgz
Source18: ftp://ftp.pygresql.org/pub/distrib/PyGreSQL-3.4-pre021201.tgz
Patch1: rpm-pgsql-%{version}.patch Patch1: rpm-pgsql-%{version}.patch
Patch2: rpm-multilib-%{version}.patch Patch2: rpm-multilib-%{version}.patch
Patch3: postgresql-%{version}-tighten.patch Patch3: postgresql-7.4-tighten.patch
Patch4: postgresql-ppc64.patch
Patch5: postgresql-plperl.patch Patch5: postgresql-plperl.patch
Patch6: postgresql-7.4-src-tutorial.patch Patch6: postgresql-7.4-src-tutorial.patch
Patch7: postgresql-7.3.4-s390-pic.patch Patch7: postgresql-7.3.4-s390-pic.patch
Patch8: postgresql-7.4-com_err.patch Patch8: postgresql-7.4-com_err.patch
Patch9: PyGreSQL-3.4-pre021201-bugfix.patch
Patch10: postgresql-7.4-headers.patch
Buildrequires: perl glibc-devel bison flex Buildrequires: perl glibc-devel bison flex
Prereq: /sbin/ldconfig initscripts Prereq: /sbin/ldconfig initscripts
%if %python %if %python
@ -95,8 +95,10 @@ BuildPrereq: python-devel
%endif %endif
%if %tcl %if %tcl
BuildPrereq: tcl BuildPrereq: tcl
%if %tcldevel
Buildrequires: tcl-devel Buildrequires: tcl-devel
%endif %endif
%endif
%if %tkpkg %if %tkpkg
BuildPrereq: tk BuildPrereq: tk
%endif %endif
@ -142,6 +144,8 @@ Buildroot: %{_tmppath}/%{name}-%{version}-root
# Andrew Overholt # Andrew Overholt
# David Jee # David Jee
# Kaj J. Niemi # Kaj J. Niemi
# Sander Steffann
# Tom Lane
# and others in the Changelog.... # and others in the Changelog....
# This spec file and ancilliary files are licensed in accordance with # This spec file and ancilliary files are licensed in accordance with
@ -188,7 +192,7 @@ Summary: The programs needed to create and run a PostgreSQL server.
Group: Applications/Databases Group: Applications/Databases
Prereq: /usr/sbin/useradd /sbin/chkconfig Prereq: /usr/sbin/useradd /sbin/chkconfig
Requires: postgresql = %{version} libpq.so Requires: postgresql = %{version} libpq.so
Conflicts: postgresql < 7.3 Conflicts: postgresql < 7.4
%description server %description server
The postgresql-server package includes the programs needed to create The postgresql-server package includes the programs needed to create
@ -319,7 +323,6 @@ popd
%patch6 -p1 %patch6 -p1
%patch7 -p1 %patch7 -p1
%patch8 -p1 %patch8 -p1
%patch10 -p1
#call autoconf 2.53 or greater #call autoconf 2.53 or greater
%aconfver %aconfver
@ -334,7 +337,6 @@ popd
%if %python %if %python
tar xzf %{SOURCE18} tar xzf %{SOURCE18}
patch -p0 < %{PATCH9}
PYGRESQLDIR=`basename %{SOURCE18} .tgz` PYGRESQLDIR=`basename %{SOURCE18} .tgz`
mv $PYGRESQLDIR PyGreSQL mv $PYGRESQLDIR PyGreSQL
%endif %endif
@ -379,7 +381,7 @@ export LIBNAME=%{_lib}
--with-pam \ --with-pam \
%endif %endif
%if %kerberos %if %kerberos
%kerbdir \ --with-krb5=%kerbdir \
%endif %endif
%if %nls %if %nls
--enable-nls \ --enable-nls \
@ -408,7 +410,7 @@ make -C contrib all
pushd PyGreSQL pushd PyGreSQL
gcc $CFLAGS -fpic -shared -o _pgmodule.so ${python_includespec} -I../src/interfaces/libpq -I../src/include -L../src/interfaces/libpq -lpq pgmodule.c gcc $CFLAGS -fpic -shared -o _pgmodule.so ${python_includespec} -I../src/interfaces/libpq -I../src/include -I%{kerbdir}/include -L../src/interfaces/libpq -lpq pgmodule.c
popd popd
%endif %endif
@ -436,8 +438,6 @@ install -m755 src/Makefile.global $RPM_BUILD_ROOT/usr/include/pgsql
install -m 755 %{SOURCE9} $RPM_BUILD_ROOT/usr/share/java install -m 755 %{SOURCE9} $RPM_BUILD_ROOT/usr/share/java
install -m 755 %{SOURCE10} $RPM_BUILD_ROOT/usr/share/java install -m 755 %{SOURCE10} $RPM_BUILD_ROOT/usr/share/java
install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/usr/share/java install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/usr/share/java
install -m 755 %{SOURCE12} $RPM_BUILD_ROOT/usr/share/java
install -m 755 %{SOURCE13} $RPM_BUILD_ROOT/usr/share/java
%endif %endif
@ -512,7 +512,7 @@ groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
useradd -M -n -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \ useradd -M -n -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || : -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
touch /var/log/pgsql touch /var/log/pgsql
chown postgres.postgres /var/log/pgsql chown postgres:postgres /var/log/pgsql
chmod 0700 /var/log/pgsql chmod 0700 /var/log/pgsql
%post server %post server
@ -546,7 +546,7 @@ fi
%if %test %if %test
%post test %post test
chown -R postgres.postgres /usr/share/pgsql/test >/dev/null 2>&1 || : chown -R postgres:postgres /usr/share/pgsql/test >/dev/null 2>&1 || :
%endif %endif
%clean %clean
@ -662,7 +662,7 @@ rm -rf $RPM_BUILD_ROOT
%files server -f server.lst %files server -f server.lst
%defattr(-,root,root) %defattr(-,root,root)
/etc/rc.d/init.d/postgresql /etc/rc.d/init.d/postgresql
%dir /etc/sysconfig/pgsql %attr (755,root,root) %dir /etc/sysconfig/pgsql
%{_bindir}/initdb %{_bindir}/initdb
%{_bindir}/initlocation %{_bindir}/initlocation
%{_bindir}/ipcclean %{_bindir}/ipcclean
@ -740,13 +740,15 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/pltcl_loadmod %{_bindir}/pltcl_loadmod
%{_datadir}/pgsql/unknown.pltcl %{_datadir}/pgsql/unknown.pltcl
%endif %endif
%if %python
%{_libdir}/pgsql/plpython.so %{_libdir}/pgsql/plpython.so
%endif %endif
%endif
%if %python %if %python
%files python %files python
%defattr(-,root,root) %defattr(-,root,root)
%doc PyGreSQL/README PyGreSQL/tutorial PyGreSQL/Announce PyGreSQL/ChangeLog %doc PyGreSQL/tutorial PyGreSQL/Announce PyGreSQL/ChangeLog
%{_libdir}/python%{pyver}/site-packages/_pgmodule.so %{_libdir}/python%{pyver}/site-packages/_pgmodule.so
%{_libdir}/python%{pyver}/site-packages/*.py %{_libdir}/python%{pyver}/site-packages/*.py
%endif %endif
@ -754,12 +756,10 @@ rm -rf $RPM_BUILD_ROOT
%if %jdbc %if %jdbc
%files jdbc %files jdbc
%defattr(-,root,root) %defattr(-,root,root)
%{_datadir}/java/pg73jdbc1.jar %{_datadir}/java/pg74.1jdbc1.jar
%{_datadir}/java/pg73jdbc2.jar %{_datadir}/java/pg74.1jdbc2.jar
%{_datadir}/java/pg73jdbc3.jar %{_datadir}/java/pg74.1jdbc2ee.jar
%{_datadir}/java/devpgjdbc1.jar %{_datadir}/java/pg74.1jdbc3.jar
%{_datadir}/java/devpgjdbc2.jar
%{_datadir}/java/devpgjdbc3.jar
%endif %endif
%if %test %if %test
@ -770,6 +770,36 @@ rm -rf $RPM_BUILD_ROOT
%endif %endif
%changelog %changelog
* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 7.4.2-1
- Update to PostgreSQL 7.4.2; sync with community SRPM as much as possible.
- Support PGOPTS from /etc/sysconfig/pgsql, per bug 111504.
- Fix permissions on /etc/sysconfig/pgsql, per bug 115278.
- SELinux patch in init file: always su </dev/null, per bug 117901.
- Rebuilt
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Wed Feb 25 2004 Tom Lane <tgl@redhat.com>
- Update to PostgreSQL 7.4.1.
- Rebuilt
* Tue Feb 24 2004 Tom Lane <tgl@redhat.com>
- Fix chown syntax in postgresql.init also.
- Rebuilt
* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
- Use ':' instead of '.' as separator for chown.
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Fri Jan 9 2004 Lamar Owen <lowen@pari.edu>
- 7.4.1-1PGDG
- Merge Sander Steffann's changes up to 7.4-0.5PGDG
- Proper 7.4.1 JDBC jars this time.
- Patch for no pl/python from Alvaro
* Fri Dec 05 2003 David Jee <djee@redhat.com> 7.4-5 * Fri Dec 05 2003 David Jee <djee@redhat.com> 7.4-5
- Rebuild for Perl 5.8.2. - Rebuild for Perl 5.8.2.

View File

@ -1,2 +1,2 @@
8448fa076c1c3724706dfa93f24efc51 PyGreSQL-3.4-pre021201.tgz 235d31d1c4d1323c743d1cdff0866551 PyGreSQL-3.4.tgz
9db7432c431d1570b1f605727daf27bc postgresql-7.4.tar.bz2 54a03da34c8520635957f833a4a077ee postgresql-7.4.2.tar.bz2