1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- don't delete the virus database on deinstall

(sync with clamav-devel)
Approved by:	Rob Evers
This commit is contained in:
Dirk Meyer 2004-10-20 20:48:21 +00:00
parent 8c907ce0c5
commit 2d6723f827
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119875

View File

@ -22,8 +22,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 rm -f %D/%%DATADIR%%/daily.cvd || true
@unexec rm -f %D/%%DATADIR%%/main.cvd || true
@unexec [ -s %D/%%DATADIR%%/main.cvd ] || rm -f %D/%%DATADIR%%/daily.cvd || true
@unexec [ -s %D/%%DATADIR%%/main.cvd ] || rm -f %D/%%DATADIR%%/main.cvd || true
@dirrm %%DATADIR%%
@unexec rmdir /var/run/clamav 2>/dev/null || true
@unexec rmdir /var/log/clamav 2>/dev/null || true