1 |
# $Id: qpsmtpd.spec,v 1.12 2015/02/15 16:25:57 vip-ire Exp $ |
# $Id: qpsmtpd.spec,v 1.12 2016/04/22 08:37:10 vip-ire Exp $ |
2 |
|
|
3 |
Name: qpsmtpd |
Name: qpsmtpd |
4 |
Version: 0.96 |
Version: 0.96 |
5 |
Release: 1%{?dist} |
Release: 6%{?dist} |
6 |
Summary: qpsmtpd + qpsmtpd-apache |
Summary: qpsmtpd + qpsmtpd-apache |
7 |
License: MIT |
License: MIT |
8 |
Group: System Environment/Daemons |
Group: System Environment/Daemons |
12 |
BuildRequires: perl(ExtUtils::MakeMaker) |
BuildRequires: perl(ExtUtils::MakeMaker) |
13 |
BuildArch: noarch |
BuildArch: noarch |
14 |
Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP) |
Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP) |
15 |
|
Requires: perl(IO::Socket::SSL) >= 1.70 |
16 |
Requires(pre): coreutils, shadow-utils, perl |
Requires(pre): coreutils, shadow-utils, perl |
17 |
|
|
18 |
Source0: %{name}-%{version}.tar.gz |
Source0: %{name}-%{version}.tar.gz |
29 |
Patch4: qpsmtpd-0.95-allow_tls_proto_from_conf.patch |
Patch4: qpsmtpd-0.95-allow_tls_proto_from_conf.patch |
30 |
Patch5: qpsmtpd-0.96-set_hooks.patch |
Patch5: qpsmtpd-0.96-set_hooks.patch |
31 |
Patch6: qpsmtpd-0.96-warn_implicit_split.patch |
Patch6: qpsmtpd-0.96-warn_implicit_split.patch |
32 |
|
Patch7: qpsmtpd-0.96-dont_log_credentials_except_in_debug.patch |
33 |
|
Patch8: qpsmtpd-0.96-uribl_data_post.patch |
34 |
|
Patch9: qpsmtpd-0.96-karma_strikes.patch |
35 |
|
Patch10: qpsmtpd-0.96-more_badrcptto.patch |
36 |
|
Patch11: qpsmtpd-0.96-karma_tlds_conf.patch |
37 |
|
Patch12: qpsmtpd-0.96-store_original_plugin_name.patch |
38 |
|
Patch13: qpsmtpd-0.96-fix_karma_tool_dir_path.patch |
39 |
|
|
40 |
%description |
%description |
41 |
qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core |
qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core |
64 |
%patch4 -p1 |
%patch4 -p1 |
65 |
%patch5 -p1 |
%patch5 -p1 |
66 |
%patch6 -p1 |
%patch6 -p1 |
67 |
|
%patch7 -p1 |
68 |
|
%patch8 -p1 |
69 |
|
%patch9 -p1 |
70 |
|
%patch10 -p1 |
71 |
|
%patch11 -p1 |
72 |
|
%patch12 -p1 |
73 |
|
%patch13 -p1 |
74 |
|
|
75 |
%build |
%build |
76 |
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" |
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" |
140 |
%doc %{_docdir}/%{name}-apache-%{version}/README.selinux |
%doc %{_docdir}/%{name}-apache-%{version}/README.selinux |
141 |
|
|
142 |
%pre |
%pre |
143 |
if ! id smtpd >/dev/null 2>&1 |
|
|
then |
|
|
# need to create smtpd user. |
|
|
if perl -e 'exit ! defined(getgrnam("postdrop"))' |
|
|
then |
|
|
# if postfix is installed, we will probably use |
|
|
# queue/postfix, which will need this: |
|
|
supp="-G postdrop" |
|
|
fi |
|
|
useradd -r -M -s /bin/false $supp smtpd |
|
|
fi |
|
144 |
|
|
145 |
%changelog |
%changelog |
146 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-7.sme |
147 |
|
- Backport some minor patches from git head [SME: 9460] |
148 |
|
|
149 |
|
* Fri Apr 22 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-6.sme |
150 |
|
- badrcptto can now read another file container bad addresses [SME: 9460] |
151 |
|
[SME: 4597] |
152 |
|
|
153 |
|
* Thu Apr 21 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-5.sme |
154 |
|
- Fix a typo in previous patch [SME: 9462] |
155 |
|
|
156 |
|
* Thu Apr 21 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-4.sme |
157 |
|
- Backport the karma strikes param patch [SME: 9462] |
158 |
|
|
159 |
|
* Mon Apr 18 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-3.sme |
160 |
|
- hook uribl in data_post so it has access to the body [SME: 9467] |
161 |
|
|
162 |
|
* Sun Apr 17 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-2.sme |
163 |
|
- Don't log user credentials except when using the higher log level |
164 |
|
[SME: 9466] |
165 |
|
|
166 |
* Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-1.sme |
* Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-1.sme |
167 |
- Update to 0.96 [SME: 9460] |
- Update to 0.96 [SME: 9460] |
168 |
|
|