/[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.9 - (show annotations) (download)
Sat Feb 15 03:54:36 2014 UTC (10 years, 9 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-imap-2_2_0-8_el5_sme
Changes since 1.8: +6 -3 lines
* Fri Feb 14 2014 Ian Wells <esmith@wellsi.com> 2.2.0-8.sme
- Remove last patch. [SME: 7999]

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