From c5aee8beb30d5e24a434cc0595b2c394e826b808 Mon Sep 17 00:00:00 2001 From: oliver Date: Sun, 9 Jan 2005 14:31:01 +0000 Subject: deinstal config files when they are left unchanged Noted by: pointyhat via kris Stolen from: mail/mutt --- mail/courier-imap/pkg-plist | 6 ++++++ mail/sqwebmail/pkg-plist | 2 ++ 2 files changed, 8 insertions(+) (limited to 'mail') diff --git a/mail/courier-imap/pkg-plist b/mail/courier-imap/pkg-plist index bd8f1c24161d..42909f31edc4 100644 --- a/mail/courier-imap/pkg-plist +++ b/mail/courier-imap/pkg-plist @@ -5,11 +5,17 @@ bin/maildiracl bin/maildirkw bin/maildirmake bin/pop3d +@unexec if cmp -s %D/%%CONFDIR%%/imapd-ssl.dist %D/%%CONFDIR%%/imapd-ssl; then rm -f %D/%%CONFDIR%%/imapd-ssl; fi %%CONFDIR%%/imapd-ssl.dist +@unexec if cmp -s %D/%%CONFDIR%%/imapd.cnf.dist %D/%%CONFDIR%%/imapd.cnf; then rm -f %D/%%CONFDIR%%/imapd.cnf; fi %%CONFDIR%%/imapd.cnf.dist +@unexec if cmp -s %D/%%CONFDIR%%/imapd.dist %D/%%CONFDIR%%/imapd; then rm -f %D/%%CONFDIR%%/imapd; fi %%CONFDIR%%/imapd.dist +@unexec if cmp -s %D/%%CONFDIR%%/pop3d-ssl.dist %D/%%CONFDIR%%/pop3d-ssl; then rm -f %D/%%CONFDIR%%/pop3d-ssl; fi %%CONFDIR%%/pop3d-ssl.dist +@unexec if cmp -s %D/%%CONFDIR%%/pop3d.cnf.dist %D/%%CONFDIR%%/pop3d.cnf; then rm -f %D/%%CONFDIR%%/pop3d.cnf; fi %%CONFDIR%%/pop3d.cnf.dist +@unexec if cmp -s %D/%%CONFDIR%%/pop3d.dist %D/%%CONFDIR%%/pop3d; then rm -f %D/%%CONFDIR%%/pop3d; fi %%CONFDIR%%/pop3d.dist %%CONFDIR%%/quotawarnmsg.example %%RCDIR%%/courier-imap-imapd.sh diff --git a/mail/sqwebmail/pkg-plist b/mail/sqwebmail/pkg-plist index f8f3bee6c002..0d862473c390 100644 --- a/mail/sqwebmail/pkg-plist +++ b/mail/sqwebmail/pkg-plist @@ -1,4 +1,6 @@ +@unexec if cmp -s %D/etc/sqwebmail/ldapaddressbook.dist %D/etc/sqwebmail/ldapaddressbook; then rm -f %D/etc/sqwebmail/ldapaddressbook; fi etc/sqwebmail/ldapaddressbook.dist +@unexec if cmp -s %D/etc/sqwebmail/sqwebmaild.dist %D/etc/sqwebmail/sqwebmaild; then rm -f %D/etc/sqwebmail/sqwebmaild; fi etc/sqwebmail/sqwebmaild.dist etc/sqwebmail/nodsn etc/rc.d/sqwebmail-sqwebmaild.sh -- cgit