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

Annotation of /rpms/qpsmtpd/sme9/qpsmtpd.spec

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


Revision 1.22 - (hide annotations) (download)
Fri May 6 19:58:08 2016 UTC (8 years ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-1_el6_sme
Changes since 1.21: +44 -129 lines
Update to 0.96

1 vip-ire 1.22 # $Id: qpsmtpd.spec,v 1.12 2015/02/15 16:25:57 vip-ire Exp $
2 slords 1.1
3     Name: qpsmtpd
4 vip-ire 1.22 Version: 0.96
5     Release: 1%{?dist}
6     Summary: qpsmtpd + qpsmtpd-apache
7 slords 1.1 License: MIT
8     Group: System Environment/Daemons
9     URL: http://smtpd.develooper.com/
10     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
11     BuildRequires: perl >= 0:5.00503
12     BuildRequires: perl(ExtUtils::MakeMaker)
13     BuildArch: noarch
14     Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP)
15     Requires(pre): coreutils, shadow-utils, perl
16    
17     Source0: %{name}-%{version}.tar.gz
18     Source1: qpsmtpd-forkserver.rc
19     Source2: qpsmtpd-forkserver.sysconfig
20 vip-ire 1.22 Source3: qpsmtpd-xinetd
21     Source4: in.qpsmtpd
22     Source5: qpsmtpd.conf
23     Source6: README.selinux
24    
25     Patch1: qpsmtpd-0.95-spamassassin_size_limit.patch
26     Patch2: qpsmtpd-0.95-qpsmtpd_forserver_keepalive.patch
27     Patch3: qpsmtpd-0.95-notls_conf.patch
28     Patch4: qpsmtpd-0.95-allow_tls_proto_from_conf.patch
29     Patch5: qpsmtpd-0.96-set_hooks.patch
30     Patch6: qpsmtpd-0.96-warn_implicit_split.patch
31     Patch7: qpsmtpd-0.96-dont_log_credentials_except_in_debug.patch
32     Patch8: qpsmtpd-0.96-uribl_data_post.patch
33     Patch9: qpsmtpd-0.96-karma_strikes.patch
34     Patch10: qpsmtpd-0.96-karma_tlds_conf.patch
35     Patch11: qpsmtpd-0.96-more_badrcptto.patch
36     Patch12: qpsmtpd-0.96-store_original_plugin_name.patch
37     Patch13: qpsmtpd-0.96-dkim_no_sign_for_others_on_symlinks.patch
38     Patch14: qpsmtpd-0.96-fix_dmarc_reject.patch
39     Patch15: qpsmtpd-0.96-add_dmarc_result_notes.patch
40     Patch16: qpsmtpd-0.96-spf_on_no_dmarc_policy.patch
41 vip-ire 1.17
42 slords 1.1 %description
43     qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core
44     SMTP features, all functionality is implemented in small "extension
45     plugins" using the easy to use object oriented plugin API.
46    
47     qpsmtpd was originally written as a drop-in qmail-smtpd replacement, but
48     now it also includes a smtp forward and a postfix "backend".
49    
50     %package apache
51     Requires: perl(mod_perl2)
52     Summary: mod_perl-2 connection handler for qpsmtpd
53     Group: System Environment/Daemons
54    
55     %description apache
56    
57     This module implements a mod_perl/apache 2.0 connection handler
58     that turns Apache into an SMTP server using Qpsmtpd.
59    
60    
61     %prep
62     %setup -q
63     %patch1 -p1
64     %patch2 -p1
65     %patch3 -p1
66     %patch4 -p1
67     %patch5 -p1
68     %patch6 -p1
69     %patch7 -p1
70     %patch8 -p1
71     %patch9 -p1
72     %patch10 -p1
73     %patch11 -p1
74     %patch12 -p1
75     %patch13 -p1
76     %patch14 -p1
77     %patch15 -p1
78     %patch16 -p1
79    
80     %build
81     CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
82     make
83    
84     %clean
85     rm -rf $RPM_BUILD_ROOT
86     %install
87    
88     rm -rf $RPM_BUILD_ROOT
89     find blib/lib -name '*.pm.*' -exec rm -f {} \;
90     make pure_install
91    
92     mkdir -p %{buildroot}%{_datadir}/%{name}
93     rm -f %{buildroot}%{_datadir}/%{name}/plugins/*.*
94     cp -r plugins %{buildroot}%{_datadir}/%{name}/plugins
95     mkdir -p %{buildroot}%{_sysconfdir}/%{name}
96     rm -f %{buildroot}%{_sysconfdir}/%{name}/*.*
97     cp -r config.sample/* %{buildroot}%{_sysconfdir}/%{name}/
98     echo %{_datadir}/%{name}/plugins > %{buildroot}%{_sysconfdir}/%{name}/plugin_dirs
99     echo %{_localstatedir}/spool/qpsmtpd > %{buildroot}%{_sysconfdir}/%{name}/spool_dir
100     echo logging/file_connection loglevel LOGINFO %{_localstatedir}/log/qpsmtpd/%Y-%m-%d > %{buildroot}%{_sysconfdir}/%{name}/logging
101     mkdir -p %{buildroot}%{_initrddir}
102     cp %{SOURCE1} %{buildroot}%{_initrddir}/qpsmtpd-forkserver
103     mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
104     cp %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/qpsmtpd-forkserver
105     mkdir -p %{buildroot}%{_localstatedir}/spool/qpsmtpd
106     mkdir -p %{buildroot}%{_localstatedir}/log/qpsmtpd
107     mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d
108 vip-ire 1.22 cp %{SOURCE3} %{buildroot}%{_sysconfdir}/xinetd.d/smtp
109 slords 1.1 mkdir -p %{buildroot}%{_sbindir}
110 vip-ire 1.22 cp %{SOURCE4} %{buildroot}%{_sbindir}/in.smtp
111 slords 1.1 mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
112 vip-ire 1.22 cp %{SOURCE5} %{buildroot}%{_sysconfdir}/httpd/conf.d
113 slords 1.1 mkdir -p %{buildroot}%{_docdir}/%{name}-apache-%{version}
114 vip-ire 1.22 cp %{SOURCE6} %{buildroot}%{_docdir}/%{name}-apache-%{version}
115 slords 1.1
116     [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
117    
118     find %{buildroot}%{_prefix} \( -name perllocal.pod -o -name .packlist \) -exec rm {} \;
119     find %{buildroot}%{_prefix} -type f -print | \
120     sed "s@^%{buildroot}@@g" | \
121     grep -v [Aa]sync | \
122     grep -v packaging | \
123     grep -v README.selinux | \
124     grep -v /Apache | \
125     grep -v /Danga | \
126     grep -v Qpsmtpd/PollServer.pm > %{name}-%{version}-%{release}-filelist
127     if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then
128     echo "ERROR: EMPTY FILE LIST"
129     exit -1
130     fi
131    
132     %files -f %{name}-%{version}-%{release}-filelist
133     %defattr(-,root,root)
134 vip-ire 1.22 %doc CREDITS Changes LICENSE README.md README.plugins.md STATUS
135 slords 1.1 %{_initrddir}/qpsmtpd-forkserver
136     %config(noreplace) %{_sysconfdir}/qpsmtpd/*
137     %config(noreplace) %{_sysconfdir}/xinetd.d/smtp
138     %config(noreplace) %{_sysconfdir}/sysconfig/qpsmtpd-forkserver
139    
140     %files apache
141     %defattr(-,root,root)
142     %{_prefix}/share/perl5/vendor_perl/Apache/Qpsmtpd.pm
143     %{_mandir}/man3/Apache::Qpsmtpd.3pm.gz
144     %config(noreplace) %{_sysconfdir}/httpd/conf.d/*
145     %doc %{_docdir}/%{name}-apache-%{version}/README.selinux
146    
147     %pre
148 vip-ire 1.22 if ! id smtpd >/dev/null 2>&1
149     then
150     # need to create smtpd user.
151     if perl -e 'exit ! defined(getgrnam("postdrop"))'
152     then
153     # if postfix is installed, we will probably use
154     # queue/postfix, which will need this:
155     supp="-G postdrop"
156     fi
157     useradd -r -M -s /bin/false $supp smtpd
158     fi
159 slords 1.1
160     %changelog
161 vip-ire 1.22 * Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-1.sme
162     - Update to 0.96 (with some backports from GIT head) [SME: 8861]
163    
164 vip-ire 1.21 * Thu Jan 7 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-18.sme
165     - Allow reading SSL_version from the tls_protocols config file (and turn
166     TLSv1 back on by default) [SME: 9162]
167    
168 vip-ire 1.18 * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-17.sme
169 vip-ire 1.19 - Correctly log login attempts with nulls in login name [SME: 9167]
170 vip-ire 1.18
171 vip-ire 1.17 * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-16.sme
172     - Disable TLSv1 [SME: 9162]
173    
174 stephdl 1.16 * Fri Sep 11 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.84-15.sme
175     - Modify whitelist_soft transaction to interact with dnsbl filter [SME: 8747]
176     - by John Crisp <jcrisp@safeandsoundit.co.uk>
177     - Added qpsmtpd-0.84-make-dnsbl-more-whitelist_soft-aware.patch
178    
179 vip-ire 1.15 * Tue May 19 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-14.sme
180     - Disable SSLv3 [SME: 8926]
181    
182 vip-ire 1.13 * Fri May 15 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-13.sme
183     - New notls conf to set hosts you dont want to advertize STARTTLS to [SME: 8863]
184    
185 vip-ire 1.11 * Sun Feb 15 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-12.sme
186     - Revert forcing TLSv1 patch as it breaks some inbound delivery [SME: 8851]
187     - Revert whitelist_soft dnsbl as it hasn't been verified yet and we need to
188     push the fix for TLSv1 [SME: 8747]
189    
190 stephdl 1.10 * Fri Dec 26 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 0.84-11.sme
191     - Modify whitelist_soft transaction to interact with dnsbl filter [SME: 8747]
192     - by John Crisp <jcrisp@safeandsoundit.co.uk>
193    
194 vip-ire 1.9 * Mon Dec 22 2014 Daniel Berteaud <daniel@firewall-services.com> 0.84-10.sme
195     - Force usage of TLSv1 [SME: 8726]
196    
197 vip-ire 1.8 * Thu Mar 13 2014 Daniel Berteaud <daniel@firewall-services.com> 0.84-9.sme
198     - Remove DENYSOFT on SPF softfail [SME: 8273]
199    
200 vip-ire 1.7 * Mon Dec 9 2013 Daniel Berteaud <daniel@firewall-services.com> 0.84-8.sme
201     - Fix handling of messages with no body and no trailing \n after headers (eq was
202     used in attempted assignment). [SME: 8051, see SME: 7754]
203 vip-ire 1.6
204 wellsi 1.5 * Fri Jul 5 2013 Ian Wells <esmith@wellsi.com> 0.84-7.sme
205     - Accept messages with no body and no trailing \n after headers [SME: 7754]
206    
207 burnat 1.3 * Thu Apr 25 2013 chris burnat <devlist@burnat.com> 0.84-6.sme
208     - Fix Net::DNS update breaks qpsmtpd, codes suggested by Ian [SME: 7561]
209    
210 vip-ire 1.2 * Wed Apr 24 2013 Daniel Berteaud <daniel@firewall-services.com> 0.84-5.sme
211     - allows the spamassassin plugin to read the size limit from its
212     arguments [SME: 7559]
213    
214 slords 1.1 * Fri Feb 1 2013 Shad L. Lords <slords@mail.com> 0.84-4.sme
215     - Update spec so building on rhel6 works [SME: 7263]
216    
217     * Fri May 04 2012 Charlie Brady <charlie_brady@mitel.com> 0.84-3.sme
218     - Set SO_KEEPALIVE option on client socket - to detect dead
219     connections. [SME: 6924]
220    
221     * Sun Nov 14 2010 <slords@mail.com> 0.84-2.sme
222     - Sync with upstream git repo.
223     - Fix require_resolvable_fromhost doesn't work [SME: 6369]
224     - Fix TLS security defaults [SME: 6241]
225     - Fix fatal errors when mail has no headers [SME: 6345]
226    
227     * Wed Apr 14 2010 <slords@mail.com> 0.84-0.1.sme
228     - Update to 0.84
229     - add sme specific patches
230 wellsi 1.4 - Perl module rpms moved to /usr/share/perl5/vendor_perl [SME: 7223]
231 slords 1.1
232     * Wed Mar 3 2010 <filippo.carletti@gmail.com> 0.83-0.7.sme
233     - Remove spool and log dir from package (in smeserver-qpsmtpd)
234     - Don't create smtpd user (unused in sme) [SME: 5815]
235    
236     * Thu Nov 5 2009 <smeserver-contribs@snetram.nl> 0.83-0.6.sme
237     - Apply qpsmtpd git changesets to implement custom SPAM
238     subject prefix [SME: 5031]
239    
240     * Tue Nov 3 2009 <slords@mail.com> 0.83-0.5.sme
241     - Update pre requires so scripts don't fail on install [SME: 5558]
242    
243     * Sat Oct 31 2009 <slords@mail.com> 0.83-0.4.sme
244     - Rebase bad_rcptto patch to remove orig file [SME: 5548]
245     - Change logging in tls init to prevent warnings [SME: 5551]
246    
247     * Thu Oct 29 2009 <slords@mail.com> 0.83-0.3.sme
248     - Only run/initialize plugins once [SME: 5533]
249    
250     * Mon Oct 26 2009 <filippo.carletti@gmail.com> 0.83-0.2.sme
251     - Change spool dir permissions and owner to qpsmtpd:clamav
252     - Change log dir permissions and owner to smelog:smelog
253    
254     * Tue Sep 22 2009 <filippo.carletti@gmail.com> 0.83-0.1.sme
255     - add sme specific patches
256    
257     * Fri Sep 18 2009 <rpmbuild@robinbowes.com> 0.83-0.1
258     - Update to 0.83
259    
260     * Sun Jul 12 2009 <rpmbuild@robinbowes.com> 0.82-0.1
261     - Update to latest release
262     - don't add qpsmtpd to start-up by default
263     - add apache config file to qpsmtpd-apache package
264     - remove all patches
265     - use rpm macros for dirs
266     - use a filelist for main package instead of a long list of files
267    
268     * Tue Jul 15 2008 <rpmbuild@robinbowes.com> 0.43-0.7
269     - Removed SelectServer.pm from .spec file
270    
271     * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.6
272     - moved config files back to /etc/qpsmtpd following some changes
273     to the qpsmtpd src
274    
275     * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.5
276     - moved config files to /etc/qpsmtpd/config
277    
278     * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.4
279     - Moved qpsmtpd-async to /usr/bin
280     - Added qpsmtpd-async man page to async package
281     - Added async smtproute plugin to async package
282    
283     * Wed Mar 12 2008 <rpmbuild@robinbowes.com> 0.43-0.3
284     - Makefile.PL now updated in svn, so remove hack
285    
286     * Wed Mar 12 2008 <rpmbuild@robinbowes.com> 0.43-0.2
287     - Added qpsmtpd-prefork to qpsmtpd RPM, inc. hack to work round
288     deficiency in Makefile.PL
289    
290     * Mon Mar 10 2008 <rpmbuild@robinbowes.com> 0.43-0.1
291     - Updated to work with Makefile to build from svn
292    
293     * Wed Sep 12 2007 <rpmbuild@robinbowes.com> 0.40-2.0
294     - Updated to build trunk-r790
295    
296     * Tue Jun 12 2007 <hjp@hjp.at> 0.40-1.0
297     - updated to 0.40 - no code change.
298    
299     * Thu Jun 07 2007 <hjp@hjp.at> 0.40-0.2
300     - unset environment variables which are normally tainted in perl.
301     - updated to 0.40rc1
302     - added dependency on Net::IP (needed by some plugins)
303    
304     * Sat May 05 2007 <hjp@hjp.at> 0.33-0.5
305     - moved environment cleanup into start() function, otherwise
306     LANG just gets reinitialized.
307    
308     * Sat May 05 2007 <hjp@hjp.at> 0.33-0.4
309     - split qpsmtpd-async into a separate package to avoid dependency
310     on ParaDNS.
311    
312     * Sat May 05 2007 <hjp@hjp.at> 0.33-0.3
313     - also unset LANG, LC_ALL and LC_TIME in startup script to prevent
314     locale specific Received headers (bug reported by Dominik Meyer)
315    
316     * Sun Feb 25 2007 <hjp@hjp.at> 0.33-0.2
317     - 0.3x branch has been merged back to trunk.
318     Got current snapshot (r715) from trunk.
319    
320     * Sun Feb 25 2007 <hjp@hjp.at> 0.33-0.1
321     - Start forkserver via "daemon" (Gavin Carr)
322     - Fixed 'service qpsmtpd-forkserver status' (Gavin Carr)
323     - Changed policy for config files to noreplace (Gavin Carr)
324    
325     * Sun Nov 05 2006 <hjp@hjp.at> 0.33-0.0
326     - Upgraded to current snapshot from 0.3x branch (which should become
327     0.33 soon-ish)
328     - included xinetd-support again.
329    
330     * Sat Mar 18 2006 <hjp@hjp.at> 0.32-2
331     - fix dnsbl to check whether answer fits query.
332     - randomize Net::DNS ids for qpsmtpd-forkserver child processes.
333    
334     * Wed Mar 08 2006 <hjp@hjp.at> 0.32-1
335     - New upstream 0.32
336     - rc-file unsets PERL_UNICODE (bug #38397)
337    
338     * Sat Jan 28 2006 <hjp@hjp.at> 0.31.1-3
339     - Use ${SOURCE*} macros to refer to source files
340     - Avoid invoking rpm and other cleanup in %pre section
341     - Invoke chkconfig in %post.
342     - (Thanks to Josko Plazonic for the reporting these problems and
343     suggesting fixes)
344    
345     * Tue Nov 30 2005 <hjp@hjp.at> 0.31.1-2
346     - Revision 170 of plugins/loggin/file_connection:
347     Return DECLINED from open_log.
348     Open log in write_log if it isn't already open.
349    
350     * Tue Nov 29 2005 <hjp@hjp.at> 0.31.1-1
351     - Commented out queue plugins from sample config
352     - Added dependencies
353     - Create smtpd user if it doesn't exist
354     - Added /var/log/qpsmtpd and /var/spool/qpsmtpd
355    
356     * Sat Nov 26 2005 <hjp@hjp.at>
357     - Added file_connection plugin
358     - Startup file for qpsmtpd-forkserver now uses --detach and assumes that
359     a suitable logging module is configured (file_connection by default)
360    
361     * Wed Nov 23 2005 <hjp@hjp.at>
362     - Forkserver drops privileges before loading plugins now.
363    
364     * Sun Nov 20 2005 <hjp@hjp.at>
365     - New upstream 0.31.1
366    
367     * Mon Nov 14 2005 <hjp@hjp.at> 0.31-8
368     - New upstream 0.31rc3.
369     - pre-connection patch slightly simplified since upstream fixed one of
370     the bugs.
371    
372     * Tue Aug 23 2005 <hjp@hjp.at>
373     - forced INSTALLSITELIB=/usr/lib/perl5/site_perl as suggested by
374     Charlie Brady.
375    
376     * Sat Aug 20 2005 <hjp@hjp.at> 0.31-7
377     - RC2 from upstream.
378     - Removed patches which aren't applied from spec file.
379    
380     * Fri Jul 22 2005 <hjp@hjp.at> 0.31-6
381     - New upstream snapshot from 0.31 branch: svn revision 509.
382    
383     * Sun Jul 17 2005 <hjp@hjp.at> 0.31-5
384     - include only /etc/init.d/qpsmtpd-forkserver, not /etc/init.d
385     it conflicts with old initscripts packages.
386    
387     * Sun Jul 17 2005 <hjp@hjp.at> 0.31-4
388     - removed tabs from forkserver
389    
390     * Sun Jul 17 2005 <hjp@hjp.at> 0.31-3
391     - added startup script for forkserver
392     - changed BuildArchitectures to noarch.
393    
394     * Sat Jul 16 2005 <hjp@hjp.at> 0.31-2
395     - pre-connection hook is now actually called, not just defined.
396    
397     * Fri Jul 15 2005 <hjp@hjp.at> 0.31-1
398     - merged with 0.31. Most of my patches are now in the official release.
399     - merged Gavin's per-user-config patch with my dirs patch, since the
400     latter needs a way to turn off logging.
401     - added /etc/qpsmtpd/plugin_dir to package.
402    
403     * Mon Jun 13 2005 <hjp@hjp.at> 0.29-6
404     - fixed removal of patch backup files
405     - fixed option --pid-file
406    
407     * Sun Jun 12 2005 <hjp@hjp.at>
408     - avoid installing patch backup files
409     - split Apache::Qpsmtpd into separate package to avoid dependency hell.
410     - fixed URL
411     - changed group to Daemons.
412     - Fixed installation for newer versions of ExtUtils::MakeMaker
413    
414     * Wed Jun 1 2005 <hjp@hjp.at> 0.29-5
415     - Really don't reap children in signal handler.
416    
417     * Tue May 31 2005 <hjp@hjp.at> 0.29-4
418     - Return 421 for DENYSOFT_DISCONNECT
419     - Don't reap children in signal handler.
420    
421     * Thu May 19 2005 <hjp@hjp.at> 0.29-3
422     - removed code to accept paths without <>.
423    
424     * Thu May 19 2005 <hjp@hjp.at> 0.29-2
425     - added QPSMTPD_CONFIG env variable and plugin_dir config.
426     - added supplemental groups and support for pid file
427     - added shared_connect hook
428     - changed log level for SMTP dialog from DEBUG to INFO
429    
430     * Thu Apr 21 2005 hjp@hjp.at
431     - added plugins, /etc and docs.
432    
433     * Mon Apr 18 2005 hjp@hjp.at
434     - Specfile autogenerated
435    

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