/[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.12 - (show annotations) (download)
Wed Oct 17 13:50:23 2007 UTC (17 years ago) by slords
Branch: MAIN
CVS Tags: qpsmtpd-0_40-1_7_el4_sme
Changes since 1.11: +6 -1 lines
Updates

1 Name: qpsmtpd
2 Version: 0.40
3 Release: 1.7%{?dist}
4 %define orig_version 0.40
5 Summary: qpsmtpd
6 License: distributable
7 Group: System Environment/Daemons
8 URL: http://smtpd.develooper.com/
9 BuildRoot: %{_tmppath}/%{name}-root
10 BuildRequires: perl >= 0:5.00503
11 BuildArchitectures: noarch
12 Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP)
13
14 Source0: qpsmtpd-%{orig_version}.tar.gz
15 Source1: qpsmtpd-forkserver.rc
16 Source2: qpsmtpd-forkserver.sysconfig
17 Source3: qpsmtpd-plugin-file_connection
18 Source4: qpsmtpd-xinetd
19 Source5: in.qpsmtpd
20
21 Patch1: qpsmtpd-0.31-config.patch
22 Patch2: qpsmtpd-0.33-xinetd.patch
23 Patch3: qpsmtpd-0.33-af_inet6.patch
24 Patch4: qpsmtpd-0.31.1-queue.patch
25 Patch5: qpsmtpd-0.33-smtp-loginfo.patch
26 Patch6: qpsmtpd-0.33-hook-logdebug.patch
27 Patch7: qpsmtpd-0.32-dnsbl-checkanswer.patch
28 Patch8: qpsmtpd-0.32-dns-random-id.patch
29 Patch100: qpsmtpd-0.40-badhelo_disconnect.patch
30 Patch101: qpsmtpd-0.40-badrcptto_allowrelay.patch
31 Patch102: qpsmtpd-0.40-clamav_fix.patch
32 Patch103: qpsmtpd-0.40-peer_hooks.patch
33 Patch104: qpsmtpd-0.40-clamd_conf.patch
34 Patch105: qpsmtpd-0.40-denysoft.patch
35 Patch106: qpsmtpd-0.40-clamav-headers.patch
36 Patch107: qpsmtpd-0.40-rhsbl_disconnect.patch
37
38 %description
39 qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core
40 SMTP features, all functionality is implemented in small "extension
41 plugins" using the easy to use object oriented plugin API.
42
43 qpsmtpd was originally written as a drop-in qmail-smtpd replacement, but
44 now it also includes a smtp forward and a postfix "backend".
45
46 %package apache
47 Summary: mod_perl-2 connection handler for qpsmtpd
48 Group: System Environment/Daemons
49
50 %package async
51 Summary: qpsmtpd using async I/O in a single process
52 Group: System Environment/Daemons
53
54 %description apache
55
56 This module implements a mod_perl/apache 2.0 connection handler
57 that turns Apache into an SMTP server using Qpsmtpd.
58
59 %description async
60 This package contains the Qpsmtpd::PollServer module, which allows
61 qpsmtd to handle many connections in a single process and the
62 qpsmpd-async which uses it.
63
64 %prep
65 %setup -q -n qpsmtpd-%{orig_version}
66 # XXX - doesn't apply cleanly any more but may still be needed for empty
67 # configs.
68 #%patch1 -p0 -b .config
69 # Merged into upstream:
70 #%patch2 -p0 -b .xinetd
71 #%patch3 -p0 -b .af_inet6
72 %patch4 -p0 -b .queue
73 #%patch5 -p0 -b .smtp-loginfo
74 #%patch6 -p0 -b .hook-logdebug
75 #%patch7 -p0 -b .dnsbl-checkanswer
76 #%patch8 -p0 -b .dns-random-id
77 %patch100 -p1
78 %patch101 -p1
79 #%patch102 -p1
80 %patch103 -p1
81 %patch104 -p1
82 %patch105 -p1
83 %patch106 -p1
84 %patch107 -p1
85
86 %build
87 CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLSITELIB=/usr/lib/perl5/site_perl
88 make
89
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93 %install
94
95 rm -rf $RPM_BUILD_ROOT
96 eval `perl '-V:installarchlib'`
97 mkdir -p $RPM_BUILD_ROOT/$installarchlib
98 if grep -q DESTDIR Makefile
99 then
100 make DESTDIR=$RPM_BUILD_ROOT
101 find blib/lib -name '*.pm.*' -exec rm -f {} \;
102 make DESTDIR=$RPM_BUILD_ROOT install
103
104 else
105 make PREFIX=$RPM_BUILD_ROOT/usr
106 find blib/lib -name '*.pm.*' -exec rm -f {} \;
107 make PREFIX=$RPM_BUILD_ROOT/usr install
108 fi
109 mkdir -p $RPM_BUILD_ROOT/usr/sbin
110 cp qpsmtpd-async $RPM_BUILD_ROOT/usr/sbin
111 mkdir -p $RPM_BUILD_ROOT/usr/share/qpsmtpd
112 cp -r plugins $RPM_BUILD_ROOT/usr/share/qpsmtpd/plugins
113 rm -f $RPM_BUILD_ROOT/usr/share/qpsmtpd/plugins/*.*
114 mkdir -p $RPM_BUILD_ROOT/etc
115 cp -r config.sample $RPM_BUILD_ROOT/etc/qpsmtpd
116 rm -f $RPM_BUILD_ROOT/etc/qpsmtpd/*.*
117 echo /usr/share/qpsmtpd/plugins > $RPM_BUILD_ROOT/etc/qpsmtpd/plugin_dirs
118 echo /var/spool/qpsmtpd > $RPM_BUILD_ROOT/etc/qpsmtpd/spool_dir
119 echo logging/file_connection loglevel LOGINFO /var/log/qpsmtpd/%Y-%m-%d > $RPM_BUILD_ROOT/etc/qpsmtpd/logging
120 mkdir -p $RPM_BUILD_ROOT/etc/init.d/
121 cp %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d/qpsmtpd-forkserver
122 mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/
123 cp %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/qpsmtpd-forkserver
124 cp %{SOURCE3} $RPM_BUILD_ROOT/usr/share/qpsmtpd/plugins/logging/file_connection
125 mkdir -p $RPM_BUILD_ROOT/var/spool/qpsmtpd
126 mkdir -p $RPM_BUILD_ROOT/var/log/qpsmtpd
127 mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
128 cp %{SOURCE4} $RPM_BUILD_ROOT/etc/xinetd.d/smtp
129 mkdir -p $RPM_BUILD_ROOT/usr/sbin
130 cp %{SOURCE5} $RPM_BUILD_ROOT/usr/sbin/in.smtp
131
132
133 [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
134
135 find $RPM_BUILD_ROOT/usr \( -name perllocal.pod -o -name .packlist \) -exec rm {} \;
136 find $RPM_BUILD_ROOT/usr -type f -print | \
137 sed "s@^$RPM_BUILD_ROOT@@g" | \
138 grep -v /Apache |
139 grep -v /Danga |
140 grep -v Qpsmtpd/ConfigServer.pm |
141 grep -v Qpsmtpd/PollServer.pm > qpsmtpd-%{version}-filelist
142 if [ "$(cat qpsmtpd-%{version}-filelist)X" = "X" ] ; then
143 echo "ERROR: EMPTY FILE LIST"
144 exit -1
145 fi
146 find $RPM_BUILD_ROOT/usr -type f -path '*/Apache*' -print | \
147 sed "s@^$RPM_BUILD_ROOT@@g" > qpsmtpd-apache-%{version}-filelist
148
149 %files
150 %defattr(-,root,root)
151 /usr/sbin/in.smtp
152 /usr/bin/qpsmtpd
153 /usr/bin/qpsmtpd-forkserver
154 /usr/lib/perl5/site_perl/Qpsmtpd.pm
155 /usr/lib/perl5/site_perl/Qpsmtpd/Plugin.pm
156 /usr/lib/perl5/site_perl/Qpsmtpd/Constants.pm
157 /usr/lib/perl5/site_perl/Qpsmtpd/Command.pm
158 /usr/lib/perl5/site_perl/Qpsmtpd/TcpServer.pm
159 /usr/lib/perl5/site_perl/Qpsmtpd/Connection.pm
160 /usr/lib/perl5/site_perl/Qpsmtpd/Transaction.pm
161 /usr/lib/perl5/site_perl/Qpsmtpd/Postfix/Constants.pm
162 /usr/lib/perl5/site_perl/Qpsmtpd/Postfix/pf2qp.pl
163 /usr/lib/perl5/site_perl/Qpsmtpd/TcpServer/Prefork.pm
164 /usr/lib/perl5/site_perl/Qpsmtpd/Auth.pm
165 /usr/lib/perl5/site_perl/Qpsmtpd/Utils.pm
166 /usr/lib/perl5/site_perl/Qpsmtpd/SelectServer.pm
167 /usr/lib/perl5/site_perl/Qpsmtpd/DSN.pm
168 /usr/lib/perl5/site_perl/Qpsmtpd/SMTP/Prefork.pm
169 /usr/lib/perl5/site_perl/Qpsmtpd/SMTP.pm
170 /usr/lib/perl5/site_perl/Qpsmtpd/Address.pm
171 /usr/lib/perl5/site_perl/Qpsmtpd/Postfix.pm
172 /usr/share/man/man3/Qpsmtpd::Command.3pm.gz
173 /usr/share/man/man3/Qpsmtpd.3pm.gz
174 /usr/share/man/man3/Qpsmtpd::Transaction.3pm.gz
175 /usr/share/man/man3/Qpsmtpd::Constants.3pm.gz
176 /usr/share/man/man3/Qpsmtpd::ConfigServer.3pm.gz
177 /usr/share/man/man3/Qpsmtpd::DSN.3pm.gz
178 /usr/share/man/man3/Qpsmtpd::Postfix.3pm.gz
179 /usr/share/man/man3/Qpsmtpd::Address.3pm.gz
180 /usr/share/man/man3/Qpsmtpd::Connection.3pm.gz
181 /usr/share/qpsmtpd/plugins/check_loop
182 /usr/share/qpsmtpd/plugins/check_relay
183 /usr/share/qpsmtpd/plugins/sender_permitted_from
184 /usr/share/qpsmtpd/plugins/count_unrecognized_commands
185 /usr/share/qpsmtpd/plugins/spamassassin
186 /usr/share/qpsmtpd/plugins/check_badrcptto
187 /usr/share/qpsmtpd/plugins/rcpt_ok
188 /usr/share/qpsmtpd/plugins/domainkeys
189 /usr/share/qpsmtpd/plugins/virus/klez_filter
190 /usr/share/qpsmtpd/plugins/virus/check_for_hi_virus
191 /usr/share/qpsmtpd/plugins/virus/uvscan
192 /usr/share/qpsmtpd/plugins/virus/kavscanner
193 /usr/share/qpsmtpd/plugins/virus/hbedv
194 /usr/share/qpsmtpd/plugins/virus/clamav
195 /usr/share/qpsmtpd/plugins/virus/clamdscan
196 /usr/share/qpsmtpd/plugins/virus/aveclient
197 /usr/share/qpsmtpd/plugins/virus/sophie
198 /usr/share/qpsmtpd/plugins/virus/bitdefender
199 /usr/share/qpsmtpd/plugins/queue/smtp-forward
200 /usr/share/qpsmtpd/plugins/queue/qmail-queue
201 /usr/share/qpsmtpd/plugins/queue/maildir
202 /usr/share/qpsmtpd/plugins/queue/exim-bsmtp
203 /usr/share/qpsmtpd/plugins/queue/postfix-queue
204 /usr/share/qpsmtpd/plugins/http_config
205 /usr/share/qpsmtpd/plugins/quit_fortune
206 /usr/share/qpsmtpd/plugins/milter
207 /usr/share/qpsmtpd/plugins/auth/authnull
208 /usr/share/qpsmtpd/plugins/auth/authdeny
209 /usr/share/qpsmtpd/plugins/auth/auth_flat_file
210 /usr/share/qpsmtpd/plugins/auth/auth_cvm_unix_local
211 /usr/share/qpsmtpd/plugins/auth/auth_vpopmail_sql
212 /usr/share/qpsmtpd/plugins/auth/auth_ldap_bind
213 /usr/share/qpsmtpd/plugins/tls_cert
214 /usr/share/qpsmtpd/plugins/logging/warn
215 /usr/share/qpsmtpd/plugins/logging/syslog
216 /usr/share/qpsmtpd/plugins/logging/adaptive
217 /usr/share/qpsmtpd/plugins/logging/file
218 /usr/share/qpsmtpd/plugins/logging/devnull
219 /usr/share/qpsmtpd/plugins/logging/file_connection
220 /usr/share/qpsmtpd/plugins/content_log
221 /usr/share/qpsmtpd/plugins/tls
222 /usr/share/qpsmtpd/plugins/check_spamhelo
223 /usr/share/qpsmtpd/plugins/check_norelay
224 /usr/share/qpsmtpd/plugins/check_earlytalker
225 /usr/share/qpsmtpd/plugins/hosts_allow
226 /usr/share/qpsmtpd/plugins/check_badmailfrom
227 /usr/share/qpsmtpd/plugins/dns_whitelist_soft
228 /usr/share/qpsmtpd/plugins/dnsbl
229 /usr/share/qpsmtpd/plugins/ident/geoip
230 /usr/share/qpsmtpd/plugins/ident/p0f
231 /usr/share/qpsmtpd/plugins/relay_only
232 /usr/share/qpsmtpd/plugins/parse_addr_withhelo
233 /usr/share/qpsmtpd/plugins/require_resolvable_fromhost
234 /usr/share/qpsmtpd/plugins/rhsbl
235 /usr/share/qpsmtpd/plugins/dont_require_anglebrackets
236 /usr/share/qpsmtpd/plugins/check_badrcptto_patterns
237 /usr/share/qpsmtpd/plugins/greylisting
238 /usr/share/qpsmtpd/plugins/check_basicheaders
239 /usr/share/qpsmtpd/plugins/check_badmailfromto
240 %doc CREDITS Changes LICENSE README README.plugins STATUS
241 /etc/init.d/qpsmtpd-forkserver
242 %config(noreplace) /etc/qpsmtpd/*
243 %config(noreplace) /etc/xinetd.d/smtp
244 %config(noreplace) /etc/sysconfig/qpsmtpd-forkserver
245
246 %files apache -f qpsmtpd-apache-%{version}-filelist
247 %defattr(-,root,root)
248
249 %files async
250 %defattr(-,root,root)
251 /usr/sbin/qpsmtpd-async
252 /usr/lib/perl5/site_perl/Danga/Client.pm
253 /usr/lib/perl5/site_perl/Danga/TimeoutSocket.pm
254 /usr/lib/perl5/site_perl/Qpsmtpd/ConfigServer.pm
255 /usr/lib/perl5/site_perl/Qpsmtpd/PollServer.pm
256 /usr/share/qpsmtpd/plugins/async/check_earlytalker
257 /usr/share/qpsmtpd/plugins/async/dnsbl
258 /usr/share/qpsmtpd/plugins/async/require_resolvable_fromhost
259
260 %changelog
261 * Tue Oct 16 2007 Charlie Brady <charlie_brady@mitel.com> 0.40-1.7.sme
262 - Add support for disconnect option in rhsbl plugin [SME: 3390]
263
264 * Sat Jun 30 2007 Shad L. Lords <slords@mail.com> 0.40-1.6.sme
265 - Move clamav headers to top to not mess up message signing.
266
267 * Thu Jun 28 2007 Gavin Weight <gweight@gmail.com> 0.40-1.5.sme
268 - Remove the scriptlets within the .spec file. [SME: 3112]
269
270 * Mon Jun 25 2007 Shad L. Lords <slords@mail.com> 0.40-1.4.sme
271 - Deny soft if clamscan fails [SME: 3098]
272
273 * Fri Jun 15 2007 Shad L. Lords <slords@mail.com> 0.40-1.3.sme
274 - Fix clamd.conf path for clamav plugin [SME: 3067]
275
276 * Thu Jun 14 2007 Shad L. Lords <slords@mail.com> 0.40-1.2.sme
277 - Fix clamav patch so service starts [SME: 3065]
278
279 * Thu Jun 14 2007 Shad L. Lords <slords@mail.com> 0.40-1.1.sme
280 - Update for smeserver [SME: 3065]
281
282 * Tue Jun 12 2007 <hjp@hjp.at> 0.40-1.0
283 - updated to 0.40 - no code change.
284
285 * Thu Jun 07 2007 <hjp@hjp.at> 0.40-0.2
286 - unset environment variables which are normally tainted in perl.
287 - updated to 0.40rc1
288 - added dependency on Net::IP (needed by some plugins)
289
290 * Sat May 05 2007 <hjp@hjp.at> 0.33-0.5
291 - moved environment cleanup into start() function, otherwise
292 LANG just gets reinitialized.
293
294 * Sat May 05 2007 <hjp@hjp.at> 0.33-0.4
295 - split qpsmtpd-async into a separate package to avoid dependency
296 on ParaDNS.
297
298 * Sat May 05 2007 <hjp@hjp.at> 0.33-0.3
299 - also unset LANG, LC_ALL and LC_TIME in startup script to prevent
300 locale specific Received headers (bug reported by Dominik Meyer)
301
302 * Sun Feb 25 2007 <hjp@hjp.at> 0.33-0.2
303 - 0.3x branch has been merged back to trunk.
304 Got current snapshot (r715) from trunk.
305
306 * Sun Feb 25 2007 <hjp@hjp.at> 0.33-0.1
307 - Start forkserver via "daemon" (Gavin Carr)
308 - Fixed 'service qpsmtpd-forkserver status' (Gavin Carr)
309 - Changed policy for config files to noreplace (Gavin Carr)
310
311 * Sun Nov 05 2006 <hjp@hjp.at> 0.33-0.0
312 - Upgraded to current snapshot from 0.3x branch (which should become
313 0.33 soon-ish)
314 - included xinetd-support again.
315
316 * Sat Mar 18 2006 <hjp@hjp.at> 0.32-2
317 - fix dnsbl to check whether answer fits query.
318 - randomize Net::DNS ids for qpsmtpd-forkserver child processes.
319
320 * Wed Mar 08 2006 <hjp@hjp.at> 0.32-1
321 - New upstream 0.32
322 - rc-file unsets PERL_UNICODE (bug #38397)
323
324 * Sat Jan 28 2006 <hjp@hjp.at> 0.31.1-3
325 - Use ${SOURCE*} macros to refer to source files
326 - Avoid invoking rpm and other cleanup in %pre section
327 - Invoke chkconfig in %post.
328 - (Thanks to Josko Plazonic for the reporting these problems and
329 suggesting fixes)
330
331 * Tue Nov 30 2005 <hjp@hjp.at> 0.31.1-2
332 - Revision 170 of plugins/loggin/file_connection:
333 Return DECLINED from open_log.
334 Open log in write_log if it isn't already open.
335
336 * Tue Nov 29 2005 <hjp@hjp.at> 0.31.1-1
337 - Commented out queue plugins from sample config
338 - Added dependencies
339 - Create smtpd user if it doesn't exist
340 - Added /var/log/qpsmtpd and /var/spool/qpsmtpd
341
342 * Sat Nov 26 2005 <hjp@hjp.at>
343 - Added file_connection plugin
344 - Startup file for qpsmtpd-forkserver now uses --detach and assumes that
345 a suitable logging module is configured (file_connection by default)
346
347 * Wed Nov 23 2005 <hjp@hjp.at>
348 - Forkserver drops privileges before loading plugins now.
349
350 * Sun Nov 20 2005 <hjp@hjp.at>
351 - New upstream 0.31.1
352
353 * Mon Nov 14 2005 <hjp@hjp.at> 0.31-8
354 - New upstream 0.31rc3.
355 - pre-connection patch slightly simplified since upstream fixed one of
356 the bugs.
357
358 * Tue Aug 23 2005 <hjp@hjp.at>
359 - forced INSTALLSITELIB=/usr/lib/perl5/site_perl as suggested by
360 Charlie Brady.
361
362 * Sat Aug 20 2005 <hjp@hjp.at> 0.31-7
363 - RC2 from upstream.
364 - Removed patches which aren't applied from spec file.
365
366 * Fri Jul 22 2005 <hjp@hjp.at> 0.31-6
367 - New upstream snapshot from 0.31 branch: svn revision 509.
368
369 * Sun Jul 17 2005 <hjp@hjp.at> 0.31-5
370 - include only /etc/init.d/qpsmtpd-forkserver, not /etc/init.d
371 it conflicts with old initscripts packages.
372
373 * Sun Jul 17 2005 <hjp@hjp.at> 0.31-4
374 - removed tabs from forkserver
375
376 * Sun Jul 17 2005 <hjp@hjp.at> 0.31-3
377 - added startup script for forkserver
378 - changed BuildArchitectures to noarch.
379
380 * Sat Jul 16 2005 <hjp@hjp.at> 0.31-2
381 - pre-connection hook is now actually called, not just defined.
382
383 * Fri Jul 15 2005 <hjp@hjp.at> 0.31-1
384 - merged with 0.31. Most of my patches are now in the official release.
385 - merged Gavin's per-user-config patch with my dirs patch, since the
386 latter needs a way to turn off logging.
387 - added /etc/qpsmtpd/plugin_dir to package.
388
389 * Mon Jun 13 2005 <hjp@hjp.at> 0.29-6
390 - fixed removal of patch backup files
391 - fixed option --pid-file
392
393 * Sun Jun 12 2005 <hjp@hjp.at>
394 - avoid installing patch backup files
395 - split Apache::Qpsmtpd into separate package to avoid dependency hell.
396 - fixed URL
397 - changed group to Daemons.
398 - Fixed installation for newer versions of ExtUtils::MakeMaker
399
400 * Wed Jun 1 2005 <hjp@hjp.at> 0.29-5
401 - Really don't reap children in signal handler.
402
403 * Tue May 31 2005 <hjp@hjp.at> 0.29-4
404 - Return 421 for DENYSOFT_DISCONNECT
405 - Don't reap children in signal handler.
406
407 * Thu May 19 2005 <hjp@hjp.at> 0.29-3
408 - removed code to accept paths without <>.
409
410 * Thu May 19 2005 <hjp@hjp.at> 0.29-2
411 - added QPSMTPD_CONFIG env variable and plugin_dir config.
412 - added supplemental groups and support for pid file
413 - added shared_connect hook
414 - changed log level for SMTP dialog from DEBUG to INFO
415
416 * Thu Apr 21 2005 hjp@hjp.at
417 - added plugins, /etc and docs.
418
419 * Mon Apr 18 2005 hjp@hjp.at
420 - Specfile autogenerated
421

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