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
This commit is contained in:
Sheldon Hearn 2001-07-25 08:07:44 +00:00
parent 7231b8fbbc
commit ce93c84ea1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45464
14 changed files with 84 additions and 70 deletions

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."