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