diff options
author | ume <ume@FreeBSD.org> | 2004-07-19 20:22:38 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2004-07-19 20:22:38 +0800 |
commit | a2becb68c0fa9724bfa8691b644685c9c9e6bc26 (patch) | |
tree | 55b90a4752fe51ebb462214fbbd222eadc502704 /mail/cyrus-imapd23/pkg-deinstall | |
parent | 9afeffa8fe8883117609990e24d0be1b88b022c8 (diff) | |
download | freebsd-ports-gnome-a2becb68c0fa9724bfa8691b644685c9c9e6bc26.tar.gz freebsd-ports-gnome-a2becb68c0fa9724bfa8691b644685c9c9e6bc26.tar.zst freebsd-ports-gnome-a2becb68c0fa9724bfa8691b644685c9c9e6bc26.zip |
Utilize EXAMPLESDIR.
Diffstat (limited to 'mail/cyrus-imapd23/pkg-deinstall')
-rw-r--r-- | mail/cyrus-imapd23/pkg-deinstall | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mail/cyrus-imapd23/pkg-deinstall b/mail/cyrus-imapd23/pkg-deinstall index 6baee3e9c8e0..7374db694789 100644 --- a/mail/cyrus-imapd23/pkg-deinstall +++ b/mail/cyrus-imapd23/pkg-deinstall @@ -7,13 +7,12 @@ #set -vx PKG_BATCH=${BATCH:=NO} - -PKG_PREFIX=${PKG_PREFIX:=/usr/local} - +PKG_PREFIX=${PKG_PREFIX:=%%PREFIX%%} +EXAMPLESDIR=${EXAMPLESDIR:=%%EXAMPLESDIR%%} CYRUS_USER=${CYRUS_USER:=%%CYRUS_USER%%} checkfile() { - diff -bBqw $1 $1.dist >/dev/null 2>&1 + diff -bBqw $1 $2 >/dev/null 2>&1 case $? in 0) # config file exists, but is the same rm $1 @@ -52,8 +51,8 @@ modify_cyrus_user() { case $2 in DEINSTALL) cd ${PKG_PREFIX} - checkfile ${PKG_PREIFX}/etc/imapd.conf - checkfile ${PKG_PREIFX}/etc/cyrus.conf + checkfile ${PKG_PREFIX}/etc/imapd.conf ${EXAMPLESDIR}/imapd.conf + checkfile ${PKG_PREFIX}/etc/cyrus.conf ${EXAMPLESDIR}/normal.conf ;; POST-DEINSTALL) modify_cyrus_user |