1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = https://github.com/corecode/dma
13 summary = DragonFly Mail Agent
16 dma is a small Mail Transport Agent (MTA), designed for home and
17 office use. It accepts mails from locally installed Mail User Agents
18 (MUA) and delivers the mails either locally or to a remote destination.
20 Remote delivery includes several features like TLS/SSL support and
24 source_dl = https://github.com/corecode/dma/archive/v%{version}.tar.gz#/
33 make_build_targets += PREFIX=%{prefix}
35 # Workaround for #10952
36 make_build_targets += LEX="flex -l"
38 make_install_targets += PREFIX=%{prefix} \
39 sendmail-link mailq-link install-etc
42 install -m 755 %{DIR_SOURCE}/dma-cleanup-spool %{BUILDROOT}%{sbindir}
44 # Set corret ownwership.
45 chown root:root %{BUILDROOT}%{sbindir}/dma
54 systemctl daemon-reload >/dev/null 2>&1 || :
55 systemctl --no-reload enable dma-queue-flush.timer >/dev/null 2>&1 || :
56 systemctl --no-reload enable dma-cleanup-spool.timer >/dev/null 2>&1 || :
60 systemctl --no-reload disable dma-queue-flush.timer >/dev/null 2>&1 || :
61 systemctl --no-reload disable dma-cleanup-spool.timer >/dev/null 2>&1 || :
62 systemctl stop dma-queue-flush.timer >/dev/null 2>&1 || :
63 systemctl stop dma-cleanup-spool.timer >/dev/null 2>&1 || :
64 systemctl stop dma-queue-flush.service >/dev/null 2>&1 || :
65 systemctl stop dma-cleanup-spool.service >/dev/null 2>&1 || :
69 systemctl daemon-reload >/dev/null 2>&1 || :
73 systemctl daemon-reload >/dev/null 2>&1 || :
77 package %{name}-debuginfo