Browse Source

ap/postgresql: Upgraded to postgresql-9.1.3.

slackware-14.2
Damien Goutte-Gattat 10 years ago
parent
commit
03a525bb41
  1. 16
      ap/postgresql/README_UPGRADE.txt
  2. 1
      ap/postgresql/php-5.3.13.tar.xz.sha1
  3. 1
      ap/postgresql/php-5.3.6.tar.xz.sha1
  4. 1
      ap/postgresql/postgresql-9.0.4.tar.bz2.sha1
  5. 1
      ap/postgresql/postgresql-9.1.3.tar.bz2.sha1
  6. 16
      ap/postgresql/postgresql.SlackBuild
  7. 8
      ap/postgresql/rc.postgresql

16
ap/postgresql/README_UPGRADE.txt

@ -1,16 +1,16 @@
*** UPGRADING FROM POSTGRESQL 9.0.x ***
*** UPGRADING FROM POSTGRESQL 9.1.x ***
A dump/restore is not required. Just shutdown the server, upgrade the
package, and start the new server.
*** UPGRADING FROM POSTGRESQL 8.x ***
*** UPGRADING FROM POSTGRESQL 9.0.x OR LOWER ***
It is not possible to simply install PostgreSQL 9.0.4 above an existing
PostgreSQL 8.x server. The database files are not compatible.
It is not possible to simply install PostgreSQL 9.1.3 above an existing
PostgreSQL 9.0.x (or lower) server. The database files are not compatible.
Before installing the new version, you must dump all the contents of
your running PostgreSQL 8.x cluster, then stop the server:
your running PostgreSQL 9.0.x cluster, then stop the server:
pg_dumpall -U postgres > backup
/etc/rc.d/rc.postgresql stop
@ -23,7 +23,7 @@ configuration files within, if you have modified them):
Upgrade the postgresql package, and initialize the data directory for
the upgraded server:
upgradepkg postgresql-9.0.4-i486-1GGD.txz
upgradepkg postgresql-9.1.3-i486-1GGD.txz
mv /etc/rc.d/rc.postgresql.new /etc/rc.d/rc.postgresql
/etc/rc.d/rc.postgresql init
@ -33,5 +33,5 @@ Start the server and import your data back:
psql -U postgres -f backup postgres
For more details, please read the appropriate section of the PostgreSQL
documentation (24.4, ``Migration Between Releases''), available at
<http://www.postgresql.org/docs/9.0/interactive/migration.html>.
documentation (17.6, ``Upgrading a PostgreSQL Cluster''), available at
<http://www.postgresql.org/docs/9.1/static/upgrading.html>.

1
ap/postgresql/php-5.3.13.tar.xz.sha1

@ -0,0 +1 @@
e962aed038d6adf16e232a48b66203f560c0fb90 php-5.3.13.tar.xz

1
ap/postgresql/php-5.3.6.tar.xz.sha1

@ -1 +0,0 @@
f043b28a3293010cbc5f31fa2a5366378b1adc5a php-5.3.6.tar.xz

1
ap/postgresql/postgresql-9.0.4.tar.bz2.sha1

@ -1 +0,0 @@
5c4ebc2abbbc63ce2973974a7d020e7d14a01e73 postgresql-9.0.4.tar.bz2

1
ap/postgresql/postgresql-9.1.3.tar.bz2.sha1

@ -0,0 +1 @@
1cf3044415df807c08bb8ad8e40e24e8d375cf34 postgresql-9.1.3.tar.bz2

16
ap/postgresql/postgresql.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2009,2010,2011 Damien Goutte-Gattat
# Copyright (C) 2008,2009,2010,2011,2012 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,13 +27,13 @@
# Source package infos
NAMESRC=${NAMESRC:-postgresql}
VERSION=${VERSION:-9.0.4}
VERSION=${VERSION:-9.1.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-ftp://ftp4.fr.postgresql.org/pub/mirrors/postgresql/source/v$VERSION/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-postgresql}
BUILD=${BUILD:-2GGD}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -71,7 +71,7 @@ x86_64)
;;
esac
# Get and verify sources archives
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
@ -127,11 +127,12 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install PHP extension
if type -p phpize ; then
PHP_ARCHIVE=php-5.3.6.tar.xz
# Get latest PHP included with Slackware-13.37
PHP_ARCHIVE=php-5.3.13.tar.xz
(
cd $CWD
if [ ! -r $PHP_ARCHIVE ]; then
wget -c -O $PHP_ARCHIVE.part "ftp://ftp.lip6.fr/pub/linux/distributions/slackware/slackware-13.37/source/n/php/$PHP_ARCHIVE"
wget -c -O $PHP_ARCHIVE.part "ftp://ftp.lip6.fr/pub/linux/distributions/slackware/slackware-13.37/patches/source/php/$PHP_ARCHIVE"
mv $PHP_ARCHIVE.part $PHP_ARCHIVE
fi
sha1sum -c $PHP_ARCHIVE.sha1
@ -146,8 +147,9 @@ if type -p phpize ; then
install -D -s -m 755 modules/pgsql.so $PKG/usr/lib$LIBDIRSUFFIX/php/extensions/pgsql.so
cd ../pdo_pgsql
phpize
./configure --with-pdo-pgsql=$PKG/usr
sed -i "s:^PGSQL_SHARED_LIBADD =.*$:PGSQL_SHARED_LIBADD = -Wl,-rpath,/usr/lib$LIBDIRSUFFIX -L$PKG/usr/lib$LIBDIRSUFFIX -lpq:" Makefile
sed -i "s:^PDO_PGSQL_SHARED_LIBADD =.*$:PDO_PGSQL_SHARED_LIBADD = -Wl,-rpath,/usr/lib$LIBDIRSUFFIX -L$PKG/usr/lib$LIBDIRSUFFIX -lpq:" Makefile
make
install -D -s -m 755 modules/pdo_pgsql.so $PKG/usr/lib$LIBDIRSUFFIX/php/extensions/pdo_pgsql.so
fi

8
ap/postgresql/rc.postgresql

@ -12,11 +12,11 @@ pgsql_init() {
elif [ ! -f $PGDATA/PG_VERSION ]; then
echo "$PGDATA is not a PostgreSQL cluster directory!"
exit 1
elif [ `cat $PGDATA/PG_VERSION` != '9.0' ]; then
elif [ `cat $PGDATA/PG_VERSION` != '9.1' ]; then
echo "$PGDATA is the data directory of an old PostgreSQL server."
echo "PostgreSQL 9.0 can not directly use these data. If you are"
echo "PostgreSQL 9.1 can not directly use these data. If you are"
echo "migrating from a previous major version of PostgreSQL, please"
echo "read the file /usr/doc/postgresql-9.0.4/README_UPGRADE.txt."
echo "read the file /usr/doc/postgresql-9.1.3/README_UPGRADE.txt."
exit 1
fi
}
@ -36,7 +36,7 @@ stop)
;;
restart)
su - postgres -c "/usr/bin/pg_ctl restart -D $PGDATA -l $PG_LOG -m smart"
su - postgres -c "/usr/bin/pg_ctl restart -D $PGDATA -l $PGLOG -m smart"
;;
reload)

Loading…
Cancel
Save