/[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.2 - (show annotations) (download)
Tue Oct 7 18:30:05 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: e-smith-imap-2_0_0-1_el4_sme
Changes since 1.1: +7 -14 lines
New streams

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

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