Perhaps the most frustrating thing with using ClamAV is its frequent update cycle. It seems about every couple of weeks there is a new version of ClamAV out. Subscribing to the clamav-announce mailing list can solve this problem. However there is another way built into freshclam to handle this.
The OnOutdatedExecute directive in freshclam.conf allows the freshclam to call a script any time ClamAV is out of date. Immediately ideas spring to mind on what this script could do. At the very least, it could notify the appropriate contacts, or on the other end, it could download the tarball and its sig file, verify the signature, unpack the tarball, compile the source and install, restart the daemons and notify the admins. Freshclam-outdate is an example of such a script. It attempts to download the latest version of clamav and its sig file and notifies the admin whether the download was successful. Incorporating the other options mentioned above is an exercise for the reader. To utilize freshclam-outdate, make the following change to your freshclam.conf.
OnOutdatedExecute /path/to/freshclam-outdate %v
Then restart the freshclam daemon. The "%v" tells freshclam to include the version number as an argument after the script. For example, if the newest version was 1.00, freshclam would call the equivalent of this.
% /path/to/freshclam-outdate 1.00
|