]> git.pld-linux.org Git - packages/ssmtp.git/blob - ssmtp.spec
- fixed --enable-ssl build
[packages/ssmtp.git] / ssmtp.spec
1 Summary:        Extremely simple MTA to get mail off the system to a mail hub
2 Summary(pl.UTF-8):      Skrajnie prosty MTA do przekazywania poczty z systemu do huba
3 Name:           ssmtp
4 Version:        2.64
5 Release:        3
6 License:        GPL
7 Group:          Networking/Daemons/SMTP
8 Source0:        http://http.us.debian.org/debian/pool/main/s/ssmtp/%{name}_%{version}.orig.tar.bz2
9 # Source0-md5:  65b4e0df4934a6cd08c506cabcbe584f
10 Patch0:         %{name}-nonsl.patch
11 Patch1:         %{name}-ssl.patch
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  openssl-devel
15 Provides:       smtpdaemon
16 Obsoletes:      courier
17 Obsoletes:      exim
18 Obsoletes:      masqmail
19 Obsoletes:      omta
20 Obsoletes:      qmail
21 Obsoletes:      sendmail
22 Obsoletes:      sendmail-cf
23 Obsoletes:      sendmail-doc
24 Obsoletes:      smail
25 Obsoletes:      smtpdaemon
26 Obsoletes:      zmailer
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 A secure, effective and simple way of getting mail off a system to
31 your mail hub. It contains no suid-binaries or other dangerous things
32 - no mail spool to poke around in, and no daemons running in the
33   background. Mail is simply forwarded to the configured mailhost.
34   Extremely easy configuration. WARNING: the above is all it does; it
35   does not receive mail, expand aliases or manage a queue. That belongs
36   on a mail hub with a system administrator.
37
38 %description -l pl.UTF-8
39 Bezpieczny, efektywny i prosty sposób przekazywania poczty z systemu
40 do własnego huba pocztowego. Nie zawiera suidowych binarek ani innych
41 niebezpiecznych rzeczy - nie ma spoola do wpychania czegokolwiek ani
42 demonów działających w tle. Poczta jest po prostu przekazywana do
43 zewnętrznego, skonfigurowanego serwera pocztowego. Skrajnie prosta
44 konfiguracja. UWAGA: powyższe to wszystko, co robi ten program; nie
45 odbiera poczty, nie rozwija aliasów ani nie zarządza kolejką. To
46 należy do huba pocztowego z własnym administratorem.
47
48 %prep
49 %setup -q
50 %patch0 -p1
51 %patch1 -p1
52
53 %build
54 rm -f missing
55 %{__aclocal}
56 %{__autoconf}
57 %configure \
58         --enable-ssl
59
60 %{__make} \
61         SSMTPCONFDIR=%{_sysconfdir}/mail
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,%{_sysconfdir}/mail,%{_prefix}/lib}
66
67 install ssmtp $RPM_BUILD_ROOT%{_sbindir}/ssmtp
68 install ssmtp.8 $RPM_BUILD_ROOT%{_mandir}/man8/ssmtp.8
69 install ssmtp.conf revaliases $RPM_BUILD_ROOT%{_sysconfdir}/mail
70 ln -sf %{_sbindir}/ssmtp $RPM_BUILD_ROOT%{_prefix}/lib/sendmail
71 ln -sf ssmtp $RPM_BUILD_ROOT%{_sbindir}/sendmail
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files
77 %defattr(644,root,root,755)
78 %doc README TLS
79 %attr(755,root,root) %{_sbindir}/*
80 %attr(755,root,root) %{_prefix}/lib/sendmail
81 %dir %{_sysconfdir}/mail
82 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/ssmtp.conf
83 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/revaliases
84 %{_mandir}/man8/ssmtp*
This page took 0.093307 seconds and 4 git commands to generate.