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

Annotation of /rpms/qpsmtpd/sme10/qpsmtpd.spec

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


Revision 1.9 - (hide annotations) (download)
Thu Apr 21 15:38:19 2016 UTC (8 years, 6 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-4_el7_sme
Changes since 1.8: +7 -2 lines
* Thu Apr 21 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-4.sme
- Backport the karma strikes param patch [SME: 9462]

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

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