############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = dma version = 0.10 release = 1 groups = Mail url = https://github.com/corecode/dma license = BSD summary = DragonFly Mail Agent description dma is a small Mail Transport Agent (MTA), designed for home and office use. It accepts mails from locally installed Mail User Agents (MUA) and delivers the mails either locally or to a remote destination. Remote delivery includes several features like TLS/SSL support and SMTP authentication. end build requires bison flex openssl-devel end make_build_targets += PREFIX=%{prefix} # Workaround for #10952 make_build_targets += LEX="flex -l" make_install_targets += PREFIX=%{prefix} \ sendmail-link mailq-link install-spool-dirs install-etc install_cmds install -m 755 %{DIR_SOURCE}/dma-cleanup-spool %{BUILDROOT}%{sbindir} end end packages package %{name} groups += Base script postin systemctl daemon-reload >/dev/null 2>&1 || : systemctl --no-reload enable dma-queue-flush.timer >/dev/null 2>&1 || : systemctl --no-reload enable dma-cleanup-spool.timer >/dev/null 2>&1 || : end script preun systemctl --no-reload disable dma-queue-flush.timer >/dev/null 2>&1 || : systemctl --no-reload disable dma-cleanup-spool.timer >/dev/null 2>&1 || : systemctl stop dma-queue-flush.timer >/dev/null 2>&1 || : systemctl stop dma-cleanup-spool.timer >/dev/null 2>&1 || : systemctl stop dma-queue-flush.service >/dev/null 2>&1 || : systemctl stop dma-cleanup-spool.service >/dev/null 2>&1 || : end script postun systemctl daemon-reload >/dev/null 2>&1 || : end script postup systemctl daemon-reload >/dev/null 2>&1 || : end end package %{name}-debuginfo template DEBUGINFO end end