( cd usr/bin ; rm -rf rspamadm )
( cd usr/bin ; ln -sf rspamadm-3.12.1 rspamadm )
( cd usr/bin ; rm -rf rspamc )
( cd usr/bin ; ln -sf rspamc-3.12.1 rspamc )
( cd usr/bin ; rm -rf rspamd )
( cd usr/bin ; ln -sf rspamd-3.12.1 rspamd )

#
# check rspamd accounts
#
if [ -z "`grep ^rspamd: /etc/group`" ]; then
  groupadd -g 310 rspamd
fi
if [ -z "`grep ^rspamd: /etc/passwd`" ]; then
  useradd -u 310 -g 310 -d /var/lib/rspamd -s /bin/bash -c "Rspamd Daemon" rspamd
fi
#
# rspamd needs acces to /dev/shm which is in the audio group.
# From Slackware 15.0 not needed anymore.
#
#if [ -z "`groupmems -g audio -l | grep rspamd`" ]; then
#  groupmems -g audio -a rspamd
#fi
