diff options
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 46c180e565..379541eed0 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 |