system/postgresql: Updated for version 9.1.1.

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Adis Nezirovic 2011-10-08 09:45:11 -03:00 committed by Robby Workman
parent ba21b2a874
commit f7624e6796
4 changed files with 23 additions and 23 deletions

View file

@ -10,13 +10,17 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider... # Otherwise, we leave the .new copy for the admin to consider...
} }
# Keep same perms on rc.postgresql.new: preserve_perms() {
if [ -e etc/rc.d/rc.postgresql ]; then NEW="$1"
cp -a etc/rc.d/rc.postgresql etc/rc.d/rc.postgresql.new.incoming OLD="$(dirname $NEW)/$(basename $NEW .new)"
cat etc/rc.d/rc.postgresql.new > etc/rc.d/rc.postgresql.new.incoming if [ -e $OLD ]; then
mv etc/rc.d/rc.postgresql.new.incoming etc/rc.d/rc.postgresql.new cp -a $OLD ${NEW}.incoming
fi cat $NEW > ${NEW}.incoming
mv ${NEW}.incoming $NEW
fi
config $NEW
}
config etc/rc.d/rc.postgresql.new preserve_perms etc/rc.d/rc.postgresql.new
config etc/logrotate.d/postgresql.new config etc/logrotate.d/postgresql.new

View file

@ -1,28 +1,26 @@
#!/bin/sh #!/bin/sh
## Slackware build script for PostgreSQL ## Slackware build script for PostgreSQL
## $Revision: 125327c245d3 $ ## $Revision: 5ad45bfd049c $
## $Date: 2010/10/20 20:09:12 $ ## $Date: 2011/09/27 08:41:46 $
## ##
## Copyright 2007-2010 Adis Nezirovic <adis _at_ linux.org.ba> ## Copyright 2007-2011 Adis Nezirovic <adis _at_ linux.org.ba>
## Licensed under GNU GPL v2 ## Licensed under GNU GPL v2
# Modified by the SlackBuilds.org Project # Modified by the SlackBuilds.org Project
PRGNAM=postgresql PRGNAM=postgresql
VERSION=9.0.3 VERSION=${VERSION:-9.1.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PG_UID=${PG_UID:-209} PG_UID=${PG_UID:-209}
PG_GID=${PG_GID:-209} PG_GID=${PG_GID:-209}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi
@ -60,7 +58,7 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
set -e # Exit on any and all errors set -e
rm -rf $TMP/$PRGNAM-$VERSION $PKG rm -rf $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
@ -111,10 +109,8 @@ done
cd $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION
( cd $PKG/usr/man || exit 1 find $PKG/usr/man -type f -exec gzip -9 {} \;
find . -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
cp -a COPYRIGHT HISTORY README doc/* $PKG/usr/doc/$PRGNAM-$VERSION/ cp -a COPYRIGHT HISTORY README doc/* $PKG/usr/doc/$PRGNAM-$VERSION/
rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/{man.tar.gz,man1,manl,man7,postgres.tar.gz} rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/{man.tar.gz,man1,manl,man7,postgres.tar.gz}

View file

@ -1,10 +1,10 @@
PRGNAM="postgresql" PRGNAM="postgresql"
VERSION="9.0.3" VERSION="9.1.1"
HOMEPAGE="http://www.postgresql.org" HOMEPAGE="http://www.postgresql.org"
DOWNLOAD="ftp://ftp.postgresql.org/pub/source/v9.0.3/postgresql-9.0.3.tar.bz2" DOWNLOAD="ftp://ftp.postgresql.org/pub/source/v9.1.1/postgresql-9.1.1.tar.bz2"
MD5SUM="928df8c40bb012ad10756e58b70516fb" MD5SUM="061a9f17323117c9358ed60f33ecff78"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Adis Nezirovic" MAINTAINER="Adis Nezirovic"
EMAIL="adis_at_linux.org.ba" EMAIL="adis_at_linux.org.ba"
APPROVED="rworkman" APPROVED="rworkman,Niels Horn"

View file

@ -5,7 +5,7 @@
# make exactly 11 lines for the formatting to be correct. It's also # make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'. # customary to leave one space after the ':'.
|-----handy-ruler-------------------------------------------------| |-----handy-ruler------------------------------------------------------|
postgresql: PostgreSQL (object-relational database management system) postgresql: PostgreSQL (object-relational database management system)
postgresql: postgresql:
postgresql: PostgreSQL is an advanced object-relational database management postgresql: PostgreSQL is an advanced object-relational database management