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

Contents 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.5 - (show annotations) (download)
Fri Feb 22 03:55:06 2013 UTC (11 years, 3 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-imap-2_2_0-4_el5_sme
Changes since 1.4: +7 -2 lines
* Thu Feb 21 2013 Ian Wells <esmith@wellsi.com> 2.2.0-4.sme
- Remove imap-relocate-maildirs action as obsolete and slow [SME: 6463]

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