diff options
Diffstat (limited to 'mail/cyrus-imapd/DEINSTALL')
-rw-r--r-- | mail/cyrus-imapd/DEINSTALL | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/mail/cyrus-imapd/DEINSTALL b/mail/cyrus-imapd/DEINSTALL index 31ba1bd4575..707b1d2532b 100644 --- a/mail/cyrus-imapd/DEINSTALL +++ b/mail/cyrus-imapd/DEINSTALL @@ -1,22 +1,21 @@ -#!/bin/sh -# -# $NetBSD: DEINSTALL,v 1.2 2001/11/24 20:49:42 jlam Exp $ +# $NetBSD: DEINSTALL,v 1.3 2003/08/30 20:22:55 jlam Exp $ IMAPDCONF=@IMAPDCONF@ -if [ -f ${IMAPDCONF} ] -then - imap_dirs=` \ - ${AWK} '/configdirectory:/ { print $2 }; \ - /partition-.*:/ { print $2 }; \ - /sievedir:/ { print $2 }' \ - ${IMAPDCONF} \ - ` - for dir in ${imap_dirs} - do - if [ -d ${dir} ] - then - ALL_DIRS="${ALL_DIRS} ${dir}" - fi - done -fi +case ${STAGE} in +DEINSTALL) + if [ -f ${IMAPDCONF} ]; then + imap_dirs=` \ + ${AWK} '/configdirectory:/ { print $2 }; \ + /partition-.*:/ { print $2 }; \ + /sievedir:/ { print $2 }' \ + ${IMAPDCONF} \ + ` + for dir in ${imap_dirs}; do + if [ -d ${dir} ]; then + ALL_DIRS="${ALL_DIRS} ${dir}" + fi + done + fi + ;; +esac |