clamav-server (sysutils/clamav-server) Updated: 3 months, 2 weeks ago Add to my watchlist

Clamav antivirus software macOS server configuration.

Clamav antivirus software macOS server configuration. A macOS clamAV configuration with launchdaemons for clamd, freshclam, Scan-On-Demand, Scan-on-Schedule, Scan-On-Access of specied directories, and a Finder.app contextual service for Scan-On-Demand of selected items.

Version: 1.2.1 License: LGPL-3 and BSD GitHub
Maintainers essandess
Categories sysutils
Homepage https://www.clamav.net/
Platforms {darwin any}
Variants
  • proxy_settings (Include proxy settings in the freshclam startupitem plist.)
  • sanesecurity (Use signatures from https://sanesecurity.com/)

"clamav-server" depends on

run (3)
build (1)

Ports that depend on "clamav-server"



Port notes

clamav-server is installed to perform three types of operations.

1. Basic clamd server and freshclam updates are controlled by their
respective launchdaemons and configuration files:

${prefix}/etc/clamd.conf
${prefix}/etc/freshclam.conf

Clamav database initialization/refresh is performed with the command:

sudo freshclam

Quarantined files are moved to the directory defined by the shell
variable ${CLAMAV_SERVER_QUARANTINE}, with default
${prefix}/Quarantine:

${CLAMAV_SERVER_QUARANTINE:-${prefix}/Quarantine}.

2. Clamav Scan-On-Demand is performed with the command:

${prefix}/bin/ClamavScanIt.sh file1 [directory1] [file2 ...]

A Finder.app Contextual Menu applies ClamavScanIt.sh to the selected
items in Finder.app. Add this menu item with the command:

cp -R ${prefix}/share/clamav/ClamavScanIt.workflow ~/Library/Services
open -a Automator ~/Library/Services/ClamavScanIt.workflow \
&& osascript -e 'quit app "Automator"'

Configure this service using:

System Preferences> Keyboard> Shortcuts> Services>
Files and Folders> ClamavScanIt

3. On-Schedule and On-Access scanning. On-Access scans are performed on
all user ~/Downloads and ~/Desktop directories. Scheduled scans are
performed on all targets in the bash list
$CLAMAV_SERVER_SCAN_SCHEDULE_TARGETS[@], whose default is:

CLAMAV_SERVER_SCAN_SCHEDULE_TARGETS=("/")

On macOS 10.14+ On-Schedule and On-Access scans require enabling
Full Disk Access for the MacPorts process "daemondo" in:

System Preferences> Security & Privacy> Full Disk Access Startup items (named 'ClamavScanOnAccess, freshclam, clamd, ClamavScanSchedule') have been generated that will aid in starting clamav-server with launchd. They are disabled by default. Execute the following command to start them, and to cause them to launch at startup:

sudo port load clamav-server


Port Health:

Loading Port Health

Installations (30 days)

20

Requested Installations (30 days)

17