diff options
author | Mario Preksavec <mario@slackware.hr> | 2016-07-24 19:23:27 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-07-30 08:28:21 +0700 |
commit | 51277c480f4601b9ebdeba4f429e2a7a50e55110 (patch) | |
tree | 85a8fdbedce27a963195572a125bffb07145164a /network/postfix/postfix.SlackBuild | |
parent | 4875a9fd933d7b4661720f1e6ccb79b9f7a03e8d (diff) | |
download | slackbuilds-51277c480f4601b9ebdeba4f429e2a7a50e55110.tar.gz |
network/postfix: Updated for version 3.1.1.
Signed-off-by: Mario Preksavec <mario@slackware.hr>
Diffstat (limited to 'network/postfix/postfix.SlackBuild')
-rw-r--r-- | network/postfix/postfix.SlackBuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/network/postfix/postfix.SlackBuild b/network/postfix/postfix.SlackBuild index fede621f0a..6a4690fa87 100644 --- a/network/postfix/postfix.SlackBuild +++ b/network/postfix/postfix.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # # Copyright 2006, 2011 Alan Hicks, Lizella, GA -# Copyright 2010, 2011, 2013, 2014, 2015 Mario Preksavec, Zagreb, Croatia +# Copyright 2010, 2011, 2013, 2014, 2015, 2016 Mario Preksavec, Zagreb, Croatia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,7 +22,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=postfix -VERSION=${VERSION:-3.0.3} +VERSION=${VERSION:-3.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,6 +69,12 @@ DATABASE=${DATABASE:-none} case "$DATABASE" in mysql) DBARGS="-I/usr/include/mysql -DHAS_MYSQL" DBLIBS="-L/usr/lib${LIBDIRSUFFIX}/mysql -lmysqlclient -lz -lm" ;; + pgsql*) PGVER=${DATABASE/pgsql-} + [ "$PGVER" = "pgsql" ] && PGVER=$(ls /usr/lib${LIBDIRSUFFIX}/postgresql/) + [ -d "/usr/lib${LIBDIRSUFFIX}/postgresql/$PGVER/lib" ] && { + DBARGS="-I/usr/include/postgresql -DHAS_PGSQL" + DBLIBS="-L/usr/lib${LIBDIRSUFFIX}/postgresql/$PGVER/lib -lpq -lz -lm" + } || echo "PostgreSQL not found" ;; *) DBARGS="" DBLIBS="" ;; esac |