/[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.21 - (hide annotations) (download)
Sat Oct 31 16:50:52 2009 UTC (15 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: qpsmtpd-0_83-0_4_el4_sme
Changes since 1.20: +9 -2 lines
See changelog

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

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