# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
homepage http://www.clamav.net/
maintainers {pixilla @pixilla} openmaintainer
launchdaemons for clamav antivirus software
Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The \
main purpose of this software is the integration with mail \
servers (attachment scanning). This port installs launchdaemons \
that can be used to manage clamav.
if {${os.platform} eq "darwin" && ${os.major} > 8} {
add_users ${clamavuser} group=${clamavuser} realname=clamav
set dataPath ${prefix}/var/clamav
set logPath ${prefix}/var/log/clamav
set runPath ${prefix}/var/run/clamav
set LaunchDaemonsPath ${destroot}/Library/LaunchDaemons
xinstall -d ${LaunchDaemonsPath}
xinstall -m 0644 -W ${filespath} \
org.macports.clamd.plist \
org.macports.freshclam.plist \
reinplace "s|__PREFIX__|${prefix}|g" \
${LaunchDaemonsPath}/org.macports.clamd.plist \
${LaunchDaemonsPath}/org.macports.freshclam.plist
xinstall -m 0755 -o ${clamavuser} -g ${clamavuser} -d \
touch ${destroot}${logPath}/clamav.log
if {![file exists ${prefix}/etc/clamd.conf]} {