summaryrefslogtreecommitdiff
path: root/mail/courier-imap/INSTALL
blob: 21a7d381538700bffee6ecb1a1a813ce0b08ed0e (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
31
32
33
34
35
36
37
38
# $NetBSD: INSTALL,v 1.5 2006/06/09 22:12:10 jlam Exp $

case ${STAGE} in
POST-INSTALL)
	TLS_CERTFILE=
	oldcert="@SSLCERTS@/imapd.pem"
	newcert="@PKG_SYSCONFDIR@/imapd.pem"
	if ${TEST} -f @PKG_SYSCONFDIR@/imapd-ssl; then
		. @PKG_SYSCONFDIR@/imapd-ssl
		if ${TEST} "$TLS_CERTFILE" != "$newcert"; then
			imapdmsg="$oldcert	-> $newcert"
		fi
	fi
	TLS_CERTFILE=
	oldcert="@SSLCERTS@/pop3d.pem"
	newcert="@PKG_SYSCONFDIR@/pop3d.pem"
	if ${TEST} -f @PKG_SYSCONFDIR@/pop3d-ssl; then
		. @PKG_SYSCONFDIR@/pop3d-ssl
		if ${TEST} "$TLS_CERTFILE" != "$newcert"; then
			pop3dmsg="$oldcert	-> $newcert"
		fi
	fi
	if ${TEST} -n "$imapdmsg" -o -n "$pop3dmsg"; then
		${CAT} << EOF
===========================================================================

If you are upgrading Courier-IMAP from a previous version, please note
that the default locations of the SSL certificates for the IMAP and
POP3 servers have moved:

	$imapdmsg
	$pop3dmsg

===========================================================================
EOF
	fi
	;;
esac