diff options
Diffstat (limited to 'mail/archiveopteryx/pkg-deinstall')
-rw-r--r-- | mail/archiveopteryx/pkg-deinstall | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/archiveopteryx/pkg-deinstall b/mail/archiveopteryx/pkg-deinstall new file mode 100644 index 000000000000..aca504aa7d9f --- /dev/null +++ b/mail/archiveopteryx/pkg-deinstall @@ -0,0 +1,20 @@ +#!/bin/sh + +PKGNAME=$1 +TARGET=$2 + +RMDIR=/bin/rmdir + +if [ $# -ne 2 ]; then + echo "Usage: $0 [PKGNAME] [DEINSTALL | POST-DEINSTALL]" + exit 1 +fi + +if [ "$TARGET" = POST-DEINSTALL ]; then + for i in /var/db/aox/jail /var/db/aox/messages /var/run/aox; do + ${RMDIR} ${i} 2>/dev/null + done + ${RMDIR} /var/db/aox 2>/dev/null +fi + +exit 0 |