/[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.6 - (show annotations) (download)
Sun Apr 17 09:27:24 2016 UTC (8 years, 6 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-2_el7_sme
Changes since 1.5: +8 -2 lines
* Sun Apr 17 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-2.sme
- Don't log user credentials except when using the higher log level
  [SME: 9466]

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

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