summaryrefslogtreecommitdiff
path: root/mail/courier-imap/DEINSTALL
blob: 3cc31ac4528dc27e1fa2061192806e67ee64b79b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $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