-
Notifications
You must be signed in to change notification settings - Fork 16
/
ssmtp.spec
50 lines (40 loc) · 1.31 KB
/
ssmtp.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#%define configopt --enable-ssl --enable-md5auth
%define configopt --enable-ssl
Summary: Extremely simple MTA to get mail off the system to a Mailhub.
Name: ssmtp
Version: 2.60
Release: 8
License: GPL
Group: System/Servers
URL: http://packages.debian.org/stable/mail/ssmtp.html
BuildRoot: %{_tmppath}/root-%{name}-%{version}
Source: ftp://ftp.debian.org/debian/pool/main/s/%{name}/%{name}_%{version}.%{release}.tar.gz
Patch: %{name}_%{version}.%{release}.patch
%description
A secure, effective and simple way of getting mail off a system to your mail
hub. It contains no suid-binaries or other dangerous things - no mail spool
to poke around in, and no daemons running in the background. Mail is simply
forwarded to the configured mailhost. Extremely easy configuration.
WARNING: the above is all it does; it does not receive mail, expand aliases
or manage a queue. That belongs on a mail hub with a system administrator.
%prep
%setup
export PATCH_GET=0
%patch -p1
%build
%configure %{configopt}
%{__make}
%install
%{__rm} -rf %{buildroot}
%{__make} INSTALL_PREFIX="%{buildroot}" install
%post
%{_sbindir}/ssmtp_generate_config %{_sysconfdir}/ssmtp/ssmtp.conf
%postun
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING INSTALL README TLS
%config(noreplace) %{_sysconfdir}/ssmtp/*
%{_sbindir}/*
%{_mandir}/man?/*