/[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.23 - (hide annotations) (download)
Sun May 8 08:15:16 2016 UTC (8 years, 5 months ago) by vip-ire
Branch: MAIN
Changes since 1.22: +7 -2 lines
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-2.sme
- Backport a fix for karma_tool so it can find its database [SME: 9502]

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

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