]>
Commit | Line | Data |
---|---|---|
48d8affe | 1 | Summary: Extremely simple MTA to get mail off the system to a mail hub |
2 | Name: ssmtp | |
3 | Version: 2.60.3 | |
4 | Release: 0.1 | |
5 | License: GPL | |
6 | Group: Networking/Daemons | |
7 | Source0: %{name}_%{version}.tar.gz | |
8 | #Source0-md5: b9b1c07f513ff2b46ae8a09eaf3e04e5 | |
9 | Patch0: %{name}-nonsl.patch | |
10 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
11 | ||
12 | %description | |
13 | A secure, effective and simple way of getting mail off a system to | |
14 | your mail hub. It contains no suid-binaries or other dangerous things | |
15 | - no mail spool to poke around in, and no daemons running in the | |
16 | background. Mail is simply forwarded to the configured mailhost. | |
17 | Extremely easy configuration. WARNING: the above is all it does; it | |
18 | does not receive mail, expand aliases or manage a queue. That belongs | |
19 | on a mail hub with a system administrator. | |
20 | ||
21 | %prep | |
22 | %setup -q -n %{name}-2.60 | |
23 | %patch0 -p1 | |
24 | ||
25 | %build | |
26 | rm -f missing | |
27 | %{__aclocal} | |
28 | %{__autoconf} | |
29 | %configure | |
30 | %{__make} SSMTPCONFDIR=/etc/ssmtp | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | install -D ssmtp $RPM_BUILD_ROOT/%{_sbindir}/ssmtp | |
36 | install -D ssmtp.8 $RPM_BUILD_ROOT/%{_mandir}/man8/ssmtp.8 | |
37 | install -D ssmtp.conf $RPM_BUILD_ROOT%{_sysconfdir}/ssmtp/ssmtp.conf | |
38 | install revaliases $RPM_BUILD_ROOT%{_sysconfdir}/ssmtp/ | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %doc README TLS | |
46 | %attr(755,root,root) %{_sbindir}/* | |
47 | %attr( 644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ssmtp/ssmtp.conf | |
48 | %attr( 644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ssmtp/revaliases | |
49 | ||
50 | %{_mandir}/man8/ssmtp* |