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

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

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


Revision 1.2 - (hide annotations) (download)
Fri Feb 22 04:03:24 2013 UTC (11 years, 8 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-imap-2_4_0-2_el6_sme, HEAD
Changes since 1.1: +7 -2 lines
* Thu Feb 21 2013 Ian Wells <esmith@wellsi.com> 2.4.0-2.sme
- Remove imap-relocate-maildirs action as obsolete and slow [SME: 7392]

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