From 3fad866494491500861a3e3dd0ec0f4f27c36c21 Mon Sep 17 00:00:00 2001 From: sergei Date: Mon, 28 Feb 2005 12:02:10 +0000 Subject: - Preserve customized quarantine-attachments.txt at de-installation or upgrade: delete it only if it has not been changed from the supplied sample file PR: ports/77639 Submitted by: Renato Botelho Approved by: Clement Moulin (maintainer) --- mail/qmail-scanner1/pkg-plist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/qmail-scanner1/pkg-plist') diff --git a/mail/qmail-scanner1/pkg-plist b/mail/qmail-scanner1/pkg-plist index 088ee68..4eaf88b 100644 --- a/mail/qmail-scanner1/pkg-plist +++ b/mail/qmail-scanner1/pkg-plist @@ -3,7 +3,7 @@ bin/qmail-scanner-queue.pl bin/qs2mrtg.pl share/examples/qs2mrtg/mrtg-qmail-scanner.cfg %%SPOOLDIR%%/quarantine-attachments.sample -%%SPOOLDIR%%/quarantine-attachments.txt +@unexec if cmp -s %%SPOOLDIR%%/quarantine-attachments.txt %%SPOOLDIR%%/quarantine-attachments.sample; then rm -f %%SPOOLDIR%%/quarantine-attachments.txt; fi @unexec rmdir share/examples/qs2mrtg 2>/dev/null || true @unexec rmdir %%SPOOLDIR%%/archives/cur 2>/dev/null || true @unexec rmdir %%SPOOLDIR%%/archives/new 2>/dev/null || true -- cgit v1.1