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

Contents of /rpms/qpsmtpd/sme10/qpsmtpd.spec

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


Revision 1.13 - (show annotations) (download)
Fri May 6 09:03:09 2016 UTC (8 years, 5 months ago) by vip-ire
Branch: MAIN
Changes since 1.12: +10 -1 lines
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-7.sme
- Backport some minor patches from git head [SME: 9460]

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

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