diff options
Diffstat (limited to 'mail/squirrelmail-devel/files/pkg-deinstall.in')
-rw-r--r-- | mail/squirrelmail-devel/files/pkg-deinstall.in | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/mail/squirrelmail-devel/files/pkg-deinstall.in b/mail/squirrelmail-devel/files/pkg-deinstall.in deleted file mode 100644 index 2e207f5df027..000000000000 --- a/mail/squirrelmail-devel/files/pkg-deinstall.in +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -#set -vx - -PKG_BATCH=${BATCH:=NO} - -PKG_PREFIX=${PKG_PREFIX:=/usr/local} - -checkfile() { - diff -bBqw $1 $2 >/dev/null 2>&1 - case $? in - 0) # config file exists, but is the same - rm $1 - ;; - 1) # config file exists and differs - ;; - *) # no config file exists - ;; - esac -} - -case $2 in - DEINSTALL) - cd ${PKG_PREFIX} - checkfile /var/spool/squirrelmail/prefs/default_pref \ - %%SQUIRRELDEVELDIR%%/config/default_pref - ;; - POST-DEINSTALL) - if [ "${PKG_BATCH}" = "NO" ]; then - echo "If you are no longer going to use SquirrelMail" - echo "you should remove the /var/spool/squirrelmail" - echo "directory with:" - echo - echo " rm -rf /var/spool/squirrelmail" - fi - ;; - -esac |