/[smeserver]/rpms/e-smith-imap/sme8/e-smith-imap.spec
ViewVC logotype

Annotation of /rpms/e-smith-imap/sme8/e-smith-imap.spec

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


Revision 1.10 - (hide annotations) (download)
Sun Feb 16 01:52:26 2014 UTC (10 years, 8 months ago) by charliebrady
Branch: MAIN
CVS Tags: e-smith-imap-2_2_0-9_el5_sme, HEAD
Changes since 1.9: +8 -3 lines
* Sat Feb 15 2014 Charlie Brady <charlie_brady@mitel.com> 2.2.0-9.sme
- Use stunnel-tls instead of sslio to wrap imaps service (take II). [SME: 7999]

1 charliebrady 1.10 # $Id: e-smith-imap.spec,v 1.9 2014/02/15 03:54:36 wellsi Exp $
2 slords 1.2
3 slords 1.1 Summary: Module for configuring the IMAP server
4     %define name e-smith-imap
5     Name: %{name}
6 slords 1.2 %define version 2.2.0
7 charliebrady 1.10 %define release 9
8 slords 1.1 Version: %{version}
9     Release: %{release}%{?dist}
10     License: GPL
11     Group: Networking/Daemons
12     Source: %{name}-%{version}.tar.gz
13 slords 1.3 Patch1: e-smith-imap-2.2.0-urandom.patch
14 filippocarletti 1.4 Patch2: e-smith-imap-2.2.0-urandomToSpecfile.patch
15 wellsi 1.5 Patch3: e-smith-imap-2.2.0-imapRelocate.patch
16 vip-ire 1.6 Patch4: e-smith-imap-2.2.0-always_enable_imap.patch
17 charliebrady 1.7 Patch5: e-smith-imap-2.2.0-keepalive.patch
18 charliebrady 1.8 Patch6: e-smith-imap-2.2.0-stunnel.patch
19 charliebrady 1.10 Patch7: e-smith-imap-2.2.0-stunnel.patch2
20 slords 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
21     Requires: daemontools
22     Requires: ipsvd
23     Requires: stunnel-tls
24     Requires: mailfront
25     Requires: dovecot
26     Requires: e-smith-cvm-unix-local
27     Requires: e-smith-lib >= 1.15.1-33
28 charliebrady 1.7 Requires: ipsvd >= 0.12.1-6
29 slords 1.1 Obsoletes: imap
30     Obsoletes: e-smith-wu-imap
31     Obsoletes: e-smith-ssl-imap
32     BuildArchitectures: noarch
33     BuildRequires: e-smith-devtools
34     AutoReqProv: no
35     %define stunnelid 451
36     %define imaplogid 1001
37    
38     %description
39     Module for configuring the IMAP server
40    
41     %changelog
42 charliebrady 1.10 * Sat Feb 15 2014 Charlie Brady <charlie_brady@mitel.com> 2.2.0-9.sme
43     - Use stunnel-tls instead of sslio to wrap imaps service (take II). [SME: 7999]
44    
45 wellsi 1.9 * Fri Feb 14 2014 Ian Wells <esmith@wellsi.com> 2.2.0-8.sme
46     - Remove last patch. [SME: 7999]
47    
48 charliebrady 1.8 * Sun Feb 9 2014 Charlie Brady <charlie_brady@mitel.com> 2.2.0-7.sme
49     - Use stunnel-tls instead of sslio to wrap imaps service. [SME: 7999]
50    
51     * Wed Dec 25 2013 Charlie Brady <charlie_brady@mitel.com> 2.2.0-6.sme
52 charliebrady 1.7 - Add keepalive option for tcpsvd for imap and imaps services. [SME: 8078]
53    
54 vip-ire 1.6 * Fri Jun 21 2013 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-5.sme
55     - Always enable imap, listen on the loopback if disabled [SME: 7676]
56    
57 wellsi 1.5 * Thu Feb 21 2013 Ian Wells <esmith@wellsi.com> 2.2.0-4.sme
58     - Remove imap-relocate-maildirs action as obsolete and slow [SME: 6463]
59    
60 filippocarletti 1.4 * Tue Nov 25 2008 Giacomo Sanchietti <giacomo.sanchietti@nethesis.it> 2.2.0-3.sme
61     - Move creation of chrooted dev/urandom to spec-file [SME: 1105]
62    
63 slords 1.3 * Mon Nov 24 2008 Shad L. Lords <slords@mail.com> 2.2.0-2.sme
64     - Create chroot dev/urandom for stunnel to use [SME: 1105]
65    
66 slords 1.2 * Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme
67     - Roll new stream to separate sme7/sme8 trees [SME: 4633]
68    
69 slords 1.1 * Fri May 18 2007 Shad L. Lords <slords@mail.com> 1.4.0-9
70     - Strip off last ^M from capabilities string [SME: 2883]
71    
72     * Fri May 18 2007 Shad L. Lords <slords@mail.com> 1.4.0-8
73     - Determine imap capabilities from dovecot binary [SME: 2883]
74    
75     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
76     - Clean up spec so package can be built by koji/plague
77    
78     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
79     - Update to new release naming. No functional changes.
80     - Make Packager generic
81    
82     * Mon Aug 28 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-06
83     - Remove ~/ from start of lines in .subscriptions file [SME: 1881]
84    
85     * Mon Apr 10 2006 Charlie Brady <charlie_brady@mitel.com> 1.4.0-05
86     - Fix permissions of ssl seed file. [SME: 1105]
87    
88     * Fri Apr 7 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-04
89     - Bump imap[s] ConcurrencyLimitPerIP defaults from six to twelve [SME: 1211]
90    
91     * Fri Mar 24 2006 Charlie Brady <charlie_brady@mitel.com> 1.4.0-03
92     - Ensure that imaps is started or stopped if required, during
93     email-update event. [SME: 1125]
94    
95     * Sun Mar 19 2006 Charlie Brady <charlie_brady@mitel.com> 1.4.0-02
96     - Fix per IP concurrency control. [SME: 1081]
97    
98     * Tue Mar 14 2006 Charlie Brady <charlie_brady@mitel.com> 1.4.0-01
99     - Roll stable stream version. [SME: 1016]
100    
101     * Fri Feb 24 2006 Charlie Brady <charlie_brady@mitel.com> 1.3.1-17
102     - Add default initializers for imap & imaps db records. [SME: 561]
103     - Add db driven global and per IP concurrency controls. [SME: 884]
104    
105     * Fri Feb 24 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.1-16
106     - Add /sbin/e-smith/merge_maildirs which can be run if you need
107     to merge two maildirs [SME: 875]
108    
109     * Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.1-15
110     - Bump release number only
111    
112     * Mon Oct 17 2005 Gordon Rowell <gordonr@e-smith.com>
113     - [1.3.1-14]
114     - Fix typo in env setup in imaps run script - Thanks Andre Duclos [SF: 1327437]
115    
116     * Wed Sep 21 2005 Charlie Brady <charlieb@e-smith.com>
117     - [1.3.1-13]
118     - Ensure that ./peers/0 is only readable if "access" is set to
119     "public". This change allows a "localhost" setting to do the
120     right thing. [SF: 1294719]
121    
122     * Wed Aug 10 2005 Shad Lords <slords@mail.com>
123     - [1.3.1-12]
124     - Move db entries to e-smith-email [SF: 1256055]
125    
126     * Thu Jun 23 2005 Charlie Brady <charlieb@e-smith.com>
127     - [1.3.1-11]
128     - Switch to using stunnel-tls package. [SF: 1225972]
129    
130     * Mon Jun 13 2005 Charlie Brady <charlieb@e-smith.com>
131     - [1.3.1-10]
132     - Add Obsoletes header for e-smith-ssl-imap. [SF: 1219069]
133    
134     * Tue Mar 29 2005 Charlie Brady <charlieb@e-smith.com>
135     - [1.3.1-09]
136     - Create empty template-begin template fragments for tcpsvd
137     ACL files.
138    
139     * Tue Mar 29 2005 Charlie Brady <charlieb@e-smith.com>
140     - [1.3.1-08]
141     - Run ./control/1 from run script, to ensure that ACLs
142     are set at startup. Don't bother with sigusr1 at
143     bootstrap-console-save, as it will be ignored.
144     - Fix imap folder relocations.
145    
146     * Sat Mar 19 2005 Charlie Brady <charlieb@e-smith.com>
147     - [1.3.1-07]
148     - Fix SystemName lookup in imap/control/1 script.
149    
150     * Sat Mar 19 2005 Charlie Brady <charlieb@e-smith.com>
151     - [1.3.1-06]
152     - Use imap sigusr1 handler script to update network ACLs
153     for both imap and imaps.
154     - Be more careful about permissions for copied pem cert.
155     - Remove dead imap-conf symlinks.
156    
157     * Thu Mar 17 2005 Charlie Brady <charlieb@e-smith.com>
158     - [1.3.1-05]
159     - Remove imapd.pem templates, and just copy system pem file, via
160     sigusr1 handler script.
161    
162     * Thu Mar 17 2005 Charlie Brady <charlieb@e-smith.com>
163     - [1.3.1-04]
164     - Fix ownership of /var/log/imaps
165    
166     * Wed Mar 16 2005 Charlie Brady <charlieb@e-smith.com>
167     - [1.3.1-03]
168     - Use generic_template_expand action where possible, in place
169     of specific actions. Update e-smith-lib dependency. [MN00064130]
170     - Convert from tcpserver to tcpsvd for imap service. Manage
171     network ACLs and daemon environment using peers directory.
172     - Update maildir relocate script to use standard dovecot
173     hierarchy separator ('.').
174    
175     * Thu Jan 20 2005 Charlie Brady <charlieb@e-smith.com>
176     - [1.3.1-02]
177     - Fix spelling in IMAP_CAPABILITY setting. [MN00040881]
178     - Create imapd.pem via template expansion, and merge into
179     imap-conf action.
180     - Add db default values for imaps service - to come later.
181     - Clean up genfilelist call - remove sed invocation.
182    
183     * Fri Dec 31 2004 Charlie Brady <charlieb@e-smith.com>
184     - [1.3.1-01]
185     - Rolling new development stream - 1.3.1
186    
187     * Fri Dec 24 2004 Charlie Brady <charlieb@e-smith.com>
188     - [1.3.0-05]
189     - Fix quoting in IMAP_CAPABILITIES setting, and clean env before
190     running envdir from run script. [MN00040881]
191    
192     * Wed Dec 22 2004 Charlie Brady <charlieb@e-smith.com>
193     - [1.3.0-04]
194     - Add IMAP_CAPABILITIES variable to imapd's environment [MN00040881]
195    
196     * Fri May 14 2004 Gordon Rowell <gordonr@e-smith.com>
197     - [1.3.0-03]
198     - Remove misplaced root/var/service/runenv [MN00029842, MN00033394]
199    
200     * Fri May 14 2004 Gordon Rowell <gordonr@e-smith.com>
201     - [1.3.0-02]
202     - Provide new backend imap script so that setting of imapdpath in
203     environment by tcpserver is effective. [MN00029842, MN00033394]
204    
205     * Tue Jan 27 2004 Michael Soulier <msoulier@e-smith.com>
206     - [1.3.0-01]
207     - rolling to dev - 1.3.0
208    
209     * Tue Jan 27 2004 Michael Soulier <msoulier@e-smith.com>
210     - [1.2.0-01]
211     - rolling to stable - 1.2.0
212    
213     * Fri Nov 28 2003 Charlie Brady <charlieb@e-smith.com>
214     - [1.1.0-02]
215     - Move setup of cvm environment variables into CDB file. Saves
216     execution of envdir, and allows customisation per IP address.
217     [charlieb 10960]
218    
219     * Fri Nov 28 2003 Charlie Brady <charlieb@e-smith.com>
220     - [1.1.0-01]
221     - Changing version to development stream number - 1.1.0
222    
223     * Wed Aug 27 2003 Michael Soulier <msoulier@e-smith.com>
224     - [1.0.0-03]
225     - Added K* init symlinks for runlevels 0, 1 and 6. [msoulier 9761]
226    
227     * Wed Jul 9 2003 Gordon Rowell <gordonr@e-smith.com>
228     - [1.0.0-02]
229     - Remove event name check in email-relocate-maildirs [gordonr 9337]
230    
231     * Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com>
232     - [1.0.0-01]
233     - Changing version to stable stream number - 1.0.0
234    
235     * Mon Jun 23 2003 Charlie Brady <charlieb@e-smith.com>
236     - [0.0.5-07]
237     - Template /etc/dovecot.conf and runenv/* dovecot environment setup files.
238     Rename conf-imap-tcprules to conf-imap to cover additional template
239     expansions. [charlieb 587]
240     - Increase default ulimit setting to 128MB. [charlieb 9113]
241    
242     * Thu Jun 19 2003 Charlie Brady <charlieb@e-smith.com>
243     - [0.0.5-06]
244     - Update tcpserver's cdb file in email-update and remoteaccess-update.
245     [charlieb 9068]
246    
247     * Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com>
248     - [0.0.5-05]
249     - Use create-system-user to create imaplog user. Add Requires header to ensure
250     that %pre script can run. [charlieb 6033]
251    
252     * Tue Jun 3 2003 Charlie Brady <charlieb@e-smith.com>
253     - [0.0.5-04]
254     - Fix %pre script so that uid other than expected generates warning,
255     but install proceeds. [charlieb 6033]
256    
257     * Thu Apr 24 2003 Charlie Brady <charlieb@e-smith.com>
258     - [0.0.5-03]
259     - Do maildir relocation in two steps, first move top level folders into
260     ~/Mail, then do depthwise move and rename into Maildir. Much faster too.
261     [charlieb 8273]
262    
263     * Thu Apr 24 2003 Charlie Brady <charlieb@e-smith.com>
264     - [0.0.5-02]
265     - Redo maildir relocation to account for leading ;. [charlieb 8272]
266     - Rewrite subscription files contents, to change hierarchy separator, and to
267     omit leading Mail/. [charlieb 8272]
268     - For now, do not relocate ~admin maildirs - we need to work out how to avoid walking
269     all of /home/e-smith/files. [charlieb 8273]
270    
271     * Thu Apr 24 2003 Gordon Rowell <gordonr@e-smith.com>
272     - [0.0.5-01]
273     - Rebuild tarball [gordonr 587]
274    
275     * Tue Apr 22 2003 Mark Knox <markk@e-smith.com>
276     - [0.0.4-01]
277     - Updated Summary to reflect actual contents [markk 8272]
278     - Fixed file list generation to include all files [markk 8272]
279    
280     * Fri Apr 18 2003 Charlie Brady <charlieb@e-smith.com>
281     - [0.0.3-01]
282     - Break runenv into runenv and imapfront.env - we don't need export
283     this way. [charlieb 8281]
284     - Make sure that PRNG file is initialisedbefore we run tcpserver.
285     [charlieb 8281]
286    
287     * Fri Apr 18 2003 Charlie Brady <charlieb@e-smith.com>
288     - [0.0.2-15]
289     - Ensure that runenv environment is exported (we should break this
290     into exportenv and runenv). [charlieb 8281]
291    
292     * Fri Apr 18 2003 Charlie Brady <charlieb@e-smith.com>
293     - [0.0.2-14]
294     - Remove %post creation of SSL PRNG seed file, and change filelist
295     from %ghost to %config(noreplace). [charlieb 8281]
296     - Setup SASL evvironment for imap run file via runenv directory.
297     Allow override of imap path from runenv. [charlieb 587]
298    
299     * Thu Apr 17 2003 Charlie Brady <charlieb@e-smith.com>
300     - [0.0.2-13]
301     - Remove group write permission on SSL PRNG seed file. [charlieb 8281]
302    
303     * Thu Apr 17 2003 Charlie Brady <charlieb@e-smith.com>
304     - [0.0.2-12]
305     - Fix chown => chmod typo. [charlieb 8281]
306     - Move .mailboxlist files to Maildir/.subscriptions. [charlieb 8274]
307    
308     * Tue Apr 15 2003 Charlie Brady <charlieb@e-smith.com>
309     - [0.0.2-11]
310     - Fix permissions problem in imapd certificate file. [charlieb 8281]
311     - Add maildir relocate script (from e-smith-email) and rewrite it
312     to provide new locations compatible with dovecot. [charlieb 8273]
313    
314     * Thu Apr 3 2003 Charlie Brady <charlieb@e-smith.com>
315     - [0.0.2-10]
316     - Remove email-relocate-maildirs script - it lives in e-smith-email, and
317     we haven't modified it yet. [charlieb 587]
318    
319     * Thu Apr 3 2003 Charlie Brady <charlieb@e-smith.com>
320     - [0.0.2-09]
321     - Remove "-D debug" from stunnel args in imap/run - we can't have
322     passwords logged in plaintext. [charlieb 587]
323    
324     * Tue Apr 1 2003 Charlie Brady <charlieb@e-smith.com>
325     - [0.0.2-08]
326     - Fix rpm build problem with last change - missing directories. [charlieb 587]
327    
328     * Tue Apr 1 2003 Charlie Brady <charlieb@e-smith.com>
329     - [0.0.2-07]
330     - Create imapd.pem certificate in the place where it is required. Add
331     rc7.d startup script so that imap runs on startup. [charlieb 587]
332    
333     * Fri Mar 21 2003 Charlie Brady <charlieb@e-smith.com>
334     - [0.0.2-06]
335     - Fix tcpserver CDB file name. [charlieb 587]
336     - Ansure that stunnel user is created in %pre. [charlieb 587]
337     - Allow various settings for run script to be set from
338     an envdir, including imap daemon executable path. [charlieb 587]
339    
340     * Fri Mar 21 2003 Charlie Brady <charlieb@e-smith.com>
341     - [0.0.2-05]
342     - Fix spec file to generate filelist from repository (where possible).
343     [charlieb 687]
344    
345     * Fri Mar 21 2003 Charlie Brady <charlieb@e-smith.com>
346     - [0.0.2-04]
347     - Include action scripts in RPM file list. [charlieb 587]
348    
349     * Fri Mar 21 2003 Charlie Brady <charlieb@e-smith.com>
350     - [0.0.2-03]
351     - Add minimal chroot jail for stunnel [charlieb 587]
352    
353     * Fri Mar 21 2003 Charlie Brady <charlieb@e-smith.com>
354     - [0.0.2-02]
355     - Add dependency on e-smith-cvm-unix-local - which itself depends
356     on cvm. [charlieb 587]
357    
358     * Fri Mar 21 2003 Charlie Brady <charlieb@e-smith.com>
359     - [0.0.2-01]
360     - Add PEM certificate create/update action. Add tcprules update action.
361     [charlieb 587]
362     - Add Obsoletes headers to force removal of e-smith-wu-imap and imap RPMs.
363     Add dependency on dovecot RPM. [charlieb 587]
364    
365     * Thu Mar 20 2003 Charlie Brady <charlieb@e-smith.com>
366     - Initial
367    
368     %prep
369     %setup
370 slords 1.3 %patch1 -p1
371 filippocarletti 1.4 %patch2 -p1
372 wellsi 1.5 %patch3 -p1
373 vip-ire 1.6 %patch4 -p1
374 charliebrady 1.7 %patch5 -p1
375 charliebrady 1.10 %patch6 -p1
376     %patch7 -p1
377 slords 1.1
378     %build
379     perl createlinks
380    
381     %install
382     rm -rf $RPM_BUILD_ROOT
383     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
384     mkdir -p $RPM_BUILD_ROOT/service
385     ln -s /var/service/imap $RPM_BUILD_ROOT/service/imap
386    
387     mkdir -p $RPM_BUILD_ROOT/var/log/imap
388     touch $RPM_BUILD_ROOT/var/service/imap/down
389     mkdir -p $RPM_BUILD_ROOT/var/service/imap/ssl/{dev,usr/share/ssl}
390     mkdir -p $RPM_BUILD_ROOT/var/service/imap/peers
391     mkdir -p $RPM_BUILD_ROOT/etc/e-smith/templates/var/service/imap/peers
392     touch $RPM_BUILD_ROOT/etc/e-smith/templates/var/service/imap/peers/{0,local}/template-begin
393     touch $RPM_BUILD_ROOT/var/service/imap/ssl/seed
394    
395     mkdir -p $RPM_BUILD_ROOT/etc/e-smith/templates/var/service/imap/config
396     echo SSLUID=%{stunnelid} > $RPM_BUILD_ROOT/etc/e-smith/templates/var/service/imap/config/SSLUID
397     echo SSLGID=%{stunnelid} > $RPM_BUILD_ROOT/etc/e-smith/templates/var/service/imap/config/SSLGID
398    
399     ln -s /var/service/imaps $RPM_BUILD_ROOT/service/imaps
400    
401     mkdir -p $RPM_BUILD_ROOT/var/log/imaps
402     touch $RPM_BUILD_ROOT/var/service/imaps/down
403     mkdir -p $RPM_BUILD_ROOT/var/service/imaps/peers
404    
405     mkdir -p $RPM_BUILD_ROOT/etc/e-smith/templates/var/service/imaps/config
406     echo SSLUID=%{stunnelid} > $RPM_BUILD_ROOT/etc/e-smith/templates/var/service/imaps/config/SSLUID
407     echo SSLGID=%{stunnelid} > $RPM_BUILD_ROOT/etc/e-smith/templates/var/service/imaps/config/SSLGID
408    
409     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
410     --dir /var/service/imap 'attr(1755,root,root)' \
411     --file /var/service/imap/run 'attr(0755,root,root)' \
412     --file /var/service/imap/control/1 'attr(0755,root,root)' \
413     --dir /var/service/imap/log 'attr(0755,root,root)' \
414     --file /var/service/imap/log/run 'attr(0755,root,root)' \
415     --file /var/service/imap/imapd 'attr(0755,root,root)' \
416     --file /var/service/imap/ssl/seed 'config(noreplace) %attr(0600,stunnel,stunnel)' \
417     --dir /var/service/imap/ssl 'attr(0755,root,root)' \
418     --dir /var/service/imap/ssl/usr 'attr(0755,root,root)' \
419     --dir /var/service/imap/ssl/dev 'attr(0755,root,root)' \
420     --dir /var/log/imap 'attr(0755,imaplog,imaplog)' \
421     --file /var/service/imap/ssl/usr/share/ssl/openssl.cnf 'attr(0644,root,root)' \
422     --dir /var/service/imaps 'attr(1755,root,root)' \
423     --file /var/service/imaps/run 'attr(0755,root,root)' \
424     --file /var/service/imaps/control/1 'attr(0755,root,root)' \
425     --file /var/service/imaps/control/2 'attr(0755,root,root)' \
426     --dir /var/service/imaps/log 'attr(0755,root,root)' \
427     --file /var/service/imaps/log/run 'attr(0755,root,root)' \
428     --dir /var/log/imaps 'attr(0755,imaplog,imaplog)' \
429     --file /sbin/e-smith/merge_maildirs 'attr(0755,root,root)' \
430     > %{name}-%{version}-%{release}-filelist
431    
432     %pre
433     /sbin/e-smith/create-system-user stunnel %{stunnelid} \
434     'chrooted stunnel user user' /var/log/imap/ssl /bin/false
435     /sbin/e-smith/create-system-user imaplog %{imaplogid} \
436     'imap output log user' /var/log/imap /bin/false
437    
438     %preun
439    
440     %post
441    
442     %clean
443     rm -rf $RPM_BUILD_ROOT
444    
445     %files -f %{name}-%{version}-%{release}-filelist
446     %defattr(-,root,root)
447 filippocarletti 1.4 %attr(0444,root,root) %dev(c,1,9) /var/service/imap/ssl/dev/urandom

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