/[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.7 - (show annotations) (download)
Mon Apr 18 20:15:45 2016 UTC (8 years, 2 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-3_el7_sme
Changes since 1.6: +7 -2 lines
* Mon Apr 18 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-3.sme
- hok uribl in data_post so it has access to the body [SME: 9467]

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

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