/[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.28 - (hide annotations) (download)
Sat Jun 30 16:05:32 2012 UTC (12 years, 4 months ago) by wellsi
Branch: MAIN
CVS Tags: qpsmtpd-0_83-0_8_el4_sme
Changes since 1.27: +8 -2 lines
Ignore search path in DNS lookups [SME: 5808]

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

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