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