/[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.12 - (show annotations) (download)
Fri Apr 22 08:37:10 2016 UTC (8 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-6_el7_sme
Changes since 1.11: +8 -2 lines
* Fri Apr 22 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-6.sme
- badrcptto can now read another file container bad addresses [SME: 9460]
  [SME: 4597]

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

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