From 2920a32c71bae3a6a02b2c5c0576d9a60b9a0594 Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 30 Aug 2003 20:22:49 +0000 Subject: Prepare for pkgviews by making sure that passing VIEW-INSTALL or VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors. --- mail/cyrus-imapd21/DEINSTALL | 37 ++++++++++++++++++------------------- mail/cyrus-imapd21/INSTALL | 4 +--- 2 files changed, 19 insertions(+), 22 deletions(-) (limited to 'mail/cyrus-imapd21') diff --git a/mail/cyrus-imapd21/DEINSTALL b/mail/cyrus-imapd21/DEINSTALL index f7ba57134d4..bbbb355db05 100644 --- a/mail/cyrus-imapd21/DEINSTALL +++ b/mail/cyrus-imapd21/DEINSTALL @@ -1,22 +1,21 @@ -#!/bin/sh -# -# $NetBSD: DEINSTALL,v 1.1.1.1 2002/10/27 16:08:53 chris Exp $ +# $NetBSD: DEINSTALL,v 1.2 2003/08/30 20:22:56 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-imapd21/INSTALL b/mail/cyrus-imapd21/INSTALL index da31e548207..6edbf3067fc 100644 --- a/mail/cyrus-imapd21/INSTALL +++ b/mail/cyrus-imapd21/INSTALL @@ -1,6 +1,4 @@ -#!/bin/sh -# -# $NetBSD: INSTALL,v 1.1.1.1 2002/10/27 16:08:52 chris Exp $ +# $NetBSD: INSTALL,v 1.2 2003/08/30 20:22:56 jlam Exp $ case ${STAGE} in POST-INSTALL) -- cgit v1.2.3