Opened 5 years ago

Closed 5 years ago

#58003 closed enhancement (fixed)

clamav, clamav-server: On-Demand and On-Access clamav scan launchd scripts

Reported by: essandess (Steve Smith) Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: clamav-server, clamav


The ports clamav-server and clamav work great for getting a working clamav daemon up and running on macOS.

But they do not contain daemons for the two actual applications these ports would be used for: on-demand and/or on-access anti-malware scans of specific volumes or directories.

Building on top of the clamav-server, clamav, and fswatch ports, I've written a couple launchd plists and a bash script that does this, here:

I'm posting to request that the clamav-server or clamav ports add on-demand and on-access scanning capabilities.

You're welcome to use the scripts in that repo.

Note that the on-access scan script,, and its corresponding daemondo launchd plist are hand-coded, and not auto-created from a port file and all the definitions for stuff like startupitem.start that would have to be written to adapt this repo to Macports.

Change History (3)

comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: danielluke added; pixilla dluke@… removed
Milestone: MacPorts 2.6.0
Owner: set to pixilla
Status: newassigned
Summary: On-Demand and On-Access clamav scan launchd scripts for clamav-server or clamavclamav, clamav-server: On-Demand and On-Access clamav scan launchd scripts

The Milestone field is only used when the Component field is "base".

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Cc: danielluke removed
Owner: changed from pixilla to danielluke
Version: 2.5.4

See #57827

comment:3 Changed 5 years ago by essandess (Steve Smith)

Resolution: fixed
Status: assignedclosed

In d0f1e462100fc98a1a77d2ac8c1b28530eee46d2/macports-ports (master):

clamav-server: Update Portfile with major upgrade, enhancements, and bugfixes

  • Complete re-write of Portfile
  • Control clamd and freshclam with startupitem, daemondo
  • macOS-specific clamd.conf and freshclam.conf configurations
  • Add Scan-On-Demand bash script with corresponding contextual menu item
  • Add Scan-On-Schedule launchdaemon with environment variable control
  • Add Scan-On-Access launchdaemon for ~/Downloads and ~/Desktop directories
  • Volunteer as manintainer

Closes: #58003
Closes: #50570

Note: See TracTickets for help on using tickets.