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

Annotation of /rpms/qpsmtpd/sme7/qpsmtpd.spec

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


Revision 1.27 - (hide annotations) (download)
Wed May 9 19:05:21 2012 UTC (12 years, 5 months ago) by charliebrady
Branch: MAIN
CVS Tags: qpsmtpd-0_83-0_7_el4_sme
Changes since 1.26: +8 -2 lines
See changelog.

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

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