pkgsrc/mail/courier-imap/DEINSTALL

31 lines
704 B
Text
Raw Normal View History

# $NetBSD: DEINSTALL,v 1.6 2005/02/18 22:12:46 jlam Exp $
case ${STAGE} in
DEINSTALL)
#
# Note some additional files that may be created by the sysadmin
# that can probably be removed.
#
if ${TEST} -x ./+FILES; then
for file in \
${PKG_SYSCONFDIR}/imapd.rand \
${PKG_SYSCONFDIR}/pop3d.rand \
@SSLCERTS@/imapd.pem \
@SSLCERTS@/pop3d.pem
do
${ECHO} "# FILE: $file . /dev/null" >> ./+FILES
done
fi
;;
POST-DEINSTALL)
couriersslcache="@VARBASE@/couriersslcache"
if ${TEST} -f "$couriersslcache"; then
# Unconditionally remove the SSL cache file.
${ECHO} "Removing Courier SSL cache file:"
${ECHO} " $couriersslcache"
${RM} -f $couriersslcache
fi
;;
esac