]>
Commit | Line | Data |
---|---|---|
69c7cea9 | 1 | Summary: SMTP "plugin" for MUAs |
d48c2081 | 2 | Summary(pl.UTF-8): "Wtyczka" SMTP dla klientów pocztowych (MUA) |
69c7cea9 | 3 | Name: msmtp |
ef641e4a | 4 | Version: 1.4.16 |
f677bec6 | 5 | Release: 1 |
4cec2079 | 6 | License: GPL v3+ |
69c7cea9 | 7 | Group: Networking/Daemons |
9b455e48 | 8 | Source0: http://dl.sourceforge.net/msmtp/%{name}-%{version}.tar.bz2 |
ef641e4a | 9 | # Source0-md5: 77a333601e9de03f695539498e678cc2 |
de550e53 | 10 | Patch0: %{name}-home_etc.patch |
4af4f374 | 11 | Source1: %{name}rc |
3faf19b1 | 12 | URL: http://msmtp.sourceforge.net/ |
4a896a76 KK |
13 | BuildRequires: gnutls-devel >= 1.2.0 |
14 | BuildRequires: gsasl-devel | |
2c2f3e5b | 15 | BuildRequires: pkgconfig |
69c7cea9 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | msmtp is a simple program that works as an "SMTP plugin" for Mutt and | |
20 | probably other MUAs (mail user agents). It forwards mails to an SMTP | |
21 | server (for example at a free mail provider) which does the delivery. | |
22 | Features include: | |
0566e1b0 | 23 | - PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 and NTLM authentications |
69c7cea9 | 24 | - TLS encrypted connections |
0566e1b0 | 25 | - Internationalized Domain Names (IDN) support |
69c7cea9 | 26 | - IPv6 support |
27 | - robustness | |
28 | - detailed error messages if something goes wrong (including the full | |
29 | answer of the SMTP server) | |
3faf19b1 JB |
30 | - sendmail compatible exit codes (which most MUAs understand). |
31 | ||
32 | Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail (with | |
33 | Mutt that's just one additional line in the config file). | |
34 | ||
a3c8dcd6 JR |
35 | %description -l pl.UTF-8 |
36 | msmtp to prosty program działający jako "wtyczka SMTP" dla Mutta i | |
37 | innych klientów pocztowych (MUA - mail user agents). Przekierowuje | |
38 | wiadomości do serwera SMTP (na przykład providera darmowych kont | |
39 | e-mail), który je dostarcza. Możliwości obejmują: | |
0566e1b0 | 40 | - uwierzytelnianie PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 i NTLM |
a3c8dcd6 JR |
41 | - obsługę Internationalized Domain Names (IDN) |
42 | - szyfrowane połączenia TLS | |
43 | - obsługę IPv6 | |
44 | - szczegółowe komunikaty błędów w przypadku niepowodzenia (włącznie z | |
45 | pełną odpowiedzią serwera SMTP) | |
46 | - kody wyjścia kompatybilne z sendmailem (które rozumie większość | |
3faf19b1 JB |
47 | MUA). |
48 | ||
a3c8dcd6 | 49 | Wystarczy przekazać klientowi pocztowemu, aby wywoływał msmtp zamiast |
3faf19b1 | 50 | /usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku |
bdcdfe8c | 51 | konfiguracyjnym). |
69c7cea9 | 52 | |
062db315 | 53 | %package sendmail |
52d2b940 | 54 | Summary: msmtp sendmail compatible wrapper |
d48c2081 | 55 | Summary(pl.UTF-8): msmtp - dowiązania symboliczne do sendmaila |
062db315 | 56 | Group: Networking/Daemons |
062db315 | 57 | Requires: %{name} = %{version}-%{release} |
948f2096 | 58 | Obsoletes: /usr/lib/sendmail |
062db315 | 59 | |
60 | %description sendmail | |
52d2b940 | 61 | msmtp sendmail compatible wrapper. |
062db315 | 62 | |
a3c8dcd6 JR |
63 | %description sendmail -l pl.UTF-8 |
64 | Dowiązania symboliczne msmtp do sendmaila. | |
062db315 | 65 | |
69c7cea9 | 66 | %prep |
67 | %setup -q | |
de550e53 | 68 | %patch0 -p1 |
69c7cea9 | 69 | |
70 | %build | |
0566e1b0 | 71 | %configure |
5f88fde3 | 72 | %{__make} |
69c7cea9 | 73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
bdcdfe8c | 76 | install -d $RPM_BUILD_ROOT{%{_sbindir},/usr/lib,%{_sysconfdir}} |
69c7cea9 | 77 | |
9b455e48 | 78 | %{__make} install \ |
d9683ff4 | 79 | DESTDIR=$RPM_BUILD_ROOT |
330a6d9c | 80 | |
4af4f374 | 81 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/msmtprc |
062db315 | 82 | ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT/usr/lib/sendmail |
4af4f374 | 83 | ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/sendmail |
15393a05 | 84 | |
e53a80bd MWP |
85 | %find_lang %{name} |
86 | ||
4af4f374 | 87 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
237af9af | 88 | rm -f scripts/Makefile* |
4af4f374 | 89 | |
f5cd2b5d JB |
90 | %clean |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
834f2525 ER |
93 | %post -p /sbin/postshell |
94 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
69c7cea9 | 95 | |
834f2525 ER |
96 | %postun -p /sbin/postshell |
97 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
69c7cea9 | 98 | |
330a6d9c | 99 | %files -f %{name}.lang |
69c7cea9 | 100 | %defattr(644,root,root,755) |
237af9af | 101 | %doc AUTHORS ChangeLog README THANKS doc/msmtprc-{system,user}.example scripts |
69c7cea9 | 102 | %attr(755,root,root) %{_bindir}/* |
103 | %{_mandir}/man1/msmtp* | |
6d780206 | 104 | %{_infodir}/msmtp* |
062db315 | 105 | |
106 | %files sendmail | |
107 | %defattr(644,root,root,755) | |
108 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
109 | %attr(755,root,root) %{_sbindir}/* | |
110 | /usr/lib/sendmail |