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