1 | %define ver 0.11 |
---|
2 | %define rel 1 |
---|
3 | |
---|
4 | Summary: a small Mail Transport Agent (MTA) |
---|
5 | Summary(ja): 小さなメール転送エージェント(MTA) |
---|
6 | Name: dma |
---|
7 | Version: %{ver} |
---|
8 | Release: %{rel}%{?_dist_release} |
---|
9 | Source0: https://github.com/corecode/dma/archive/v%{ver}.tar.gz#/%{name}-%{version}.tar.gz |
---|
10 | Source1: dma-aliases |
---|
11 | Patch0: dma-0.10_owners.patch |
---|
12 | License: BSD |
---|
13 | Group: System Environment/Daemons |
---|
14 | Provides: smtpdaemon |
---|
15 | URL: https://github.com/corecode/dma/ |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | BuildRequires: byacc |
---|
19 | BuildRequires: flex |
---|
20 | BuildRequires: openssl-devel |
---|
21 | Conflicts: postfix sendmail exim |
---|
22 | |
---|
23 | Vendor: Project Vine |
---|
24 | Distribution: Vine Linux |
---|
25 | Packager: iwaim |
---|
26 | |
---|
27 | |
---|
28 | %description |
---|
29 | dma (DragonFly Mail Agent) is a small Mail Transport Agent (MTA), designed |
---|
30 | for home and office use. It accepts mails from locally installed |
---|
31 | Mail User Agents (MUA) and delivers the mails either locally or to |
---|
32 | a remote destination. |
---|
33 | Remote delivery includes several features like TLS/SSL support and |
---|
34 | SMTP authentication. |
---|
35 | |
---|
36 | dma is not intended as a replacement for real, big MTAs like sendmail(8) |
---|
37 | or postfix(1). Consequently, dma does not listen on port 25 for |
---|
38 | incoming connections. |
---|
39 | |
---|
40 | |
---|
41 | %prep |
---|
42 | %setup -q |
---|
43 | %patch0 -p1 |
---|
44 | |
---|
45 | %build |
---|
46 | %{__make} %{?_smp_mflags} PREFIX=%{_prefix} LIBEXEC=%{_libexecdir} \ |
---|
47 | CONFDIR=%{_sysconfdir}/dma MAN=%{_mandir} VAR=%{_var} |
---|
48 | |
---|
49 | |
---|
50 | %install |
---|
51 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
52 | %{__make} install sendmail-link mailq-link install-spool-dirs install-etc \ |
---|
53 | DESTDIR=${RPM_BUILD_ROOT} PREFIX=%{_prefix} LIBEXEC=%{_libexecdir} \ |
---|
54 | CONFDIR=%{_sysconfdir}/dma MAN=%{_mandir} VAR=%{_var} |
---|
55 | |
---|
56 | %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_sysconfdir}/aliases |
---|
57 | |
---|
58 | %clean |
---|
59 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
60 | |
---|
61 | |
---|
62 | %files |
---|
63 | %defattr(-,root,root) |
---|
64 | %doc LICENSE README.* TODO |
---|
65 | %attr(-,root,mail) %{_sbindir}/dma |
---|
66 | %{_sbindir}/mailq |
---|
67 | %{_sbindir}/sendmail |
---|
68 | %attr(-,root,mail) %{_libexecdir}/dma-mbox-create |
---|
69 | %dir %{_sysconfdir}/dma |
---|
70 | %attr(-,root,mail) %config(noreplace) %{_sysconfdir}/dma/auth.conf |
---|
71 | %attr(-,root,mail) %config(noreplace) %{_sysconfdir}/dma/dma.conf |
---|
72 | %config(noreplace) %{_sysconfdir}/aliases |
---|
73 | %{_mandir}/man8/dma.8* |
---|
74 | %attr(-,root,mail) %dir %{_var}/spool/dma |
---|
75 | |
---|
76 | %changelog |
---|
77 | * Fri Apr 29 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 0.11-1 |
---|
78 | - update to 0.11 |
---|
79 | |
---|
80 | * Sun Dec 27 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 0.10-1 |
---|
81 | - initial build for Vine Linux |
---|
82 | |
---|