ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/squirrelmail/files/pkg-deinstall.in
Revision: 16349
Committed: Sun Apr 20 18:32:36 2014 UTC (9 years, 11 months ago) by laffer1
File size: 959 byte(s)
Log Message:
remove cvs2svn:cvs-rev prop

File Contents

# Content
1 #!/bin/sh
2 #
3 # $FreeBSD: ports/mail/squirrelmail/files/pkg-deinstall.in,v 1.1 2006/03/20 16:24:34 garga Exp $
4 #
5
6 #set -vx
7
8 PKG_BATCH=${BATCH:=NO}
9
10 PKG_PREFIX=${PKG_PREFIX:=/usr/local}
11
12 SQUIRRELDIR=%%SQUIRRELDIR%%
13
14 checkfile() {
15 diff -bBqw $1 $2 >/dev/null 2>&1
16 case $? in
17 0) # config file exists, but is the same
18 rm $1
19 ;;
20 1) # config file exists and differs
21 ;;
22 *) # no config file exists
23 ;;
24 esac
25 }
26
27 case $2 in
28 DEINSTALL)
29 cd ${PKG_PREFIX}
30 checkfile /var/spool/squirrelmail/prefs/default_pref \
31 ${SQUIRRELDIR}/data/default_pref
32 ;;
33 POST-DEINSTALL)
34 if [ "${PKG_BATCH}" = "NO" ]; then
35 echo "If you are no longer going to use SquirrelMail"
36 echo "you should remove the /var/spool/squirrelmail"
37 echo "directory with:"
38 echo
39 echo " rm -rf /var/spool/squirrelmail"
40 fi
41 ;;
42
43 esac