diff options
author | jlam <jlam> | 2003-08-30 20:22:49 +0000 |
---|---|---|
committer | jlam <jlam> | 2003-08-30 20:22:49 +0000 |
commit | 20b85a151292d1c2495d2fba787ca26293c7a9e2 (patch) | |
tree | d334e2fd95050def4488e848ea48612e6f9103a4 /mail/cyrus-imapd | |
parent | 1c9f4e0bdcaa144f30d977697cd5fdfe70963ce1 (diff) | |
download | pkgsrc-20b85a151292d1c2495d2fba787ca26293c7a9e2.tar.gz |
Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
Diffstat (limited to 'mail/cyrus-imapd')
-rw-r--r-- | mail/cyrus-imapd/DEINSTALL | 37 | ||||
-rw-r--r-- | mail/cyrus-imapd/INSTALL | 4 |
2 files changed, 19 insertions, 22 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 diff --git a/mail/cyrus-imapd/INSTALL b/mail/cyrus-imapd/INSTALL index bbc8df87e43..aa40a4bfe92 100644 --- a/mail/cyrus-imapd/INSTALL +++ b/mail/cyrus-imapd/INSTALL @@ -1,6 +1,4 @@ -#!/bin/sh -# -# $NetBSD: INSTALL,v 1.3 2002/07/31 15:50:06 jlam Exp $ +# $NetBSD: INSTALL,v 1.4 2003/08/30 20:22:55 jlam Exp $ case ${STAGE} in POST-INSTALL) |