hvconfig_pre()
{
- groupadd -f clamav
- hv_useradd -g clamav -s /bin/false -c Clam-AntiVirus clamav
+ groupadd --system -f clamav
+ hv_useradd --system -g clamav -s /bin/false -c Clam-AntiVirus clamav
# Is this really necessary?
export SENDMAIL="/usr/sbin/sendmail"
- CONFIGURE_OPTS="\
- ${CONFIGURE_OPTS} \
+ CONFIGURE_OPTS+=" \
--with-dbdir=/srv/clamav \
--enable-milter"
}
hvbuild_post()
{
- install -m644 ${SCRDIR}/misc/freshclam /etc/fcron/fcron.d
+ install -v -m644 ${SCRDIR}/misc/freshclam /etc/fcron/fcron.d
touch /var/log/clamd.log
chmod 600 /var/log/clamd.log