system/postgresql: Updated for version 8.3.0

This commit is contained in:
Adis Nezirovic 2010-05-11 19:46:35 +02:00 committed by Michiel van Wessem
parent e71b7af2e0
commit 71917d7ae0
4 changed files with 27 additions and 25 deletions

View file

@ -16,6 +16,10 @@ tsearch2 -
Full-text-index support using GiST
by Teodor Sigaev <teodor@sigaev.ru> and Oleg Bartunov
<oleg@sai.msu.su>.
Since ver. 8.3 tsearch2 is directly supported by PostgreSQL
This contrib module is now a compatibility layer. Run
# TSEARCH2_COMPAT=no ./postgresql.SlackBuild
if you don't need it.
Before you can run postgresql you'll need to create the

View file

@ -9,11 +9,12 @@
# Slightly modified by the SlackBuilds Project
PRGNAM=postgresql
VERSION=8.2.4
VERSION=8.3.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:_SBo}
CWD=`pwd`
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@ -65,20 +66,27 @@ CFLAGS="$SLKCFLAGS" \
--with-tcl \
--with-perl \
--with-python \
--with-ldap \
--with-xml \
--enable-thread-safety || exit 1
make || exit 1
make DESTDIR=$PKG install-strip || exit 1
# Two nice extensions:
# adminpack for pgAdmin
# tsearch2 for full text search
# adminpack extension for pgAdmin
cd $TMP/$PRGNAM-$VERSION/contrib/adminpack
make || exit 1
make DESTDIR=$PKG install-strip || exit 1
cd $TMP/$PRGNAM-$VERSION/contrib/tsearch2
make || exit 1
make DESTDIR=$PKG install-strip || exit 1
# Since version 8.3 tsearch2 is directly supported by PostgreSQL
# This contrib module is now a compatibility layer.
# If you haven't user tsearch2 previously you can disable
# compatibility layer by running:
# TSEARCH2_COMPAT=no ./postgresql.SlackBuild
if [ "$TSEARCH2_COMPAT" != "no" ]; then
cd $TMP/$PRGNAM-$VERSION/contrib/tsearch2
make || exit 1
make DESTDIR=$PKG install-strip || exit 1
fi
cd $TMP/$PRGNAM-$VERSION
@ -93,17 +101,7 @@ cp -a COPYRIGHT \
doc/* \
$PKG/usr/doc/$PRGNAM-$VERSION/
rm -fr $PKG/usr/doc/$PRGNAM-$VERSION/{man.tar.gz,man1,manl,man7,postgres.tar.gz}
# Ensure this flu^^^script spreads further
SLACK_BUILD=$PKG/usr/share/$PRGNAM/SlackBuild
mkdir -p $SLACK_BUILD
cat $CWD/$PRGNAM.SlackBuild > $SLACK_BUILD/$PRGNAM.SlackBuild
cat $CWD/$PRGNAM.info > $SLACK_BUILD/$PRGNAM.info
cat $CWD/slack-desc > $SLACK_BUILD/slack-desc
cat $CWD/doinst.sh > $SLACK_BUILD/doinst.sh
cat $CWD/README > $SLACK_BUILD/README
cat $CWD/rc.postgresql.new > $SLACK_BUILD/rc.postgresql.new
cat $CWD/setup.postgresql > $SLACK_BUILD/setup.postgresql
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# base database directory
# assumes you are using /var/lib/pgsql as a homedir for postgres user

View file

@ -1,8 +1,8 @@
PRGNAM="postgresql"
VERSION="8.2.4"
VERSION="8.3.0"
HOMEPAGE="http://www.postgresql.org"
DOWNLOAD="ftp://ftp.postgresql.org/pub/source/v8.2.4/postgresql-8.2.4.tar.bz2"
MD5SUM="af7ec100a33c41bfb8d87b5e0ec2f44a"
DOWNLOAD="ftp://ftp.postgresql.org/pub/source/v8.3.0/postgresql-8.3.0.tar.bz2"
MD5SUM="53d6816eac7442f9bc8103439ebee22e"
MAINTAINER="Adis Nezirovic"
EMAIL="adis _at_ linux.org.ba"
APPROVED="BP{k}"

View file

@ -3,9 +3,9 @@
PG_HOME=/var/lib/pgsql
PG_USER=postgres
PG_USER_ID=26
PG_USER_ID=209
PG_GROUP=postgres
PG_GROUP_ID=26
PG_GROUP_ID=209
echo "Adding PostgreSQL user and group..."
groupadd -g $PG_GROUP_ID $PG_GROUP