summaryrefslogtreecommitdiff
path: root/mail/courier-imap/DEINSTALL
blob: 88a72993be1486f30ea45814b53f0dd6c7922472 (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.7 2006/04/28 18:15:20 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.pem			\
			${PKG_SYSCONFDIR}/imapd.rand			\
			${PKG_SYSCONFDIR}/pop3d.pem			\
			${PKG_SYSCONFDIR}/pop3d.rand
		do
			${ECHO} "# FILE: $file . /dev/null" >> ./+FILES
		done
	fi
	;;

POST-DEINSTALL)
	couriersslcache="@COURIER_STATEDIR@/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