]> git.ipfire.org Git - ipfire-3.x.git/blob - dma/dma.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / dma / dma.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = dma
7 version = 0.13
8 release = 1
9
10 groups = Mail
11 url = https://github.com/corecode/dma
12 license = BSD
13 summary = DragonFly Mail Agent
14
15 description
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.
19
20 Remote delivery includes several features like TLS/SSL support and
21 SMTP authentication.
22 end
23
24 source_dl = https://github.com/corecode/dma/archive/v%{version}.tar.gz#/
25
26 build
27 requires
28 bison
29 flex
30 openssl-devel
31 end
32
33 make_build_targets += PREFIX=%{prefix}
34
35 # Workaround for #10952
36 make_build_targets += LEX="flex -l"
37
38 make_install_targets += PREFIX=%{prefix} \
39 sendmail-link mailq-link install-etc
40
41 install_cmds
42 install -m 755 %{DIR_SOURCE}/dma-cleanup-spool %{BUILDROOT}%{sbindir}
43
44 # Set corret ownwership.
45 chown root:root %{BUILDROOT}%{sbindir}/dma
46 end
47 end
48
49 packages
50 package %{name}
51 groups += Base
52
53 script postin
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 || :
57 end
58
59 script preun
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 || :
66 end
67
68 script postun
69 systemctl daemon-reload >/dev/null 2>&1 || :
70 end
71
72 script postup
73 systemctl daemon-reload >/dev/null 2>&1 || :
74 end
75 end
76
77 package %{name}-debuginfo
78 template DEBUGINFO
79 end
80 end