aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorsergei <sergei@FreeBSD.org>2005-02-28 20:02:10 +0800
committersergei <sergei@FreeBSD.org>2005-02-28 20:02:10 +0800
commit3fad866494491500861a3e3dd0ec0f4f27c36c21 (patch)
treecd1cc6ec65c279b7d33298e079c2c898b043933f /mail
parentf9590225e8c9aea92f57fabf587711074679dfbb (diff)
downloadfreebsd-ports-gnome-3fad866494491500861a3e3dd0ec0f4f27c36c21.tar.gz
freebsd-ports-gnome-3fad866494491500861a3e3dd0ec0f4f27c36c21.tar.zst
freebsd-ports-gnome-3fad866494491500861a3e3dd0ec0f4f27c36c21.zip
- 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 <renato@galle.com.br> Approved by: Clement Moulin (maintainer)
Diffstat (limited to 'mail')
-rw-r--r--mail/qmail-scanner/pkg-plist2
-rw-r--r--mail/qmail-scanner1/pkg-plist2
2 files changed, 2 insertions, 2 deletions
diff --git a/mail/qmail-scanner/pkg-plist b/mail/qmail-scanner/pkg-plist
index 088ee682eb54..4eaf88befb04 100644
--- a/mail/qmail-scanner/pkg-plist
+++ b/mail/qmail-scanner/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
diff --git a/mail/qmail-scanner1/pkg-plist b/mail/qmail-scanner1/pkg-plist
index 088ee682eb54..4eaf88befb04 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