/[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.10 - (hide annotations) (download)
Thu Apr 21 21:07:10 2016 UTC (8 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-5_el7_sme
Changes since 1.9: +5 -2 lines
* Thu Apr 21 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-5.sme
- Fix a typo in previou patch [SME: 9462]

1 vip-ire 1.10 # $Id: qpsmtpd.spec,v 1.9 2016/04/21 15:38:19 vip-ire Exp $
2 stephdl 1.1
3     Name: qpsmtpd
4 vip-ire 1.4 Version: 0.96
5 vip-ire 1.10 Release: 5%{?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.10 * Thu Apr 21 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-5.sme
139     - Fix a typo in previou patch [SME: 9462]
140    
141 vip-ire 1.9 * Thu Apr 21 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-4.sme
142     - Backport the karma strikes param patch [SME: 9462]
143    
144 vip-ire 1.7 * Mon Apr 18 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-3.sme
145 vip-ire 1.8 - hook uribl in data_post so it has access to the body [SME: 9467]
146 vip-ire 1.7
147 vip-ire 1.6 * Sun Apr 17 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-2.sme
148     - Don't log user credentials except when using the higher log level
149     [SME: 9466]
150    
151 vip-ire 1.4 * Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-1.sme
152     - Update to 0.96 [SME: 9460]
153    
154 charliebrady 1.3 * Fri Mar 25 2016 Charlie Brady <charlieb@charliebrady.org> 0.84-20.sme
155     - Fix startup warnings due to Socket6 symbol import. [SME: 9386]
156    
157 stephdl 1.2 * Sun Feb 7 2016 stephane de labrusse <stephdl@de-labrusse.fr> 0.84-19.sme
158 stephdl 1.1 - Build new rpm for sme10
159    
160     * Thu Jan 7 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-18.sme
161     - Allow reading SSL_version from the tls_protocols config file (and turn
162     TLSv1 back on by default) [SME: 9162]
163    
164     * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-17.sme
165     - Correctly log login attempts with nulls in login name [SME: 9167]
166    
167     * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-16.sme
168     - Disable TLSv1 [SME: 9162]
169    
170     * Fri Sep 11 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.84-15.sme
171     - Modify whitelist_soft transaction to interact with dnsbl filter [SME: 8747]
172     - by John Crisp <jcrisp@safeandsoundit.co.uk>
173     - Added qpsmtpd-0.84-make-dnsbl-more-whitelist_soft-aware.patch
174    
175     * Tue May 19 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-14.sme
176     - Disable SSLv3 [SME: 8926]
177    
178     * Fri May 15 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-13.sme
179     - New notls conf to set hosts you dont want to advertize STARTTLS to [SME: 8863]
180    
181     * Sun Feb 15 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-12.sme
182     - Revert forcing TLSv1 patch as it breaks some inbound delivery [SME: 8851]
183     - Revert whitelist_soft dnsbl as it hasn't been verified yet and we need to
184     push the fix for TLSv1 [SME: 8747]
185    
186     * Fri Dec 26 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 0.84-11.sme
187     - Modify whitelist_soft transaction to interact with dnsbl filter [SME: 8747]
188     - by John Crisp <jcrisp@safeandsoundit.co.uk>
189    
190     * Mon Dec 22 2014 Daniel Berteaud <daniel@firewall-services.com> 0.84-10.sme
191     - Force usage of TLSv1 [SME: 8726]
192    
193     * Thu Mar 13 2014 Daniel Berteaud <daniel@firewall-services.com> 0.84-9.sme
194     - Remove DENYSOFT on SPF softfail [SME: 8273]
195    
196     * Mon Dec 9 2013 Daniel Berteaud <daniel@firewall-services.com> 0.84-8.sme
197     - Fix handling of messages with no body and no trailing \n after headers (eq was
198     used in attempted assignment). [SME: 8051, see SME: 7754]
199    
200     * Fri Jul 5 2013 Ian Wells <esmith@wellsi.com> 0.84-7.sme
201     - Accept messages with no body and no trailing \n after headers [SME: 7754]
202    
203     * Thu Apr 25 2013 chris burnat <devlist@burnat.com> 0.84-6.sme
204     - Fix Net::DNS update breaks qpsmtpd, codes suggested by Ian [SME: 7561]
205    
206     * Wed Apr 24 2013 Daniel Berteaud <daniel@firewall-services.com> 0.84-5.sme
207     - allows the spamassassin plugin to read the size limit from its
208     arguments [SME: 7559]
209    
210     * Fri Feb 1 2013 Shad L. Lords <slords@mail.com> 0.84-4.sme
211     - Update spec so building on rhel6 works [SME: 7263]
212    
213     * Fri May 04 2012 Charlie Brady <charlie_brady@mitel.com> 0.84-3.sme
214     - Set SO_KEEPALIVE option on client socket - to detect dead
215     connections. [SME: 6924]
216    
217     * Sun Nov 14 2010 <slords@mail.com> 0.84-2.sme
218     - Sync with upstream git repo.
219     - Fix require_resolvable_fromhost doesn't work [SME: 6369]
220     - Fix TLS security defaults [SME: 6241]
221     - Fix fatal errors when mail has no headers [SME: 6345]
222    
223     * Wed Apr 14 2010 <slords@mail.com> 0.84-0.1.sme
224     - Update to 0.84
225     - add sme specific patches
226     - Perl module rpms moved to /usr/share/perl5/vendor_perl [SME: 7223]
227    
228     * Wed Mar 3 2010 <filippo.carletti@gmail.com> 0.83-0.7.sme
229     - Remove spool and log dir from package (in smeserver-qpsmtpd)
230     - Don't create smtpd user (unused in sme) [SME: 5815]
231    
232     * Thu Nov 5 2009 <smeserver-contribs@snetram.nl> 0.83-0.6.sme
233     - Apply qpsmtpd git changesets to implement custom SPAM
234     subject prefix [SME: 5031]
235    
236     * Tue Nov 3 2009 <slords@mail.com> 0.83-0.5.sme
237     - Update pre requires so scripts don't fail on install [SME: 5558]
238    
239     * Sat Oct 31 2009 <slords@mail.com> 0.83-0.4.sme
240     - Rebase bad_rcptto patch to remove orig file [SME: 5548]
241     - Change logging in tls init to prevent warnings [SME: 5551]
242    
243     * Thu Oct 29 2009 <slords@mail.com> 0.83-0.3.sme
244     - Only run/initialize plugins once [SME: 5533]
245    
246     * Mon Oct 26 2009 <filippo.carletti@gmail.com> 0.83-0.2.sme
247     - Change spool dir permissions and owner to qpsmtpd:clamav
248     - Change log dir permissions and owner to smelog:smelog
249    
250     * Tue Sep 22 2009 <filippo.carletti@gmail.com> 0.83-0.1.sme
251     - add sme specific patches
252    
253     * Fri Sep 18 2009 <rpmbuild@robinbowes.com> 0.83-0.1
254     - Update to 0.83
255    
256     * Sun Jul 12 2009 <rpmbuild@robinbowes.com> 0.82-0.1
257     - Update to latest release
258     - don't add qpsmtpd to start-up by default
259     - add apache config file to qpsmtpd-apache package
260     - remove all patches
261     - use rpm macros for dirs
262     - use a filelist for main package instead of a long list of files
263    
264     * Tue Jul 15 2008 <rpmbuild@robinbowes.com> 0.43-0.7
265     - Removed SelectServer.pm from .spec file
266    
267     * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.6
268     - moved config files back to /etc/qpsmtpd following some changes
269     to the qpsmtpd src
270    
271     * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.5
272     - moved config files to /etc/qpsmtpd/config
273    
274     * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.4
275     - Moved qpsmtpd-async to /usr/bin
276     - Added qpsmtpd-async man page to async package
277     - Added async smtproute plugin to async package
278    
279     * Wed Mar 12 2008 <rpmbuild@robinbowes.com> 0.43-0.3
280     - Makefile.PL now updated in svn, so remove hack
281    
282     * Wed Mar 12 2008 <rpmbuild@robinbowes.com> 0.43-0.2
283     - Added qpsmtpd-prefork to qpsmtpd RPM, inc. hack to work round
284     deficiency in Makefile.PL
285    
286     * Mon Mar 10 2008 <rpmbuild@robinbowes.com> 0.43-0.1
287     - Updated to work with Makefile to build from svn
288    
289     * Wed Sep 12 2007 <rpmbuild@robinbowes.com> 0.40-2.0
290     - Updated to build trunk-r790
291    
292     * Tue Jun 12 2007 <hjp@hjp.at> 0.40-1.0
293     - updated to 0.40 - no code change.
294    
295     * Thu Jun 07 2007 <hjp@hjp.at> 0.40-0.2
296     - unset environment variables which are normally tainted in perl.
297     - updated to 0.40rc1
298     - added dependency on Net::IP (needed by some plugins)
299    
300     * Sat May 05 2007 <hjp@hjp.at> 0.33-0.5
301     - moved environment cleanup into start() function, otherwise
302     LANG just gets reinitialized.
303    
304     * Sat May 05 2007 <hjp@hjp.at> 0.33-0.4
305     - split qpsmtpd-async into a separate package to avoid dependency
306     on ParaDNS.
307    
308     * Sat May 05 2007 <hjp@hjp.at> 0.33-0.3
309     - also unset LANG, LC_ALL and LC_TIME in startup script to prevent
310     locale specific Received headers (bug reported by Dominik Meyer)
311    
312     * Sun Feb 25 2007 <hjp@hjp.at> 0.33-0.2
313     - 0.3x branch has been merged back to trunk.
314     Got current snapshot (r715) from trunk.
315    
316     * Sun Feb 25 2007 <hjp@hjp.at> 0.33-0.1
317     - Start forkserver via "daemon" (Gavin Carr)
318     - Fixed 'service qpsmtpd-forkserver status' (Gavin Carr)
319     - Changed policy for config files to noreplace (Gavin Carr)
320    
321     * Sun Nov 05 2006 <hjp@hjp.at> 0.33-0.0
322     - Upgraded to current snapshot from 0.3x branch (which should become
323     0.33 soon-ish)
324     - included xinetd-support again.
325    
326     * Sat Mar 18 2006 <hjp@hjp.at> 0.32-2
327     - fix dnsbl to check whether answer fits query.
328     - randomize Net::DNS ids for qpsmtpd-forkserver child processes.
329    
330     * Wed Mar 08 2006 <hjp@hjp.at> 0.32-1
331     - New upstream 0.32
332     - rc-file unsets PERL_UNICODE (bug #38397)
333    
334     * Sat Jan 28 2006 <hjp@hjp.at> 0.31.1-3
335     - Use ${SOURCE*} macros to refer to source files
336     - Avoid invoking rpm and other cleanup in %pre section
337     - Invoke chkconfig in %post.
338     - (Thanks to Josko Plazonic for the reporting these problems and
339     suggesting fixes)
340    
341     * Tue Nov 30 2005 <hjp@hjp.at> 0.31.1-2
342     - Revision 170 of plugins/loggin/file_connection:
343     Return DECLINED from open_log.
344     Open log in write_log if it isn't already open.
345    
346     * Tue Nov 29 2005 <hjp@hjp.at> 0.31.1-1
347     - Commented out queue plugins from sample config
348     - Added dependencies
349     - Create smtpd user if it doesn't exist
350     - Added /var/log/qpsmtpd and /var/spool/qpsmtpd
351    
352     * Sat Nov 26 2005 <hjp@hjp.at>
353     - Added file_connection plugin
354     - Startup file for qpsmtpd-forkserver now uses --detach and assumes that
355     a suitable logging module is configured (file_connection by default)
356    
357     * Wed Nov 23 2005 <hjp@hjp.at>
358     - Forkserver drops privileges before loading plugins now.
359    
360     * Sun Nov 20 2005 <hjp@hjp.at>
361     - New upstream 0.31.1
362    
363     * Mon Nov 14 2005 <hjp@hjp.at> 0.31-8
364     - New upstream 0.31rc3.
365     - pre-connection patch slightly simplified since upstream fixed one of
366     the bugs.
367    
368     * Tue Aug 23 2005 <hjp@hjp.at>
369     - forced INSTALLSITELIB=/usr/lib/perl5/site_perl as suggested by
370     Charlie Brady.
371    
372     * Sat Aug 20 2005 <hjp@hjp.at> 0.31-7
373     - RC2 from upstream.
374     - Removed patches which aren't applied from spec file.
375    
376     * Fri Jul 22 2005 <hjp@hjp.at> 0.31-6
377     - New upstream snapshot from 0.31 branch: svn revision 509.
378    
379     * Sun Jul 17 2005 <hjp@hjp.at> 0.31-5
380     - include only /etc/init.d/qpsmtpd-forkserver, not /etc/init.d
381     it conflicts with old initscripts packages.
382    
383     * Sun Jul 17 2005 <hjp@hjp.at> 0.31-4
384     - removed tabs from forkserver
385    
386     * Sun Jul 17 2005 <hjp@hjp.at> 0.31-3
387     - added startup script for forkserver
388     - changed BuildArchitectures to noarch.
389    
390     * Sat Jul 16 2005 <hjp@hjp.at> 0.31-2
391     - pre-connection hook is now actually called, not just defined.
392    
393     * Fri Jul 15 2005 <hjp@hjp.at> 0.31-1
394     - merged with 0.31. Most of my patches are now in the official release.
395     - merged Gavin's per-user-config patch with my dirs patch, since the
396     latter needs a way to turn off logging.
397     - added /etc/qpsmtpd/plugin_dir to package.
398    
399     * Mon Jun 13 2005 <hjp@hjp.at> 0.29-6
400     - fixed removal of patch backup files
401     - fixed option --pid-file
402    
403     * Sun Jun 12 2005 <hjp@hjp.at>
404     - avoid installing patch backup files
405     - split Apache::Qpsmtpd into separate package to avoid dependency hell.
406     - fixed URL
407     - changed group to Daemons.
408     - Fixed installation for newer versions of ExtUtils::MakeMaker
409    
410     * Wed Jun 1 2005 <hjp@hjp.at> 0.29-5
411     - Really don't reap children in signal handler.
412    
413     * Tue May 31 2005 <hjp@hjp.at> 0.29-4
414     - Return 421 for DENYSOFT_DISCONNECT
415     - Don't reap children in signal handler.
416    
417     * Thu May 19 2005 <hjp@hjp.at> 0.29-3
418     - removed code to accept paths without <>.
419    
420     * Thu May 19 2005 <hjp@hjp.at> 0.29-2
421     - added QPSMTPD_CONFIG env variable and plugin_dir config.
422     - added supplemental groups and support for pid file
423     - added shared_connect hook
424     - changed log level for SMTP dialog from DEBUG to INFO
425    
426     * Thu Apr 21 2005 hjp@hjp.at
427     - added plugins, /etc and docs.
428    
429     * Mon Apr 18 2005 hjp@hjp.at
430     - Specfile autogenerated
431    

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