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

Contents of /rpms/qpsmtpd/sme7/qpsmtpd.spec

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


Revision 1.25 - (show annotations) (download)
Thu Nov 5 18:18:12 2009 UTC (15 years ago) by snetram
Branch: MAIN
CVS Tags: qpsmtpd-0_83-0_6_el4_sme
Changes since 1.24: +10 -2 lines
* Thu Nov 5 2009 <smeserver-contribs@snetram.nl> 0.83-0.6.sme
- Apply qpsmtpd git changesets to implement custom SPAM
  subject prefix [SME: 5567]

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

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