aboutsummaryrefslogtreecommitdiff
path: root/security/clamav/files
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2008-08-18 18:44:19 +0000
committerRenato Botelho <garga@FreeBSD.org>2008-08-18 18:44:19 +0000
commit78004c6d170c6c844df919b4ec7912651fa77417 (patch)
tree6966cba1d92d0fdafc5f9aa0838d5b8446c63dc0 /security/clamav/files
parent37b74511824d9207cb62b0b7d786a9943631d491 (diff)
downloadports-78004c6d170c6c844df919b4ec7912651fa77417.tar.gz
ports-78004c6d170c6c844df919b4ec7912651fa77417.zip
Notes
Diffstat (limited to 'security/clamav/files')
-rw-r--r--security/clamav/files/clamav-milter.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/security/clamav/files/clamav-milter.in b/security/clamav/files/clamav-milter.in
index 1ea9c1a74bf0..cb467c53f333 100644
--- a/security/clamav/files/clamav-milter.in
+++ b/security/clamav/files/clamav-milter.in
@@ -84,7 +84,8 @@ start_postcmd()
echo "There is no clamav-milter socket (${clamav_milter_socket})!"
exit 1
fi
- /bin/chmod ${clamav_milter_socket_mode} ${clamav_milter_socket}
+ %%CHMOD%% ${clamav_milter_socket_mode} ${clamav_milter_socket}
+ %%CHOWN%% ${clamav_milter_socket_user}:${clamav_milter_socket_group} ${clamav_milter_socket}
fi
}
@@ -95,6 +96,8 @@ load_rc_config $name
: ${clamav_milter_flags="--postmaster-only --local --outgoing --timeout=0 --max-children=50"}
: ${clamav_milter_socktimeout="60"}
: ${clamav_milter_socket_mode="755"}
+: ${clamav_milter_socket_user="%%CLAMAVUSER%%"}
+: ${clamav_milter_socket_group="%%CLAMAVGROUP%%"}
: ${clamav_clamd_socket="%%CLAMAV_CLAMD_SOCKET%%"}
: ${clamav_clamd_enable="NO"}