aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/jumpgis-postgis/pkg-deinstall
blob: 1e60b15b1a4c4cef7381ea80d3a791b636a44812 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# $FreeBSD$

if [ "$2" != "DEINSTALL" ]; then
    exit
fi

echo Restoring CLASSPATH in ${PKG_PREFIX}/bin/jumpgis

grep -v '^CLASSPATH=$CLASSPATH:$LIB/pg74jdbc3.jar$' ${PKG_PREFIX}/bin/jumpgis > ${PKG_PREFIX}/bin/jumpgis.new
cat ${PKG_PREFIX}/bin/jumpgis.new > ${PKG_PREFIX}/bin/jumpgis
rm ${PKG_PREFIX}/bin/jumpgis.new