aboutsummaryrefslogtreecommitdiff
path: root/gis/postgis/postgis.SlackBuild
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2014-12-11 22:03:33 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-12-13 10:35:44 +0700
commit001f5e56622962b8486867f3e1736bfdbde6e471 (patch)
tree7f185a417bad5f2b707e5d99c1b709efc4776c76 /gis/postgis/postgis.SlackBuild
parenta191ee7a224be315f27e4f8b165e4d280dc28c80 (diff)
gis/postgis: Add option for pgAdmin plugin.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
Diffstat (limited to 'gis/postgis/postgis.SlackBuild')
-rw-r--r--gis/postgis/postgis.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/gis/postgis/postgis.SlackBuild b/gis/postgis/postgis.SlackBuild
index 2f4101fb28ef6..37df65f73899c 100644
--- a/gis/postgis/postgis.SlackBuild
+++ b/gis/postgis/postgis.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=postgis
VERSION=${VERSION:-2.1.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -42,9 +42,12 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
GUI=${GUI:-yes}
+PGADMIN=${PGADMIN:-no}
if [ "$GUI" = "yes" ] ; then
SHP2PGSQL_GUI="--with-gui"
+else
+ PGADMIN=no
fi
if [ "$ARCH" = "i486" ]; then
@@ -94,6 +97,11 @@ make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+if [ "$PGADMIN" = "yes" ] ; then
+ mkdir -p $PKG/usr/share/pgadmin3/plugins.d
+ cp $CWD/$PRGNAM.ini $PKG/usr/share/pgadmin3/plugins.d
+fi
+
mkdir -p $PKG/usr/man/man1
cp -a doc/man/* $PKG/usr/man/man1
gzip -9 $PKG/usr/man/man1/*.1