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

Contents of /rpms/e-smith-imap/sme7/e-smith-imap.spec

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


Revision 1.1 - (show annotations) (download)
Tue Jun 12 15:36:42 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-imap-1_4_0-9_el4_sme
Import on branch sme7 of package e-smith-imap-1.4.0-9.el4.sme.src.rpm

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed