diff options
author | wiz <wiz@pkgsrc.org> | 2005-03-02 21:42:48 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-03-02 21:42:48 +0000 |
commit | 0fbe58de59b899dd51046c37f9d867bf6e785de1 (patch) | |
tree | 876b3ce993f5b8f91481b814e05b863f21ac3fd4 /mail/cyrus-imapd/DEINSTALL | |
parent | 53dbf0e8d69822d918a62e7c69a6f04b9bf3e923 (diff) | |
download | pkgsrc-0fbe58de59b899dd51046c37f9d867bf6e785de1.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/DEINSTALL | 29 |
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 |