/[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.1 - (hide annotations) (download)
Thu Feb 7 22:34:35 2013 UTC (11 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-imap-2_4_0-1_el6_sme
* Thu Feb  7 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme
- Roll new stream for sme9

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