/[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.6 - (show annotations) (download)
Sun Jun 23 18:21:27 2013 UTC (11 years, 5 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-imap-2_2_0-5_el5_sme
Changes since 1.5: +7 -2 lines
* Fri Jun 21 2013 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-5.sme
- Always enable imap, listen on the loopback if disabled [SME: 7676]

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