gis/postgis: Add executables to /usr/bin.

Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
This commit is contained in:
Benjamin Trigona-Harany 2015-05-26 07:50:27 -07:00 committed by Willy Sudiarto Raharjo
parent 7f5de805f6
commit 359bdc6660
1 changed files with 11 additions and 1 deletions

View File

@ -26,7 +26,7 @@
PRGNAM=postgis
VERSION=${VERSION:-2.1.7}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -102,6 +102,16 @@ if [ "$PGADMIN" = "yes" ] ; then
cp $CWD/$PRGNAM.ini $PKG/usr/share/pgadmin3/plugins.d
fi
mkdir -p $PKG/usr/bin
pgbindir=$(pg_config --bindir)
cd $PKG/$pgbindir
for f in *; do
base=`basename $f`
echo ln -s $pgbindir/$base $PKG/usr/bin
ln -s $pgbindir/$base $PKG/usr/bin
done
cd -
mkdir -p $PKG/usr/man/man1
cp -a doc/man/* $PKG/usr/man/man1
gzip -9 $PKG/usr/man/man1/*.1