/[smeserver]/rpms/qpsmtpd/sme9/qpsmtpd.spec
ViewVC logotype

Diff of /rpms/qpsmtpd/sme9/qpsmtpd.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by slords, Sat Feb 2 00:59:45 2013 UTC Revision 1.32 by unnilennium, Tue Mar 7 16:03:52 2017 UTC
# Line 1  Line 1 
1  # $Id: qpsmtpd.spec,v 1.31 2012/05/04 15:44:20 charliebrady Exp $  # $Id: qpsmtpd.spec,v 1.31 2017/02/27 22:07:06 unnilennium Exp $
2    
3  Name: qpsmtpd  Name: qpsmtpd
4  Version: 0.84  Version: 0.96
5  Release: 4%{?dist}  Release: 9%{?dist}
6  Summary: qpsmtpd + qpsmtpd-apache + qpsmtpd-async  Summary: qpsmtpd + qpsmtpd-apache
7  License: MIT  License: MIT
8  Group: System Environment/Daemons  Group: System Environment/Daemons
9  URL: http://smtpd.develooper.com/  URL: http://smtpd.develooper.com/
# Line 12  BuildRequires: perl >= 0:5.00503 Line 12  BuildRequires: perl >= 0:5.00503
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(Data::Validate::Domain)
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
19  Source1: qpsmtpd-forkserver.rc  Source1: qpsmtpd-forkserver.rc
20  Source2: qpsmtpd-forkserver.sysconfig  Source2: qpsmtpd-forkserver.sysconfig
21  Source3: qpsmtpd-plugin-file_connection  Source3: qpsmtpd-xinetd
22  Source4: qpsmtpd-xinetd  Source4: in.qpsmtpd
23  Source5: in.qpsmtpd  Source5: qpsmtpd.conf
24  Source6: qpsmtpd.conf  Source6: README.selinux
25  Source7: README.selinux  
26    Patch1: qpsmtpd-0.95-spamassassin_size_limit.patch
27  Patch1: 0001-Misc-documentation-updates.patch  Patch2: qpsmtpd-0.95-qpsmtpd_forserver_keepalive.patch
28  Patch2: 0002-added-ClamAV-version-to-the-X-Virus-Checked-header.patch  Patch3: qpsmtpd-0.95-notls_conf.patch
29  Patch3: 0003-new-plugin-check_bogus_bounce.patch  Patch4: qpsmtpd-0.95-allow_tls_proto_from_conf.patch
30  Patch4: 0004-microoptimizations-replace-regex-with-lc-eq.patch  Patch5: qpsmtpd-0.96-set_hooks.patch
31  Patch5: 0005-remove-vestiges-of-a-bygone-RCS.patch  Patch6: qpsmtpd-0.96-warn_implicit_split.patch
32  Patch6: 0006-added-definedness-test-to-local_port-as-it-was-emitt.patch  Patch7: qpsmtpd-0.96-dont_log_credentials_except_in_debug.patch
33  Patch7: 0007-Add-guidelines-for-commit-messages.patch  Patch8: qpsmtpd-0.96-uribl_data_post.patch
34  Patch8: 0008-added-auth_checkpassword-plugin.patch  Patch9: qpsmtpd-0.96-karma_strikes.patch
35  Patch9: 0009-updates-to-auth_vpopmail_sql-module.patch  Patch10: qpsmtpd-0.96-karma_tlds_conf.patch
36  Patch10: 0010-new-plugin-auth_vpopmaild.patch  Patch11: qpsmtpd-0.96-more_badrcptto.patch
37  Patch11: 0011-start-working-on-Changes-file-for-0.84-next.patch  Patch12: qpsmtpd-0.96-store_original_plugin_name.patch
38  Patch12: 0012-fix-copy-paste-error-in-auth_flat_file.patch  Patch13: qpsmtpd-0.96-dkim_no_sign_for_others_on_symlinks.patch
39  Patch13: 0013-added-auth_vpopmail-plugin.patch  Patch14: qpsmtpd-0.96-fix_dmarc_reject.patch
40  Patch14: 0014-rewrote-sender_permitted_from.patch  Patch15: qpsmtpd-0.96-add_dmarc_result_notes.patch
41  Patch15: 0015-add-TCPLOCAL-variables-to-qp-connection.patch  Patch16: qpsmtpd-0.96-spf_on_no_dmarc_policy.patch
42  Patch16: 0016-added-local_ip-option-to-p0f-plugin.patch  Patch17: qpsmtpd-0.96-find_karma_db_dir.patch
43  Patch17: 0017-added-p0f-support-to-greylist-plugin.patch  Patch18: qpsmtpd-0.96-check_negative_karma_strikes.patch
44  Patch18: 0018-packaging-updates.patch  Patch19: qpsmtpd-0.96-addr_defined_before_use.patch
45  Patch19: 0019-Check-for-the-exact-string-resonses-from-vpopmaild-r.patch  Patch20: qpsmtpd-0.96-check_rua_is_defined.patch
46  Patch20: 0020-new-plugin-check_badmailfrom_patterns.patch  Patch21: qpsmtpd-0.96-remove_karma_rcpt_handler.patch
47  Patch21: 0021-ignore-search-path-in-DNS-lookups.patch  Patch22: qpsmtpd-0.96-eval_dkim_policies.patch
48  Patch22: 0022-don-t-create-homedir-in-RPM.patch  Patch23: qpsmtpd-0.96-uribl_validate_domains.patch
49  Patch23: 0023-corrected-email-address.patch  Patch24: qpsmtpd-0.96-bz10111-whitelist.patch
 Patch24: 0024-increased-default-TLS-security-setting.patch  
 Patch25: 0025-give-badrcptto-a-reasonable-name.patch  
 Patch26: 0026-add-test-name-to-test-output.patch  
 Patch27: 0027-renamed-test-from-foo-to-rcpt_ok.patch  
 Patch28: 0028-Shorten-clarify-Connection-and-Transaction-notes.patch  
 Patch29: 0029-Run-hook_reset_transaction-after-all-connections.patch  
 Patch30: 0030-Add-support-for-multiple-postfix-cleanup-sockets.patch  
 Patch31: 0031-Adds-the-ability-to-have-multiple-instances-each-wit.patch  
 Patch32: 0032-I-forgot-to-sync-the-code-that-calls-the-original-co.patch  
 Patch33: 0033-new-plugin-rcpt_map.patch  
 Patch34: 0034-plugins-rcpt_map-cleanup.patch  
 Patch35: 0035-Fix-for-plugins-returning-DONE-from-HELO-EHLO.patch  
 Patch36: 0036-prefork-use-new-instance-instead-of-cloning.patch  
 Patch37: 0037-Revert-Spool-body-when-transaction-body_fh-is-called.patch  
 Patch38: 0038-Patch-FATAL-PLUGIN-ERROR-check_basicheaders.patch  
   
 Patch100: qpsmtpd-0.40-badrcptto_allowrelay.patch  
 Patch101: qpsmtpd-0.83-peer_hooks.patch  
 Patch102: qpsmtpd-0.83-loginit.patch  
 Patch103: qpsmtpd-forkserver-keepalive.patch  
