src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
# install bat when enabled (for some reason ./configure doesn't pick this up)
if use qt4; then
dosbin "${S}"/src/qt-console/.libs/bat || die
fi
# remove some scripts we don't need at all
rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}