diff options
author | Adis Nezirovic <adis _at_ linux.org.ba> | 2010-05-11 19:46:35 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 19:46:35 +0200 |
commit | 71917d7ae08fb1d3ffd1c7fd69aae7ce22ed3324 (patch) | |
tree | 48f8a7c6443aed5e36e2089dcbb30d91778f41a6 /system/postgresql/postgresql.SlackBuild | |
parent | e71b7af2e0b90ef7159ffc1aed291c2d808c8db6 (diff) |
system/postgresql: Updated for version 8.3.0
Diffstat (limited to 'system/postgresql/postgresql.SlackBuild')
-rw-r--r-- | system/postgresql/postgresql.SlackBuild | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/system/postgresql/postgresql.SlackBuild b/system/postgresql/postgresql.SlackBuild index 46c180e5656be..379541eed0142 100644 --- a/system/postgresql/postgresql.SlackBuild +++ b/system/postgresql/postgresql.SlackBuild @@ -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 |