50    
51  %description  %description
52  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
# Line 80  Requires: perl(mod_perl2) Line 61  Requires: perl(mod_perl2)
61  Summary: mod_perl-2 connection handler for qpsmtpd  Summary: mod_perl-2 connection handler for qpsmtpd
62  Group: System Environment/Daemons  Group: System Environment/Daemons
63    
 %package async  
 Summary: qpsmtpd using async I/O in a single process  
 Group: System Environment/Daemons  
   
64  %description apache  %description apache
65    
66  This module implements a mod_perl/apache 2.0 connection handler  This module implements a mod_perl/apache 2.0 connection handler
67  that turns Apache into an SMTP server using Qpsmtpd.  that turns Apache into an SMTP server using Qpsmtpd.
68    
 %description async  
 This package contains the Qpsmtpd::PollServer module, which allows  
 qpsmtd to handle many connections in a single process and the  
 qpsmpd-async which uses it.  
69    
70  %prep  %prep
71  %setup -q  %setup -q
# Line 117  qpsmpd-async which uses it. Line 90  qpsmpd-async which uses it.
90  %patch19 -p1  %patch19 -p1
91  %patch20 -p1  %patch20 -p1
92  %patch21 -p1  %patch21 -p1
93  #%patch22 -p1  %patch22 -p1
94  %patch23 -p1  %patch23 -p1
95  %patch24 -p1  %patch24 -p1
 %patch25 -p1  
 %patch26 -p1  
 %patch27 -p1  
 %patch28 -p1  
 %patch29 -p1  
 %patch30 -p1  
 %patch31 -p1  
 %patch32 -p1  
 %patch33 -p1  
 %patch34 -p1  
 %patch35 -p1  
 %patch36 -p1  
 %patch37 -p1  
 %patch38 -p1  
   
 %patch100 -p1  
 %patch101 -p1  
 %patch102 -p1  
 %patch103 -p0  
