system/postgresql: Updated for version 9.3.4.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Adis Nezirovic 2014-04-12 15:11:59 +07:00 committed by Willy Sudiarto Raharjo
parent 1eddf6024e
commit 498d927ecd
5 changed files with 33 additions and 20 deletions

View file

@ -1,7 +1,7 @@
Before you can run postgresql you'll need to create the
database files in /var/lib/pgsql. The following should do
the trick.
# su postgres -c "initdb -D /var/lib/pgsql/9.3/data -E utf-8 -A md5 -W"
# su postgres -c "initdb -D /var/lib/pgsql/9.3/data --locale=en_US.UTF-8 -A md5 -W"
Additionally, a logrotation script and init script are included.
For production level log file handling please read

View file

@ -2,8 +2,8 @@
# Slackware build script for PostgreSQL
#
# $Revision: ab2356040882 $
# $Date: 2014/02/28 20:54:16 $
# $Revision: 48079e3de1a0 $
# $Date: 2014/04/12 06:31:25 $
#
# Copyright 2007-2014 Adis Nezirovic <adis_at_linux.org.ba>
# All rights reserved.
@ -28,7 +28,7 @@
# Modified by the SlackBuilds.org Project
PRGNAM=postgresql
VERSION=${VERSION:-9.3.3}
VERSION=${VERSION:-9.3.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

View file

@ -1,8 +1,8 @@
PRGNAM="postgresql"
VERSION="9.3.3"
VERSION="9.3.4"
HOMEPAGE="http://www.postgresql.org"
DOWNLOAD="http://ftp.postgresql.org/pub/source/v9.3.3/postgresql-9.3.3.tar.bz2"
MD5SUM="0247b0a24e76a3f20cc50c06d0aa2412"
DOWNLOAD="http://ftp.postgresql.org/pub/source/v9.3.4/postgresql-9.3.4.tar.bz2"
MD5SUM="d0a41f54c377b2d2fab4a003b0dac762"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -1,19 +1,32 @@
#!/bin/bash
## PostgreSQL startup script for Slackware Linux
##
## Copyright (c) 2007-2014 Adis Nezirovic <adis _at_ linux.org.ba>
## Licensed under GNU GPL v2
# PostgreSQL startup script for Slackware Linux
#
# $Revision: 61c366027519 $
# $Date: 2014/03/08 06:55:06 $
#
# Copyright 2007-2014 Adis Nezirovic <adis_at_linux.org.ba>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Do not source this script (since it contains exit() calls)
# Before you can run PostgreSQL you'll need to create the
# database files in /var/lib/pgsql. The following should do
# the trick.
#
# $ su postgres -c "initdb -D /var/lib/pgsql/@PG_VERSION@/data -E utf-8 -A md5 -W"
#
# Since version 9.3 this startup script can run multiple PostgreSQL
# versions on different ports and with different data dirs.
#
@ -67,7 +80,7 @@ case "$1" in
if [ ! -e $DATADIR/PG_VERSION ]; then
echo "You should initialize the PostgreSQL database at location $DATADIR"
echo "e.g. su postgres -c \"initdb -D $DATADIR -E utf-8 -A md5 -W\""
echo "e.g. su postgres -c \"initdb -D $DATADIR --locale=en_US.UTF-8 -A md5 -W\""
exit 6
fi

View file

@ -23,7 +23,7 @@ chmod 700 $PG_HOME/$PG_VERSION/data
## database cluster
if [ ! -f $PG_HOME/$PG_VERSION/data/PG_VERSION ]; then
echo "Creating database cluster in $PG_HOME/$PG_VERSION/data..."
su $PG_USER -c "initdb -D $PG_HOME/$PG_VERSION/data -E utf-8 -A md5 -W"
su $PG_USER -c "initdb -D $PG_HOME/$PG_VERSION/data --locale=en_US.UTF-8 -A md5 -W"
else
echo "*** WARNING ***" >&2
echo " There is already a database cluster in $PG_HOME/$PG_VERSION/data." >&2