/[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.8 - (hide annotations) (download)
Mon Feb 10 00:07:23 2014 UTC (10 years, 4 months ago) by charliebrady
Branch: MAIN
CVS Tags: e-smith-imap-2_2_0-7_el5_sme
Changes since 1.7: +8 -3 lines
* Sun Feb  9 2014 Charlie Brady <charlie_brady@mitel.com> 2.2.0-7.sme
- Use stunnel-tls instead of sslio to wrap imaps service. [SME: 7999]

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