]> git.ipfire.org Git - ipfire-3.x.git/blame - dma/dma.nm
setup: Drop /etc/environment
[ipfire-3.x.git] / dma / dma.nm
CommitLineData
0abdfe9f
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = dma
7version = 0.10
8release = 1
9
10groups = Mail
11url = https://github.com/corecode/dma
12license = BSD
13summary = DragonFly Mail Agent
14
15description
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.
22end
23
24build
25 requires
26 bison
27 flex
28 openssl-devel
29 end
30
31 make_build_targets += PREFIX=%{prefix}
32
33 # Workaround for #10952
34 make_build_targets += LEX="flex -l"
35
36 make_install_targets += PREFIX=%{prefix} \
37 sendmail-link mailq-link install-spool-dirs install-etc
38
39 install_cmds
40 install -m 755 %{DIR_SOURCE}/dma-cleanup-spool %{BUILDROOT}%{sbindir}
41 end
42end
43
44packages
45 package %{name}
46 groups += Base
47
48 script postin
49 systemctl daemon-reload >/dev/null 2>&1 || :
50 systemctl --no-reload enable dma-queue-flush.timer >/dev/null 2>&1 || :
51 systemctl --no-reload enable dma-cleanup-spool.timer >/dev/null 2>&1 || :
52 end
53
54 script preun
55 systemctl --no-reload disable dma-queue-flush.timer >/dev/null 2>&1 || :
56 systemctl --no-reload disable dma-cleanup-spool.timer >/dev/null 2>&1 || :
57 systemctl stop dma-queue-flush.timer >/dev/null 2>&1 || :
58 systemctl stop dma-cleanup-spool.timer >/dev/null 2>&1 || :
59 systemctl stop dma-queue-flush.service >/dev/null 2>&1 || :
60 systemctl stop dma-cleanup-spool.service >/dev/null 2>&1 || :
61 end
62
63 script postun
64 systemctl daemon-reload >/dev/null 2>&1 || :
65 end
66
67 script postup
68 systemctl daemon-reload >/dev/null 2>&1 || :
69 end
70 end
71
72 package %{name}-debuginfo
73 template DEBUGINFO
74 end
75end