summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd/DEINSTALL
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-03-02 21:42:48 +0000
committerwiz <wiz@pkgsrc.org>2005-03-02 21:42:48 +0000
commitafdeb500d35e1185c5cb2bde6ba73adc3cec36b7 (patch)
tree876b3ce993f5b8f91481b814e05b863f21ac3fd4 /mail/cyrus-imapd/DEINSTALL
parent172ad2a19cf53ef9a3cc4b9d87faa63d93d6894f (diff)
downloadpkgsrc-afdeb500d35e1185c5cb2bde6ba73adc3cec36b7.tar.gz
Update to 2.2.12, i.e. copy the contents of mail/cyrus-imapd22 here.
Diffstat (limited to 'mail/cyrus-imapd/DEINSTALL')
-rw-r--r--mail/cyrus-imapd/DEINSTALL29
1 files changed, 23 insertions, 6 deletions
diff --git a/mail/cyrus-imapd/DEINSTALL b/mail/cyrus-imapd/DEINSTALL
index 707b1d2532b..3c275cc0a14 100644
--- a/mail/cyrus-imapd/DEINSTALL
+++ b/mail/cyrus-imapd/DEINSTALL
@@ -1,21 +1,38 @@
-# $NetBSD: DEINSTALL,v 1.3 2003/08/30 20:22:55 jlam Exp $
+# $NetBSD: DEINSTALL,v 1.4 2005/03/02 21:42:48 wiz Exp $
IMAPDCONF=@IMAPDCONF@
case ${STAGE} in
DEINSTALL)
if [ -f ${IMAPDCONF} ]; then
- imap_dirs=` \
+ IMAPDIRS=`
${AWK} '/configdirectory:/ { print $2 }; \
/partition-.*:/ { print $2 }; \
/sievedir:/ { print $2 }' \
- ${IMAPDCONF} \
- `
- for dir in ${imap_dirs}; do
+ ${IMAPDCONF} | ${SORT} -ur`
+ _IMAPDIRS=
+ for dir in ${IMAPDIRS}; do
+ ${RMDIR} -p ${dir} 2>/dev/null || ${TRUE}
if [ -d ${dir} ]; then
- ALL_DIRS="${ALL_DIRS} ${dir}"
+ _IMAPDIRS="${_IMAPDIRS} ${dir}"
fi
done
+ if [ -n "${_IMAPDIRS}" ]; then
+ ${CAT} << EOF
+===========================================================================
+If you won't be using ${PKGNAME} any longer, you may want to remove
+the following directories:
+
+EOF
+ for dir in ${_IMAPDIRS}; do
+ if [ -d "${dir}" ]; then
+ ${ECHO} " ${dir}"
+ fi
+ done
+ ${CAT} << EOF
+===========================================================================
+EOF
+ fi
fi
;;
esac