]> git.pld-linux.org Git - packages/msmtp.git/blob - msmtp.spec
- fixed: getenv(HOME_ETC) must also be duped. Adapted from Jan Palus's patch
[packages/msmtp.git] / msmtp.spec
1 Summary:        SMTP "plugin" for MUAs
2 Summary(pl):    "Wtyczka" SMTP dla klientów pocztowych (MUA)
3 Name:           msmtp
4 Version:        1.4.4
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://dl.sourceforge.net/msmtp/%{name}-%{version}.tar.bz2
9 # Source0-md5:  34b31619a61462d9f2dd4f59720cf05e
10 Patch0:         %{name}-home_etc.patch
11 URL:            http://msmtp.sourceforge.net/
12 BuildRequires:  autoconf >= 2.50
13 BuildRequires:  automake
14 BuildRequires:  openssl-devel >= 0.9.7d
15 BuildRequires:  pkgconfig
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:
23 - SMTP AUTH methods PLAIN, LOGIN and CRAM-MD5
24 - TLS encrypted connections
25 - IPv6 support
26 - robustness
27 - detailed error messages if something goes wrong (including the full
28   answer of the SMTP server)
29 - sendmail compatible exit codes (which most MUAs understand).
30
31 Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail (with
32 Mutt that's just one additional line in the config file).
33
34 %description -l pl
35 msmtp to prosty program dzia³aj±cy jako "wtyczka SMTP" dla Mutta i
36 innych klientów pocztowych (MUA - mail user agents).
37 Przekierowuje wiadomo¶ci do serwera SMTP (na przyk³ad providera
38 darmowych kont e-mail), który je dostarcza. Mo¿liwo¶ci obejmuj±:
39 - obs³ugê SMTP AUTH - metod PLAIN, LOGIN i CRAM-MD5
40 - szyfrowane po³±czenia TLS
41 - obs³ugê IPv6
42 - szczegó³owe komunikaty b³êdów w przypadku niepowodzenia (w³±cznie z
43   pe³n± odpowiedzi± serwera SMTP)
44 - kody wyj¶cia kompatybilne z sendmailem (które rozumie wiêkszo¶æ
45   MUA).
46
47 Wystarczy przekazaæ klientowi pocztowemu, aby wywo³ywa³ msmtp zamiast
48 /usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku
49 konfiguracyjnym) lub zrobienie dowi±zania symbolicznego do
50 /usr/sbin/sendmail.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55
56 %build
57 %{__aclocal} -I gnulib/m4
58 %{__autoconf}
59 %{__autoheader}
60 %{__automake}
61 # could use gnutls instead (but is not ready for current libgcrypt)
62 # disable gsasl for now (see README.gsasl)
63 %configure \
64         --with-ssl=openssl \
65         --disable-gsasl
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
71
72 %{__make} install \
73         DESTDIR=$RPM_BUILD_ROOT
74
75 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
76
77 %find_lang %{name}
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post
83 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
84
85 %postun
86 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
87
88 %files -f %{name}.lang
89 %defattr(644,root,root,755)
90 %doc AUTHORS ChangeLog README THANKS doc/msmtprc-{system,user}.example
91 %attr(755,root,root) %{_bindir}/*
92 %{_mandir}/man1/msmtp*
93 %{_infodir}/msmtp*
This page took 0.061239 seconds and 3 git commands to generate.