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