diff options
author | Adis Nezirovic <adis_at_linux.org.ba> | 2012-12-02 18:58:51 +0100 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-12-11 16:22:26 -0500 |
commit | c064880ae9ab682d8b02e38a10b055094d0a917b (patch) | |
tree | 44103a4410b5e730609e35a05e5b3ca0aa3d531f /system/postgresql/postgresql.SlackBuild | |
parent | e023c00f20babdb789540db5efbaafc468165c5e (diff) | |
download | slackbuilds-c064880ae9ab682d8b02e38a10b055094d0a917b.tar.gz |
system/postgresql: Updated for version 9.2.1.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'system/postgresql/postgresql.SlackBuild')
-rw-r--r-- | system/postgresql/postgresql.SlackBuild | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/system/postgresql/postgresql.SlackBuild b/system/postgresql/postgresql.SlackBuild index 9816ed5c21..679db6d085 100644 --- a/system/postgresql/postgresql.SlackBuild +++ b/system/postgresql/postgresql.SlackBuild @@ -1,8 +1,8 @@ #!/bin/sh ## Slackware build script for PostgreSQL -## $Revision: 5ad45bfd049c $ -## $Date: 2011/09/27 08:41:46 $ +## $Revision: af516b7c1f99 $ +## $Date: 2012/11/29 20:42:02 $ ## ## Copyright 2007-2011 Adis Nezirovic <adis _at_ linux.org.ba> ## Licensed under GNU GPL v2 @@ -10,7 +10,7 @@ # Modified by the SlackBuilds.org Project PRGNAM=postgresql -VERSION=${VERSION:-9.1.4} +VERSION=${VERSION:-9.2.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -44,17 +44,24 @@ elif ! grep ^postgres: /etc/passwd 2>&1 > /dev/null; then exit 1 fi +# Enable NLS builds using 'ENABLE_NLS=1 ./postgresql.SlackBuild' +if [ ! -z $ENABLE_NLS ];then + NLS=enable +else + NLS=disable +fi + if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" + SLKCFLAGS="-O2 -march=i486 -mtune=i686 -DLINUX_OOM_SCORE_ADJ=0" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKCFLAGS="-O2 -march=i686 -mtune=i686 -DLINUX_OOM_SCORE_ADJ=0" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" + SLKCFLAGS="-O2 -fPIC -DLINUX_OOM_SCORE_ADJ=0" LIBDIRSUFFIX="64" else - SLKCFLAGS="-O2" + SLKCFLAGS="-O2 -DLINUX_OOM_SCORE_ADJ=0" LIBDIRSUFFIX="" fi @@ -83,6 +90,8 @@ CFLAGS="$SLKCFLAGS" \ --with-libxml \ --with-libxslt \ --enable-thread-safety \ + --with-system-tzdata=/usr/share/zoneinfo \ + --$NLS-nls \ --build=$ARCH-slackware-linux make @@ -91,21 +100,27 @@ make install-docs DESTDIR=$PKG # Some interesting additional modules: -# http://www.postgresql.org/docs/9.0/static/contrib.html +# http://www.postgresql.org/docs/9.2/static/contrib.html # # adminpack - helper extension for pgAdmin # pgcrypto - extension for some business applications # hstore, ltree, xml2 - useful extensions for developers # pg_archivecleanup, pg_standby - high availability helpers -# pg_upgrade - online upgrade between postgresql versions +# pg_upgrade, pg_upgrade_support - online upgrade between postgresql versions -PG_EXTENSIONS="adminpack pgcrypto hstore ltree xml2 pg_archivecleanup pg_standby pg_upgrade" +PG_EXTENSIONS=${PG_EXTENSIONS:-"adminpack pgcrypto hstore ltree xml2 pg_archivecleanup pg_standby pg_upgrade pg_upgrade_support"} -for ext in $PG_EXTENSIONS; do - cd $TMP/$PRGNAM-$VERSION/contrib/$ext - make +if [ "x$PG_EXTENSIONS" = "xALL" ];then + cd $TMP/$PRGNAM-$VERSION/contrib + make all make install-strip DESTDIR=$PKG -done +else + for ext in $PG_EXTENSIONS; do + cd $TMP/$PRGNAM-$VERSION/contrib/$ext + make + make install-strip DESTDIR=$PKG + done +fi cd $TMP/$PRGNAM-$VERSION |