aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql83-server
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2001-07-25 16:07:44 +0800
committersheldonh <sheldonh@FreeBSD.org>2001-07-25 16:07:44 +0800
commit4e06003ca826758c6a61f4014dea9d3c1c0ba572 (patch)
tree3d502eb95a9405e854ddda790611c55814f6ad57 /databases/postgresql83-server
parentd7a272ae165d763067b046445a480ec8a481031e (diff)
downloadfreebsd-ports-graphics-4e06003ca826758c6a61f4014dea9d3c1c0ba572.tar.gz
freebsd-ports-graphics-4e06003ca826758c6a61f4014dea9d3c1c0ba572.tar.zst
freebsd-ports-graphics-4e06003ca826758c6a61f4014dea9d3c1c0ba572.zip
Fix mtree errors preventing automated package building:
* Take a stab at removing the pgsql user's home directory on deinstall. * Only remove man/manl and others when PG_PREFIX is set. Submitted by: maintainer
Diffstat (limited to 'databases/postgresql83-server')
-rw-r--r--databases/postgresql83-server/pkg-plist11
1 files changed, 6 insertions, 5 deletions
diff --git a/databases/postgresql83-server/pkg-plist b/databases/postgresql83-server/pkg-plist
index 24bd7d94be1..a7493ddb789 100644
--- a/databases/postgresql83-server/pkg-plist
+++ b/databases/postgresql83-server/pkg-plist
@@ -82,9 +82,10 @@ share/postgresql/dot.cshrc.dist
@exec [ -f %D/share/postgresql/dot.cshrc.dist ] && cp %D/share/postgresql/dot.cshrc.dist ~pgsql/.
@exec [ -f ~pgsql/.profile ] || (cp %D/share/postgresql/dot.profile.dist ~pgsql/.profile && chown pgsql:pgsql ~pgsql/.profile)
@exec [ -f ~pgsql/.cshrc ] || (cp %D/share/postgresql/dot.cshrc.dist ~pgsql/.cshrc && chown pgsql:pgsql ~pgsql/.cshrc)
-@unexec rmdir %D/%%PG_PREFIX%%bin 2> /dev/null || true
-@unexec rmdir %D/%%PG_PREFIX%%lib 2> /dev/null || true
-@unexec rmdir %D/%%PG_PREFIX%%man/man1 2> /dev/null || true
-@unexec rmdir %D/%%PG_PREFIX%%man/manl 2> /dev/null || true
-@unexec rmdir %D/%%PG_PREFIX%%man 2> /dev/null || true
+@unexec [ X%%PG_PREFIX%% != X ] && rmdir %D/%%PG_PREFIX%%bin 2> /dev/null || true
+@unexec [ X%%PG_PREFIX%% != X ] && rmdir %D/%%PG_PREFIX%%lib 2> /dev/null || true
+@unexec [ X%%PG_PREFIX%% != X ] && rmdir %D/%%PG_PREFIX%%man/man1 2> /dev/null || true
+@unexec [ X%%PG_PREFIX%% != X ] && rmdir %D/%%PG_PREFIX%%man/manl 2> /dev/null || true
+@unexec [ X%%PG_PREFIX%% != X ] && rmdir %D/%%PG_PREFIX%%man 2> /dev/null || true
+@unexec rmdir ~pgsql 2> /dev/null || true
@unexec echo "Warning: If you will *NOT* use this package anymore, please remove %D/pgsql and the pgsql user manually."