/[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.7 - (hide annotations) (download)
Thu Dec 26 04:55:52 2013 UTC (10 years, 7 months ago) by charliebrady
Branch: MAIN
Changes since 1.6: +8 -2 lines
- Add keepalive option for tcpsvd for imap and imaps services. [SME: 8078]

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