default_install                                             &&
# needed if one wants to build anything with it afterwards
cp src/pref.h ${INSTALL_ROOT}/usr/include/dspam/             &&
pushd webui                                                 &&
rm Makefile*                                                &&
rm cgi-bin/Makefile*                                        &&
rm cgi-bin/templates/Makefile*                              &&
rm htdocs/Makefile*                                         &&
install_www_files                                           &&
popd                                                        &&
if is_depends_enabled $SPELL postgresql ; then
mkdir -vp ${INSTALL_ROOT}/usr/share/doc/dspam/postgresql     &&
install -vD src/tools.pgsql_drv/*.sql ${INSTALL_ROOT}/usr/share/doc/dspam/postgresql/
fi &&
if is_depends_enabled $SPELL $(get_spell_provider $SPELL MYSQL) ; then
mkdir -vp ${INSTALL_ROOT}/usr/share/doc/dspam/mysql          &&
install -vD src/tools.mysql_drv/*.sql ${INSTALL_ROOT}/usr/share/doc/dspam/mysql/
fi &&

if [[ $INIT_INSTALLED ]]; then
  install -d -o dspam -g dspam -vm 755 "$INSTALL_ROOT/var/run/dspam"
fi
