mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
43b97c030d
- Rename rc script freshclam.sh -> clamav-freshclam.sh for consistency BEWARE if you're using freshclam daemon you must update your rc.conf! - Chmod 770 socket directory - Diff reduction against security/clamav port PR: ports/67125 Submitted by: Rob Evers <rob@debank.tv> (maintainer)
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
@unexec [ ! -f /var/run/clamav/clamd.pid ] || %%RC_DIR%%/clamd%%RC_SUFX%% stop || true
|
|
bin/clamscan
|
|
bin/clamdscan
|
|
bin/freshclam
|
|
bin/sigtool
|
|
etc/rc.d/clamav-clamd%%RC_SUFX%%
|
|
etc/rc.d/clamav-freshclam%%RC_SUFX%%
|
|
%%CLAMAV-MILTER%%etc/rc.d/clamav-milter%%RC_SUFX%%
|
|
%%CLAMAV-MILTER%%sbin/clamav-milter
|
|
sbin/clamd
|
|
include/clamav.h
|
|
lib/libclamav.so.1
|
|
lib/libclamav.so
|
|
lib/libclamav.a
|
|
%%PORTDOCS%%%%DOCSDIR%%/clamav-mirror-howto.pdf
|
|
%%PORTDOCS%%%%DOCSDIR%%/clamdoc.pdf
|
|
%%PORTDOCS%%%%DOCSDIR%%/signatures.pdf
|
|
@unexec if cmp -s %D/etc/clamav.conf %D/etc/clamav.conf.default; then rm -f %D/etc/clamav.conf; fi
|
|
etc/clamav.conf.default
|
|
@exec [ -f %B/clamav.conf ] || cp %B/%f %B/clamav.conf
|
|
@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
|
|
@owner %%CLAMAVUSER%%
|
|
@group %%CLAMAVGROUP%%
|
|
@exec chown %%CLAMAVUSER%%:%%CLAMAVGROUP%% %B
|
|
@unexec [ -s %D/%%DATADIR%%/main.cvd ] || rm -f %D/%%DATADIR%%/main.cvd
|
|
@unexec [ -s %D/%%DATADIR%%/daily.cvd ] || rm -f %D/%%DATADIR%%/daily.cvd
|
|
@unexec rmdir %D/%%DATADIR%% 2>/dev/null || true
|
|
@unexec rmdir /var/run/clamav 2>/dev/null || true
|
|
@unexec rmdir /var/log/clamav 2>/dev/null || true
|
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|