diff options
author | dinoex <dinoex@FreeBSD.org> | 2005-09-22 21:17:52 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2005-09-22 21:17:52 +0800 |
commit | 73d616fb91dae5d4100ee6723cef293fbaf9e6b4 (patch) | |
tree | f95871e3487a4b6b326c524801c45a202f04be2f /security/clamav-devel | |
parent | ffb76f3a355ca305e9763e369d58e1ced9932888 (diff) | |
download | freebsd-ports-graphics-73d616fb91dae5d4100ee6723cef293fbaf9e6b4.tar.gz freebsd-ports-graphics-73d616fb91dae5d4100ee6723cef293fbaf9e6b4.tar.zst freebsd-ports-graphics-73d616fb91dae5d4100ee6723cef293fbaf9e6b4.zip |
- presrve downloaded cvd files on deinstall
Approved by: Rob Evers
Diffstat (limited to 'security/clamav-devel')
-rw-r--r-- | security/clamav-devel/pkg-plist | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/clamav-devel/pkg-plist b/security/clamav-devel/pkg-plist index 40c794a3627..dbc123f0859 100644 --- a/security/clamav-devel/pkg-plist +++ b/security/clamav-devel/pkg-plist @@ -23,8 +23,8 @@ etc/clamd.conf.default @unexec if cmp -s %D/etc/freshclam.conf %D/etc/freshclam.conf.default; then rm -f %D/etc/freshclam.conf; fi etc/freshclam.conf.default @exec [ -f %B/freshclam.conf ] || cp %B/%f %B/freshclam.conf -@unexec [ ! -f %%DBDIR%%/daily.cvd ] || rm -f %%DBDIR%%/daily.cvd || true -@unexec [ ! -f %%DBDIR%%/main.cvd ] || rm -f %%DBDIR%%/main.cvd || true -@unexec rmdir %%DBDIR%% +@unexec [ -s %%DBDIR%%/daily.cvd ] || rm -f %%DBDIR%%/daily.cvd || true +@unexec [ -s %%DBDIR%%/main.cvd ] || rm -f %%DBDIR%%/main.cvd || true +@unexec rmdir %%DBDIR%% 2>/dev/null || true @unexec rmdir %%LOGDIR%% 2>/dev/null || true @unexec rmdir %%RUNDIR%% 2>/dev/null || true |