Browse Source

ap/postgresql: Upgraded to postgresql-11.8.

current-20200608
Damien Goutte-Gattat 7 months ago
parent
commit
5260fae893
8 changed files with 20 additions and 13 deletions
  1. +9
    -2
      ap/postgresql/README_UPGRADE.txt
  2. +1
    -1
      ap/postgresql/doinst.sh
  3. +0
    -1
      ap/postgresql/php-7.3.11.tar.xz.sha256
  4. +1
    -0
      ap/postgresql/php-7.4.6.tar.xz.sha256
  5. +0
    -1
      ap/postgresql/postgresql-11.6.tar.bz2.sha256
  6. +1
    -0
      ap/postgresql/postgresql-11.8.tar.bz2.sha256
  7. +5
    -5
      ap/postgresql/postgresql.SlackBuild
  8. +3
    -3
      ap/postgresql/rc.postgresql

+ 9
- 2
ap/postgresql/README_UPGRADE.txt View File

@ -1,6 +1,13 @@
*** UPGRADING FROM POSTGRESQL 11.* ***
A dump/restore procedure is not needed when upgrading from PostgreSQL
9.4.x. Just shutdown the server, upgrade the package, and restart the
server.
*** UPGRADING FROM POSTGRESQL 10.x ***
It is not possible to simply install PostgreSQL 11.6 above an existing
It is not possible to simply install PostgreSQL 11.8 above an existing
PostgreSQL 10.x (or lower) server. The database files are not compatible.
Before installing the new version, you must dump all the contents of
@ -17,7 +24,7 @@ configuration files within, if you have modified them):
Upgrade the postgresql package, and initialize the data directory for
the upgraded server:
upgradepkg postgresql-11.6-i486-1GGD.txz
upgradepkg postgresql-11.8-i486-1GGD.txz
mv /etc/rc.d/rc.postgresql.new /etc/rc.d/rc.postgresql
/etc/rc.d/rc.postgresql init


+ 1
- 1
ap/postgresql/doinst.sh View File

@ -19,4 +19,4 @@ if ! grep ^postgres /etc/passwd > /dev/null ; then
/usr/sbin/useradd -u 209 -c PostgreSQL -d /var/lib/pgsql -g postgres postgres
fi
chown postgres:postgres etc/pgsql var/log/pgsql
chown postgres:postgres etc/pgsql var/log/pgsql var/lib/pgsql

+ 0
- 1
ap/postgresql/php-7.3.11.tar.xz.sha256 View File

@ -1 +0,0 @@
657cf6464bac28e9490c59c07a2cf7bb76c200f09cfadf6e44ea64e95fa01021 php-7.3.11.tar.xz

+ 1
- 0
ap/postgresql/php-7.4.6.tar.xz.sha256 View File

@ -0,0 +1 @@
d740322f84f63019622b9f369d64ea5ab676547d2bdcf12be77a5a4cffd06832 php-7.4.6.tar.xz

+ 0
- 1
ap/postgresql/postgresql-11.6.tar.bz2.sha256 View File

@ -1 +0,0 @@
49924f7ff92965fdb20c86e0696f2dc9f8553e1563124ead7beedf8910c13170 postgresql-11.6.tar.bz2

+ 1
- 0
ap/postgresql/postgresql-11.8.tar.bz2.sha256 View File

@ -0,0 +1 @@
eaf2f4329ccc349c89e950761b81daf8c99bb8966abcab5665ccd6ee95c77ae2 postgresql-11.8.tar.bz2

+ 5
- 5
ap/postgresql/postgresql.SlackBuild View File

@ -27,7 +27,7 @@
# Source package infos
NAMESRC=${NAMESRC:-postgresql}
VERSION=${VERSION:-11.6}
VERSION=${VERSION:-11.8}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-https://ftp.postgresql.org/pub/source/v$VERSION/postgresql-$VERSION.tar.bz2}
@ -117,8 +117,8 @@ make install-strip DESTDIR=$PKG
# Install the startup script
install -D -m 755 $CWD/rc.postgresql $PKG/etc/rc.d/rc.postgresql.new
# Create directories for config and log files
mkdir -p $PKG/etc/pgsql $PKG/var/log/pgsql
# Create directories for config, log, and data files
mkdir -p $PKG/etc/pgsql $PKG/var/log/pgsql $PKG/var/lib/pgsql
# Install the documentation
install -m 644 COPYRIGHT INSTALL README doc/KNOWN_BUGS \
@ -133,8 +133,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install PHP extension
if type -p phpize ; then
# Get latest PHP included with Slackware-14.2
PHP_ARCHIVE=php-7.3.11.tar.xz
# Get latest PHP included with Slackware-current (as of 2020-06-08)
PHP_ARCHIVE=php-7.4.6.tar.xz
(
cd $CWD
if [ ! -r $PHP_ARCHIVE ]; then


+ 3
- 3
ap/postgresql/rc.postgresql View File

@ -1,7 +1,7 @@
#!/bin/sh
PGCONF=/etc/pgsql
PGDATA=/var/lib/pgsql
PGDATA=/var/lib/pgsql/data
PGLOG="-l /var/log/pgsql/server.log"
pgsql_init() {
@ -22,9 +22,9 @@ pgsql_init() {
exit 1
elif [ `cat $PGDATA/PG_VERSION` != '11' ]; then
echo "$PGDATA is the data directory of an old PostgreSQL server."
echo "PostgreSQL 10.8 can not directly use these data. If you are"
echo "PostgreSQL 11.8 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-11.6/README_UPGRADE.txt."
echo "read the file /usr/doc/postgresql-11.8/README_UPGRADE.txt."
exit 1
fi
}


Loading…
Cancel
Save