/[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.5 - (show annotations) (download)
Sat Apr 16 11:31:50 2016 UTC (8 years, 2 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-1_el7_sme
Changes since 1.4: +3 -12 lines
Re-add some spec changes which weren't in sme9 spec

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

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