96    
97  %build  %build
98  CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"  CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
# Line 165  mkdir -p %{buildroot}%{_initrddir} Line 119  mkdir -p %{buildroot}%{_initrddir}
119  cp %{SOURCE1} %{buildroot}%{_initrddir}/qpsmtpd-forkserver  cp %{SOURCE1} %{buildroot}%{_initrddir}/qpsmtpd-forkserver
120  mkdir -p %{buildroot}%{_sysconfdir}/sysconfig  mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
121  cp %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/qpsmtpd-forkserver  cp %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/qpsmtpd-forkserver
 cp %{SOURCE3} %{buildroot}%{_datadir}/%{name}/plugins/logging/file_connection  
122  mkdir -p %{buildroot}%{_localstatedir}/spool/qpsmtpd  mkdir -p %{buildroot}%{_localstatedir}/spool/qpsmtpd
123  mkdir -p %{buildroot}%{_localstatedir}/log/qpsmtpd  mkdir -p %{buildroot}%{_localstatedir}/log/qpsmtpd
124  mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d  mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d
125  cp %{SOURCE4} %{buildroot}%{_sysconfdir}/xinetd.d/smtp  cp %{SOURCE3} %{buildroot}%{_sysconfdir}/xinetd.d/smtp
126  mkdir -p %{buildroot}%{_sbindir}  mkdir -p %{buildroot}%{_sbindir}
127  cp %{SOURCE5} %{buildroot}%{_sbindir}/in.smtp  cp %{SOURCE4} %{buildroot}%{_sbindir}/in.smtp
128  mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d  mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
129  cp %{SOURCE6} %{buildroot}%{_sysconfdir}/httpd/conf.d  cp %{SOURCE5} %{buildroot}%{_sysconfdir}/httpd/conf.d
130  mkdir -p %{buildroot}%{_docdir}/%{name}-apache-%{version}  mkdir -p %{buildroot}%{_docdir}/%{name}-apache-%{version}
131  cp %{SOURCE7} %{buildroot}%{_docdir}/%{name}-apache-%{version}  cp %{SOURCE6} %{buildroot}%{_docdir}/%{name}-apache-%{version}
132    
133  [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress  [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
134    
# Line 187  find %{buildroot}%{_prefix} -type f -pri Line 140  find %{buildroot}%{_prefix} -type f -pri
140          grep -v README.selinux          | \          grep -v README.selinux          | \
141          grep -v /Apache                 | \          grep -v /Apache                 | \
142          grep -v /Danga                  | \          grep -v /Danga                  | \
         grep -v Qpsmtpd/ConfigServer.pm | \  
143          grep -v Qpsmtpd/PollServer.pm   > %{name}-%{version}-%{release}-filelist          grep -v Qpsmtpd/PollServer.pm   > %{name}-%{version}-%{release}-filelist
144  if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then  if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then
145      echo "ERROR: EMPTY FILE LIST"      echo "ERROR: EMPTY FILE LIST"
# Line 196  fi Line 148  fi
148    
149  %files -f %{name}-%{version}-%{release}-filelist  %files -f %{name}-%{version}-%{release}-filelist
150  %defattr(-,root,root)  %defattr(-,root,root)
151  %doc CREDITS Changes LICENSE README README.plugins STATUS  %doc CREDITS Changes LICENSE README.md README.plugins.md STATUS
152  %{_initrddir}/qpsmtpd-forkserver  %{_initrddir}/qpsmtpd-forkserver
153  %config(noreplace) %{_sysconfdir}/qpsmtpd/*  %config(noreplace) %{_sysconfdir}/qpsmtpd/*
154  %config(noreplace) %{_sysconfdir}/xinetd.d/smtp  %config(noreplace) %{_sysconfdir}/xinetd.d/smtp
# Line 209  fi Line 161  fi
161  %config(noreplace) %{_sysconfdir}/httpd/conf.d/*  %config(noreplace) %{_sysconfdir}/httpd/conf.d/*
162  %doc %{_docdir}/%{name}-apache-%{version}/README.selinux  %doc %{_docdir}/%{name}-apache-%{version}/README.selinux
163    
 %files async  
 %defattr(-,root,root)  
 %{_bindir}/qpsmtpd-async  
 %{_prefix}/share/perl5/vendor_perl/Danga/Client.pm  
 %{_prefix}/share/perl5/vendor_perl/Danga/TimeoutSocket.pm  
 %{_prefix}/share/perl5/vendor_perl/Qpsmtpd/ConfigServer.pm  
 %{_prefix}/share/perl5/vendor_perl/Qpsmtpd/Plugin/Async/DNSBLBase.pm  
 %{_prefix}/share/perl5/vendor_perl/Qpsmtpd/PollServer.pm  
 %{_mandir}/man1/qpsmtpd-async.1.gz  
 %{_datadir}/%{name}/plugins/async/*  
   
164  %pre  %pre
165    if ! id smtpd >/dev/null 2>&1
166    then
167        # need to create smtpd user.
168        if perl -e 'exit ! defined(getgrnam("postdrop"))'
169        then
170            # if postfix is installed, we will probably use
171            # queue/postfix, which will need this:
172            supp="-G postdrop"
173        fi
174        useradd -r -M -s /bin/false $supp smtpd
175    fi
176    
177  %changelog  %changelog
178    * Mon Feb 27 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.96-9.sme
179    - fix whitelist plugin to support helo with naughty rejecting at mail stage [SME: 10111]
180    
181    * Tue Jul 12 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-8.sme
182    - Validate domains found in uribl with Data::Validate::Domain [SME: 9499]
183    
184    * Tue Jul 5 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-7.sme
185    - Use eval to fetch dkim policies, prevent fatal errors in case of DNS
186      timeout [SME: 9504]
187    
188    * Wed Jun 15 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-6.sme
189    - Remove karma rcpt handling (buggy and doesn't make a lot of sense)
190      [SME: 9502]
191    
192    * Sat May 28 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-5.sme
193    - Check rua is defined before trying to parse it to prevent an error
194      if a domain has a DMARC entry published with no rua [SME: 9507]
195    
196    * Mon May 16 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-4.sme
197    - Fix error when RCPT TO is not valid [SME: 8861]
198    
199    * Mon May 9 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-3.sme
200    - Fix karma logic by checking negative strikes [SME: 9502]
201    
202    * Sun May 8 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-2.sme
203    - Backport a fix for karma_tool so it can find its database [SME: 9502]
204    
205    * Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-1.sme
206    - Update to 0.96 (with some backports from GIT head) [SME: 8861]
207    
208    * Thu Jan 7 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-18.sme
209    - Allow reading SSL_version from the tls_protocols config file (and turn
210      TLSv1 back on by default) [SME: 9162]
211    
212    * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-17.sme
213    - Correctly log login attempts with nulls in login name [SME: 9167]
214    
215    * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-16.sme
216    - Disable TLSv1 [SME: 9162]
217    
218    * Fri Sep 11 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.84-15.sme
219    - Modify whitelist_soft transaction to interact with dnsbl filter [SME: 8747]
220    - by John Crisp <jcrisp@safeandsoundit.co.uk>
221    - Added qpsmtpd-0.84-make-dnsbl-more-whitelist_soft-aware.patch
222    
223    * Tue May 19 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-14.sme
224    - Disable SSLv3 [SME: 8926]
225    
226    * Fri May 15 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-13.sme
227    - New notls conf to set hosts you dont want to advertize STARTTLS to [SME: 8863]
228    
229    * Sun Feb 15 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-12.sme
230    - Revert forcing TLSv1 patch as it breaks some inbound delivery [SME: 8851]
231    - Revert whitelist_soft dnsbl as it hasn't been verified yet and we need to
232      push the fix for TLSv1 [SME: 8747]
233    
234    * Fri Dec 26 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 0.84-11.sme
235    - Modify whitelist_soft transaction to interact with dnsbl filter [SME: 8747]
236    - by John Crisp <jcrisp@safeandsoundit.co.uk>
237    
238    * Mon Dec 22 2014 Daniel Berteaud <daniel@firewall-services.com> 0.84-10.sme
239    - Force usage of TLSv1 [SME: 8726]
240    
241    * Thu Mar 13 2014 Daniel Berteaud <daniel@firewall-services.com> 0.84-9.sme
242    - Remove DENYSOFT on SPF softfail [SME: 8273]
243    
244    * Mon Dec 9 2013 Daniel Berteaud <daniel@firewall-services.com> 0.84-8.sme
245    - Fix handling of messages with no body and no trailing \n after headers (eq was
246      used in attempted assignment). [SME: 8051, see SME: 7754]
247    
248    * Fri Jul 5 2013 Ian Wells <esmith@wellsi.com> 0.84-7.sme
249    - Accept messages with no body and no trailing \n after headers [SME: 7754]
250    
251    * Thu Apr 25 2013 chris burnat <devlist@burnat.com> 0.84-6.sme
252    - Fix Net::DNS update breaks qpsmtpd, codes suggested by Ian [SME: 7561]
253    
254    * Wed Apr 24 2013 Daniel Berteaud <daniel@firewall-services.com> 0.84-5.sme
255    - allows the spamassassin plugin to read the size limit from its
256      arguments [SME: 7559]
257    
258  * Fri Feb 1 2013 Shad L. Lords <slords@mail.com> 0.84-4.sme  * Fri Feb 1 2013 Shad L. Lords <slords@mail.com> 0.84-4.sme
259  - Update spec so building on rhel6 works [SME: 7263]  - Update spec so building on rhel6 works [SME: 7263]
260    
# Line 239  fi Line 271  fi
271  * Wed Apr 14 2010 <slords@mail.com> 0.84-0.1.sme  * Wed Apr 14 2010 <slords@mail.com> 0.84-0.1.sme
272  - Update to 0.84  - Update to 0.84
273  - add sme specific patches  - add sme specific patches
274    - Perl module rpms moved to /usr/share/perl5/vendor_perl [SME: 7223]
275    
276  * Wed Mar 3 2010 <filippo.carletti@gmail.com> 0.83-0.7.sme  * Wed Mar 3 2010 <filippo.carletti@gmail.com> 0.83-0.7.sme
277  - Remove spool and log dir from package (in smeserver-qpsmtpd)  - Remove spool and log dir from package (in smeserver-qpsmtpd)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed