/[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.12 - (show annotations) (download)
Mon Jan 7 18:49:37 2008 UTC (16 years, 10 months ago) by bytegw
Branch: MAIN
Changes since 1.11: +12 -2 lines
Updates

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

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