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

Contents of /rpms/qpsmtpd/sme8/qpsmtpd.spec

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


Revision 1.27 - (show annotations) (download)
Wed Apr 14 15:29:58 2010 UTC (14 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: qpsmtpd-0_84-0_1_el5_sme
Changes since 1.26: +23 -26 lines
* Wed Apr 14 2010 <slords@mail.com> 0.84-0.1.sme
- Update to 0.84
- add sme specific patches

1 # $Id: qpsmtpd.spec,v 1.26 2010/03/05 20:07:37 slords Exp $
2
3 Name: qpsmtpd
4 Version: 0.84
5 Release: 0.1%{?dist}
6 Summary: qpsmtpd + qpsmtpd-apache + qpsmtpd-async
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 BuildArch: noarch
13 Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP)
14 Requires(pre): coreutils, shadow-utils, perl
15
16 Source0: %{name}-%{version}.tar.gz
17 Source1: qpsmtpd-forkserver.rc
18 Source2: qpsmtpd-forkserver.sysconfig
19 Source3: qpsmtpd-plugin-file_connection
20 Source4: qpsmtpd-xinetd
21 Source5: in.qpsmtpd
22 Source6: qpsmtpd.conf
23 Source7: README.selinux
24
25 Patch10: qpsmtpd-0.83-loginit.patch
26
27 Patch100: qpsmtpd-0.40-badrcptto_allowrelay.patch
28 Patch101: qpsmtpd-0.83-peer_hooks.patch
29 Patch102: qpsmtpd-0.83-clamav-headers.patch
30
31 %description
32 qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core
33 SMTP features, all functionality is implemented in small "extension
34 plugins" using the easy to use object oriented plugin API.
35
36 qpsmtpd was originally written as a drop-in qmail-smtpd replacement, but
37 now it also includes a smtp forward and a postfix "backend".
38
39 %package apache
40 Requires: perl(mod_perl2)
41 Summary: mod_perl-2 connection handler for qpsmtpd
42 Group: System Environment/Daemons
43
44 %package async
45 Summary: qpsmtpd using async I/O in a single process
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 %description async
54 This package contains the Qpsmtpd::PollServer module, which allows
55 qpsmtd to handle many connections in a single process and the
56 qpsmpd-async which uses it.
57
58 %prep
59 %setup -q
60 %patch10 -p1
61 %patch100 -p1
62 %patch101 -p1
63 %patch102 -p1
64
65
66 %build
67 CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLSITELIB=%{_prefix}/lib/perl5/site_perl
68 make
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72 %install
73
74 rm -rf $RPM_BUILD_ROOT
75 eval `perl '-V:installarchlib'`
76 mkdir -p $RPM_BUILD_ROOT/$installarchlib
77 if grep -q DESTDIR Makefile
78 then
79 make DESTDIR=$RPM_BUILD_ROOT
80 find blib/lib -name '*.pm.*' -exec rm -f {} \;
81 make DESTDIR=$RPM_BUILD_ROOT install
82
83 else
84 make PREFIX=$RPM_BUILD_ROOT/usr
85 find blib/lib -name '*.pm.*' -exec rm -f {} \;
86 make PREFIX=$RPM_BUILD_ROOT/usr install
87 fi
88 mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}
89 rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/plugins/*.*
90 cp -r plugins ${RPM_BUILD_ROOT}%{_datadir}/%{name}/plugins
91 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}
92 rm -f ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/*.*
93 cp -r config.sample/* ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/
94 echo %{_datadir}/%{name}/plugins > ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/plugin_dirs
95 echo %{_localstatedir}/spool/qpsmtpd > ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/spool_dir
96 echo logging/file_connection loglevel LOGINFO %{_localstatedir}/log/qpsmtpd/%Y-%m-%d > ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/logging
97 mkdir -p ${RPM_BUILD_ROOT}%{_initrddir}
98 cp %{SOURCE1} ${RPM_BUILD_ROOT}%{_initrddir}/qpsmtpd-forkserver
99 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
100 cp %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/qpsmtpd-forkserver
101 cp %{SOURCE3} ${RPM_BUILD_ROOT}%{_datadir}/%{name}/plugins/logging/file_connection
102 mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/spool/qpsmtpd
103 mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/log/qpsmtpd
104 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d
105 cp %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/smtp
106 mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
107 cp %{SOURCE5} ${RPM_BUILD_ROOT}%{_sbindir}/in.smtp
108 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
109 cp %{SOURCE6} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
110 mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-apache-%{version}
111 cp %{SOURCE7} $RPM_BUILD_ROOT%{_docdir}/%{name}-apache-%{version}
112
113 [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
114
115 find ${RPM_BUILD_ROOT}%{_prefix} \( -name perllocal.pod -o -name .packlist \) -exec rm {} \;
116 find ${RPM_BUILD_ROOT}%{_prefix} -type f -print | \
117 sed "s@^$RPM_BUILD_ROOT@@g" | \
118 grep -v [Aa]sync | \
119 grep -v packaging | \
120 grep -v README.selinux | \
121 grep -v /Apache | \
122 grep -v /Danga | \
123 grep -v Qpsmtpd/ConfigServer.pm | \
124 grep -v Qpsmtpd/PollServer.pm > %{name}-%{version}-%{release}-filelist
125 if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then
126 echo "ERROR: EMPTY FILE LIST"
127 exit -1
128 fi
129
130 %files -f %{name}-%{version}-%{release}-filelist
131 %defattr(-,root,root)
132 %doc CREDITS Changes LICENSE README README.plugins STATUS
133 %{_initrddir}/qpsmtpd-forkserver
134 %config(noreplace) %{_sysconfdir}/qpsmtpd/*
135 %config(noreplace) %{_sysconfdir}/xinetd.d/smtp
136 %config(noreplace) %{_sysconfdir}/sysconfig/qpsmtpd-forkserver
137
138 %files apache
139 %defattr(-,root,root)
140 %{_prefix}/lib/perl5/site_perl/Apache/Qpsmtpd.pm
141 %{_mandir}/man3/Apache::Qpsmtpd.3pm.gz
142 %config(noreplace) %{_sysconfdir}/httpd/conf.d/*
143 %doc %{_docdir}/%{name}-apache-%{version}/README.selinux
144
145 %files async
146 %defattr(-,root,root)
147 %{_bindir}/qpsmtpd-async
148 %{_prefix}/lib/perl5/site_perl/Danga/Client.pm
149 %{_prefix}/lib/perl5/site_perl/Danga/TimeoutSocket.pm
150 %{_prefix}/lib/perl5/site_perl/Qpsmtpd/ConfigServer.pm
151 %{_prefix}/lib/perl5/site_perl/Qpsmtpd/Plugin/Async/DNSBLBase.pm
152 %{_prefix}/lib/perl5/site_perl/Qpsmtpd/PollServer.pm
153 %{_mandir}/man1/qpsmtpd-async.1.gz
154 %{_datadir}/%{name}/plugins/async/*
155
156 %pre
157
158 %changelog
159 * Wed Apr 14 2010 <slords@mail.com> 0.84-0.1.sme
160 - Update to 0.84
161 - add sme specific patches
162
163 * Wed Mar 3 2010 <filippo.carletti@gmail.com> 0.83-0.7.sme
164 - Remove spool and log dir from package (in smeserver-qpsmtpd)
165 - Don't create smtpd user (unused in sme) [SME: 5815]
166
167 * Thu Nov 5 2009 <smeserver-contribs@snetram.nl> 0.83-0.6.sme
168 - Apply qpsmtpd git changesets to implement custom SPAM
169 subject prefix [SME: 5031]
170
171 * Tue Nov 3 2009 <slords@mail.com> 0.83-0.5.sme
172 - Update pre requires so scripts don't fail on install [SME: 5558]
173
174 * Sat Oct 31 2009 <slords@mail.com> 0.83-0.4.sme
175 - Rebase bad_rcptto patch to remove orig file [SME: 5548]
176 - Change logging in tls init to prevent warnings [SME: 5551]
177
178 * Thu Oct 29 2009 <slords@mail.com> 0.83-0.3.sme
179 - Only run/initialize plugins once [SME: 5533]
180
181 * Mon Oct 26 2009 <filippo.carletti@gmail.com> 0.83-0.2.sme
182 - Change spool dir permissions and owner to qpsmtpd:clamav
183 - Change log dir permissions and owner to smelog:smelog
184
185 * Tue Sep 22 2009 <filippo.carletti@gmail.com> 0.83-0.1.sme
186 - add sme specific patches
187
188 * Fri Sep 18 2009 <rpmbuild@robinbowes.com> 0.83-0.1
189 - Update to 0.83
190
191 * Sun Jul 12 2009 <rpmbuild@robinbowes.com> 0.82-0.1
192 - Update to latest release
193 - don't add qpsmtpd to start-up by default
194 - add apache config file to qpsmtpd-apache package
195 - remove all patches
196 - use rpm macros for dirs
197 - use a filelist for main package instead of a long list of files
198
199 * Tue Jul 15 2008 <rpmbuild@robinbowes.com> 0.43-0.7
200 - Removed SelectServer.pm from .spec file
201
202 * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.6
203 - moved config files back to /etc/qpsmtpd following some changes
204 to the qpsmtpd src
205
206 * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.5
207 - moved config files to /etc/qpsmtpd/config
208
209 * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.4
210 - Moved qpsmtpd-async to /usr/bin
211 - Added qpsmtpd-async man page to async package
212 - Added async smtproute plugin to async package
213
214 * Wed Mar 12 2008 <rpmbuild@robinbowes.com> 0.43-0.3
215 - Makefile.PL now updated in svn, so remove hack
216
217 * Wed Mar 12 2008 <rpmbuild@robinbowes.com> 0.43-0.2
218 - Added qpsmtpd-prefork to qpsmtpd RPM, inc. hack to work round
219 deficiency in Makefile.PL
220
221 * Mon Mar 10 2008 <rpmbuild@robinbowes.com> 0.43-0.1
222 - Updated to work with Makefile to build from svn
223
224 * Wed Sep 12 2007 <rpmbuild@robinbowes.com> 0.40-2.0
225 - Updated to build trunk-r790
226
227 * Tue Jun 12 2007 <hjp@hjp.at> 0.40-1.0
228 - updated to 0.40 - no code change.
229
230 * Thu Jun 07 2007 <hjp@hjp.at> 0.40-0.2
231 - unset environment variables which are normally tainted in perl.
232 - updated to 0.40rc1
233 - added dependency on Net::IP (needed by some plugins)
234
235 * Sat May 05 2007 <hjp@hjp.at> 0.33-0.5
236 - moved environment cleanup into start() function, otherwise
237 LANG just gets reinitialized.
238
239 * Sat May 05 2007 <hjp@hjp.at> 0.33-0.4
240 - split qpsmtpd-async into a separate package to avoid dependency
241 on ParaDNS.
242
243 * Sat May 05 2007 <hjp@hjp.at> 0.33-0.3
244 - also unset LANG, LC_ALL and LC_TIME in startup script to prevent
245 locale specific Received headers (bug reported by Dominik Meyer)
246
247 * Sun Feb 25 2007 <hjp@hjp.at> 0.33-0.2
248 - 0.3x branch has been merged back to trunk.
249 Got current snapshot (r715) from trunk.
250
251 * Sun Feb 25 2007 <hjp@hjp.at> 0.33-0.1
252 - Start forkserver via "daemon" (Gavin Carr)
253 - Fixed 'service qpsmtpd-forkserver status' (Gavin Carr)
254 - Changed policy for config files to noreplace (Gavin Carr)
255
256 * Sun Nov 05 2006 <hjp@hjp.at> 0.33-0.0
257 - Upgraded to current snapshot from 0.3x branch (which should become
258 0.33 soon-ish)
259 - included xinetd-support again.
260
261 * Sat Mar 18 2006 <hjp@hjp.at> 0.32-2
262 - fix dnsbl to check whether answer fits query.
263 - randomize Net::DNS ids for qpsmtpd-forkserver child processes.
264
265 * Wed Mar 08 2006 <hjp@hjp.at> 0.32-1
266 - New upstream 0.32
267 - rc-file unsets PERL_UNICODE (bug #38397)
268
269 * Sat Jan 28 2006 <hjp@hjp.at> 0.31.1-3
270 - Use ${SOURCE*} macros to refer to source files
271 - Avoid invoking rpm and other cleanup in %pre section
272 - Invoke chkconfig in %post.
273 - (Thanks to Josko Plazonic for the reporting these problems and
274 suggesting fixes)
275
276 * Tue Nov 30 2005 <hjp@hjp.at> 0.31.1-2
277 - Revision 170 of plugins/loggin/file_connection:
278 Return DECLINED from open_log.
279 Open log in write_log if it isn't already open.
280
281 * Tue Nov 29 2005 <hjp@hjp.at> 0.31.1-1
282 - Commented out queue plugins from sample config
283 - Added dependencies
284 - Create smtpd user if it doesn't exist
285 - Added /var/log/qpsmtpd and /var/spool/qpsmtpd
286
287 * Sat Nov 26 2005 <hjp@hjp.at>
288 - Added file_connection plugin
289 - Startup file for qpsmtpd-forkserver now uses --detach and assumes that
290 a suitable logging module is configured (file_connection by default)
291
292 * Wed Nov 23 2005 <hjp@hjp.at>
293 - Forkserver drops privileges before loading plugins now.
294
295 * Sun Nov 20 2005 <hjp@hjp.at>
296 - New upstream 0.31.1
297
298 * Mon Nov 14 2005 <hjp@hjp.at> 0.31-8
299 - New upstream 0.31rc3.
300 - pre-connection patch slightly simplified since upstream fixed one of
301 the bugs.
302
303 * Tue Aug 23 2005 <hjp@hjp.at>
304 - forced INSTALLSITELIB=/usr/lib/perl5/site_perl as suggested by
305 Charlie Brady.
306
307 * Sat Aug 20 2005 <hjp@hjp.at> 0.31-7
308 - RC2 from upstream.
309 - Removed patches which aren't applied from spec file.
310
311 * Fri Jul 22 2005 <hjp@hjp.at> 0.31-6
312 - New upstream snapshot from 0.31 branch: svn revision 509.
313
314 * Sun Jul 17 2005 <hjp@hjp.at> 0.31-5
315 - include only /etc/init.d/qpsmtpd-forkserver, not /etc/init.d
316 it conflicts with old initscripts packages.
317
318 * Sun Jul 17 2005 <hjp@hjp.at> 0.31-4
319 - removed tabs from forkserver
320
321 * Sun Jul 17 2005 <hjp@hjp.at> 0.31-3
322 - added startup script for forkserver
323 - changed BuildArchitectures to noarch.
324
325 * Sat Jul 16 2005 <hjp@hjp.at> 0.31-2
326 - pre-connection hook is now actually called, not just defined.
327
328 * Fri Jul 15 2005 <hjp@hjp.at> 0.31-1
329 - merged with 0.31. Most of my patches are now in the official release.
330 - merged Gavin's per-user-config patch with my dirs patch, since the
331 latter needs a way to turn off logging.
332 - added /etc/qpsmtpd/plugin_dir to package.
333
334 * Mon Jun 13 2005 <hjp@hjp.at> 0.29-6
335 - fixed removal of patch backup files
336 - fixed option --pid-file
337
338 * Sun Jun 12 2005 <hjp@hjp.at>
339 - avoid installing patch backup files
340 - split Apache::Qpsmtpd into separate package to avoid dependency hell.
341 - fixed URL
342 - changed group to Daemons.
343 - Fixed installation for newer versions of ExtUtils::MakeMaker
344
345 * Wed Jun 1 2005 <hjp@hjp.at> 0.29-5
346 - Really don't reap children in signal handler.
347
348 * Tue May 31 2005 <hjp@hjp.at> 0.29-4
349 - Return 421 for DENYSOFT_DISCONNECT
350 - Don't reap children in signal handler.
351
352 * Thu May 19 2005 <hjp@hjp.at> 0.29-3
353 - removed code to accept paths without <>.
354
355 * Thu May 19 2005 <hjp@hjp.at> 0.29-2
356 - added QPSMTPD_CONFIG env variable and plugin_dir config.
357 - added supplemental groups and support for pid file
358 - added shared_connect hook
359 - changed log level for SMTP dialog from DEBUG to INFO
360
361 * Thu Apr 21 2005 hjp@hjp.at
362 - added plugins, /etc and docs.
363
364 * Mon Apr 18 2005 hjp@hjp.at
365 - Specfile autogenerated
366

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