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