summaryrefslogtreecommitdiff
path: root/mail/courier-mta/DEINSTALL
blob: c86b2172493508b5f63b22d77a915f7451a46210 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# $NetBSD: DEINSTALL,v 1.2 2007/10/15 15:37:13 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}/aliases-esmtp			\
			${PKG_SYSCONFDIR}/aliases-esmtp.dat		\
			${PKG_SYSCONFDIR}/aliases-local			\
			${PKG_SYSCONFDIR}/aliases-local.dat		\
			${PKG_SYSCONFDIR}/aliases-uucp			\
			${PKG_SYSCONFDIR}/aliases-uucp.dat		\
			${PKG_SYSCONFDIR}/aliases.dat			\
			${PKG_SYSCONFDIR}/aliasfilteracct		\
			${PKG_SYSCONFDIR}/backuprelay			\
			${PKG_SYSCONFDIR}/batchsize			\
			${PKG_SYSCONFDIR}/bofh				\
			${PKG_SYSCONFDIR}/dotextension			\
			${PKG_SYSCONFDIR}/dsnfrom			\
			${PKG_SYSCONFDIR}/dsnlimit			\
			${PKG_SYSCONFDIR}/esmtpacceptmailfor		\
			${PKG_SYSCONFDIR}/esmtpacceptmailfor.dat	\
			${PKG_SYSCONFDIR}/esmtpd.pem			\
			${PKG_SYSCONFDIR}/esmtpd.rand			\
			${PKG_SYSCONFDIR}/esmtpdelay			\
			${PKG_SYSCONFDIR}/esmtpgreeting			\
			${PKG_SYSCONFDIR}/esmtphelo			\
			${PKG_SYSCONFDIR}/esmtppercentrelay		\
			${PKG_SYSCONFDIR}/esmtppercentrelay.dat		\
			${PKG_SYSCONFDIR}/esmtproutes			\
			${PKG_SYSCONFDIR}/esmtptimeout			\
			${PKG_SYSCONFDIR}/esmtptimeoutconnect		\
			${PKG_SYSCONFDIR}/esmtptimeoutdata		\
			${PKG_SYSCONFDIR}/esmtptimeouthelo		\
			${PKG_SYSCONFDIR}/esmtptimeoutkeepalive		\
			${PKG_SYSCONFDIR}/esmtptimeoutkeepaliveping	\
			${PKG_SYSCONFDIR}/esmtptimeoutquit		\
			${PKG_SYSCONFDIR}/faxqueuetime			\
			${PKG_SYSCONFDIR}/hosteddomains			\
			${PKG_SYSCONFDIR}/hosteddomains.dat		\
			${PKG_SYSCONFDIR}/locals			\
			${PKG_SYSCONFDIR}/localtimeout			\
			${PKG_SYSCONFDIR}/me				\
			${PKG_SYSCONFDIR}/msgidhost			\
			${PKG_SYSCONFDIR}/nochangingfrom		\
			${PKG_SYSCONFDIR}/queuefill			\
			${PKG_SYSCONFDIR}/queuehi			\
			${PKG_SYSCONFDIR}/queuelo			\
			${PKG_SYSCONFDIR}/queuetime			\
			${PKG_SYSCONFDIR}/retryalpha			\
			${PKG_SYSCONFDIR}/retrybeta			\
			${PKG_SYSCONFDIR}/retrydelta			\
			${PKG_SYSCONFDIR}/retrygamma			\
			${PKG_SYSCONFDIR}/sizelimit			\
			${PKG_SYSCONFDIR}/smtpaccess.dat		\
			${PKG_SYSCONFDIR}/submitdelay			\
			${PKG_SYSCONFDIR}/usexsender			\
			${PKG_SYSCONFDIR}/uucpme			\
			${PKG_SYSCONFDIR}/uucpneighbors			\
			${PKG_SYSCONFDIR}/uucprewriteheaders		\
			${PKG_SYSCONFDIR}/warntime			\
			${PKG_SYSCONFDIR}/webadmin/password
		do
			${ECHO} "# FILE: $file . /dev/null" >> ./+FILES
		done
	fi

	# Unconditionally remove socket files.
	for sockfile in							\
		@COURIER_STATEDIR@/allfilters/.dupfilter		\
		@COURIER_STATEDIR@/allfilters/.perlfilter		\
		@COURIER_STATEDIR@/allfilters/dupfilter			\
		@COURIER_STATEDIR@/allfilters/perlfilter		\
		@COURIER_STATEDIR@/filters/.dupfilter			\
		@COURIER_STATEDIR@/filters/.perlfilter			\
		@COURIER_STATEDIR@/filters/dupfilter			\
		@COURIER_STATEDIR@/filters/perlfilter
	do
		if ${TEST} -f "$sockfile"; then
			${ECHO} "Removing socket file:"
			${ECHO} "	$sockfile"
			${RM} -f $sockfile
		fi
	done

	# Unconditionally remove temporary files, but not directories
	# which are part of the message queue.
	#
	${RM} -f @COURIER_STATEDIR@/tmp/* 2>/dev/null
	;;
esac