1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/security/samba-vscan/pkg-message
Vanilla I. Shu 658a6577f3 Add samba-vscan 0.3.4, on-access virus scanning with Samba.
While I am here,

  - make portlint happy,
  - use WRKSRC instead hardcode path.
  - use SAMBASRC instead wrong path if WRKDIRPREFIX env set.
  - remove PORTREVISION on new ports.

PR:		ports/63464
Submitted by:	Jean Milanez Melo <jmelo@freebsdbrasil.com.br>
2004-02-28 17:48:28 +00:00

32 lines
1.2 KiB
Plaintext

*****************************************************************************
You have installed the samba-vscan package.
The vfs object's is in %%PREFIX%%/lib/samba.
The configuration files is in %%PREFIX%%/etc/samba-vscan.
Edit %%PREFIX%%/etc/smb.conf and add the following entry
(that's only an example):
[vscan]
comment = virus-protected /tmp directory
path = /tmp
vfs object = %%PREFIX%%/lib/samba/vscan-oav.so
vfs options = config-file = %%PREFIX%%/etc/samba-vscan/vscan-oav.conf
writeable = yes
browseable = yes
guest ok = yes
Basically you have to add a vfs object line to your shares
which should be virus-protected by this module. If you'd like to use the
run-time configuration file, simply add the
vfs options = config-file = /path/config-file
(different settings for several shares can be achieved by using a different
name of the configuration file for each share). If you want to protect _all_
shares your Samba server offers, simply add the vfs object line (and the
vfs options line, if you like) to the [global] section.
Then restart samba.
Important: Remember, you need to install Clamav, Fprot, Icap, Kaspersky, Mks, Openantivirus, Sophos or Trend Antivirus to samba-vscan works correctly.