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 | |
parent | ffb76f3a355ca305e9763e369d58e1ced9932888 (diff) | |
download | freebsd-ports-gnome-73d616fb91dae5d4100ee6723cef293fbaf9e6b4.tar.gz freebsd-ports-gnome-73d616fb91dae5d4100ee6723cef293fbaf9e6b4.tar.zst freebsd-ports-gnome-73d616fb91dae5d4100ee6723cef293fbaf9e6b4.zip |
- presrve downloaded cvd files on deinstall
Approved by: Rob Evers
Diffstat (limited to 'security')
-rw-r--r-- | security/clamav-devel/pkg-plist | 6 | ||||
-rw-r--r-- | security/clamav/pkg-plist | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/security/clamav-devel/pkg-plist b/security/clamav-devel/pkg-plist index 40c794a36278..dbc123f0859e 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 diff --git a/security/clamav/pkg-plist b/security/clamav/pkg-plist index 40c794a36278..dbc123f0859e 100644 --- a/security/clamav/pkg-plist +++ b/security/clamav/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 |