1 |
vip-ire |
1.11 |
# $Id: smeserver-shared-folders.spec,v 1.10 2014/06/23 17:26:29 vip-ire Exp $ |
2 |
vip-ire |
1.1 |
# Authority: vip-ire |
3 |
|
|
# Name: Daniel Berteaud |
4 |
|
|
|
5 |
|
|
Summary: sme server shared folders module |
6 |
|
|
%define name smeserver-shared-folders |
7 |
|
|
Name: %{name} |
8 |
unnilennium |
1.5 |
%define version 0.3 |
9 |
vip-ire |
1.11 |
%define release 6 |
10 |
vip-ire |
1.1 |
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GPL |
13 |
|
|
Group: Networking/Daemons |
14 |
unnilennium |
1.5 |
Source: %{name}-%{version}.tar.xz |
15 |
vip-ire |
1.6 |
Patch0: smeserver-shared-folders-0.3-remove_fstab_expand_on_post_upgrade.patch |
16 |
vip-ire |
1.8 |
Patch1: smeserver-shared-folders-0.3-dump_acl_and_xattr_for_manual_perm.patch |
17 |
vip-ire |
1.9 |
Patch2: smeserver-shared-folders-0.3-fix_missing_cr_in_smb_template.patch |
18 |
vip-ire |
1.10 |
Patch3: smeserver-shared-folders-0.3-fix_auth_basic.patch |
19 |
vip-ire |
1.11 |
Patch4: smeserver-shared-folders-0.3-handle_ext4.patch |
20 |
vip-ire |
1.1 |
|
21 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
|
|
BuildArchitectures: noarch |
23 |
|
|
Requires: e-smith-base >= 4.13.15-76 |
24 |
|
|
Requires: perl(CGI::FormMagick) |
25 |
|
|
Requires: e-smith-formmagick >= 1.4.0-12 |
26 |
|
|
Requires: smeserver-mod_dav |
27 |
|
|
Requires: acl |
28 |
|
|
|
29 |
|
|
BuildRequires: perl |
30 |
|
|
BuildRequires: e-smith-devtools >= 1.11.0-03 |
31 |
|
|
|
32 |
|
|
|
33 |
|
|
%description |
34 |
|
|
This module allows you to create network shares |
35 |
|
|
with more flexibility than ibays as it supports ACLs |
36 |
|
|
|
37 |
|
|
%changelog |
38 |
vip-ire |
1.11 |
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-6.sme |
39 |
|
|
- Handle ext4 [SME: 8730] |
40 |
|
|
|
41 |
vip-ire |
1.10 |
* Mon Jun 23 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-5.sme |
42 |
|
|
- Fix basic auth on EL6 |
43 |
|
|
|
44 |
vip-ire |
1.9 |
* Mon Jan 13 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-4.sme |
45 |
|
|
- Add a missing CR in smb.conf templates |
46 |
|
|
|
47 |
vip-ire |
1.8 |
* Mon Nov 25 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-3.sme |
48 |
|
|
- Dump ACL and extended attributes in /home/e-smith/db/shares if |
49 |
|
|
ManualPermissions is set |
50 |
|
|
|
51 |
vip-ire |
1.7 |
* Tue Nov 12 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-2.sme |
52 |
vip-ire |
1.6 |
- Remove expand link for fstab in post-upgrade |
53 |
|
|
|
54 |
|
|
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-1.sme |
55 |
unnilennium |
1.5 |
- Rebuild for SME9 |
56 |
|
|
|
57 |
|
|
* Tue Oct 29 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1-83.sme |
58 |
|
|
- apply locale 2013-10-29 patch |
59 |
|
|
|
60 |
|
|
* Tue Oct 22 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1-82.sme |
61 |
|
|
- Rename ajaxplorer to pydio |
62 |
|
|
|
63 |
|
|
* Thu Oct 17 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1-81.sme |
64 |
|
|
- Add NT ACL support |
65 |
unnilennium |
1.2 |
|
66 |
vip-ire |
1.1 |
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 0.1-80.sme |
67 |
|
|
- apply locale 2013-07-14 patch |
68 |
|
|
|
69 |
|
|
* Sat Oct 20 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-79.sme |
70 |
|
|
- Enhance samba audit |
71 |
|
|
|
72 |
|
|
* Thu Oct 18 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-78.sme |
73 |
|
|
- Allow share names ending with dollar |
74 |
|
|
(windows can, and it might be needed for migrations) |
75 |
|
|
|
76 |
|
|
* Wed Oct 17 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-77.sme |
77 |
|
|
- Allow share names starting with numbers (there's no reason to deny it) |
78 |
|
|
|
79 |
|
|
* Thu Oct 11 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-76.sme |
80 |
|
|
- Look at users ACL for encrypted shares list |
81 |
|
|
- Apply locale 2012-10-11 patch |
82 |
|
|
|
83 |
|
|
* Fri Aug 24 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-75.sme |
84 |
|
|
- add possibility to hide shares and to mark them non removable |
85 |
|
|
|
86 |
|
|
* Thu Aug 23 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-74.sme |
87 |
|
|
- Enable FTP access |
88 |
|
|
|
89 |
|
|
* Fri Jul 20 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-73.sme |
90 |
|
|
- Apply locale 2012-07-20 patch |
91 |
|
|
|
92 |
|
|
* Tue Jun 19 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-72.sme |
93 |
|
|
- Explicitly set www acl so web access works even when only individual users |
94 |
|
|
have ACLs |
95 |
|
|
|
96 |
|
|
* Fri May 18 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-71.sme |
97 |
|
|
- Don't disable unix extension in share scope |
98 |
|
|
|
99 |
|
|
* Fri Apr 20 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-70.sme |
100 |
|
|
- Display permission form after creation |
101 |
|
|
- Display share name and desc in permission form |
102 |
|
|
|
103 |
|
|
* Tue Mar 20 2012 SME Translation Server <translations@contribs.org> 0.1-69.el6 |
104 |
|
|
- apply locale 2012-03-20 patch |
105 |
|
|
|
106 |
|
|
* Sun Mar 11 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-68.sme |
107 |
|
|
- Enable webdav even when no auth is required |
108 |
|
|
(but auth will still be required for write operations) |
109 |
|
|
|
110 |
|
|
* Thu Mar 01 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-67.sme |
111 |
|
|
- Add rsyncd support |
112 |
|
|
|
113 |
|
|
* Sat Feb 18 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-66.sme |
114 |
|
|
- Fix bg locale |
115 |
|
|
|
116 |
|
|
* Sat Feb 18 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-65.sme |
117 |
|
|
- Fix root ACL for users |
118 |
|
|
- Apply locale 2012-02-18 patch |
119 |
|
|
|
120 |
|
|
* Sat Feb 18 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-64.sme |
121 |
|
|
- In http access, remove ro users from rw list |
122 |
|
|
- templates cleanup |
123 |
|
|
|
124 |
|
|
* Fri Feb 17 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-63.sme |
125 |
|
|
- Replace fr with correct en-us locale for USERS entry |
126 |
|
|
|
127 |
|
|
* Mon Feb 13 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-62.sme |
128 |
|
|
- Code cleanup |
129 |
|
|
- Move ACL configuration in a separated page |
130 |
|
|
- User level ACL support |
131 |
|
|
|
132 |
|
|
* Thu Dec 15 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-61.sme |
133 |
|
|
- Hide Recycle Bin dir if recycle is disabled |
134 |
|
|
|
135 |
|
|
* Wed Nov 30 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-60.sme |
136 |
|
|
- Fix Ajaxplorer field display when the form has an error |
137 |
|
|
|
138 |
|
|
* Tue Nov 08 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-59.sme |
139 |
|
|
- Stop removing exec perm |
140 |
|
|
- use --physical for setfacl (don't follow symlinks) |
141 |
|
|
|
142 |
|
|
* Mon Nov 07 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-58.sme |
143 |
|
|
- Add wide links samba option |
144 |
|
|
|
145 |
|
|
* Thu Nov 03 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-57.sme |
146 |
|
|
- Use recursive setfacl command (should greatly speedup share modification) |
147 |
|
|
|
148 |
|
|
* Tue Oct 18 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-56.sme |
149 |
|
|
- Apply locale 2011-10-18 patch |
150 |
|
|
- Enable FollowSymLinks if AllowOverride is set to All |
151 |
|
|
|
152 |
|
|
* Thu Sep 01 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-55.sme |
153 |
|
|
- Fix share creation when encfs is not installed |
154 |
|
|
|
155 |
|
|
* Thu Aug 04 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-54.sme |
156 |
|
|
- Don't check password length when encryption is disabled |
157 |
|
|
|
158 |
|
|
* Mon Jul 18 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-53.sme |
159 |
|
|
- Fix encrypted share list |
160 |
|
|
|
161 |
|
|
* Wed Jul 13 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-52.sme |
162 |
|
|
- Fix panel when ajaxplorer is not installed |
163 |
|
|
|
164 |
|
|
* Fri Jul 08 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-51.sme |
165 |
|
|
- Fix modification of unencrypted shares |
166 |
|
|
|
167 |
|
|
* Tue Jul 05 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-50.sme |
168 |
|
|
- Apply locale 2011-07-05 patch |
169 |
|
|
|
170 |
|
|
* Tue Jul 05 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-49.sme |
171 |
|
|
- Make encryption support optional |
172 |
|
|
- Sanitize password field in userpanelEncfs |
173 |
|
|
- Prevent deletion of mounted, encrypted shares |
174 |
|
|
|
175 |
|
|
* Wed Jun 29 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-48.sme |
176 |
|
|
- Enable samba auditing |
177 |
|
|
|
178 |
|
|
* Tue Jun 28 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-47.sme |
179 |
|
|
- Fix Ajaxplorer fields on share creation |
180 |
|
|
|
181 |
|
|
* Tue Jun 28 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-46.sme |
182 |
|
|
- Change the way ajaxplorer is integrated (add a new config section) |
183 |
|
|
|
184 |
|
|
* Mon Jun 27 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-45.sme |
185 |
|
|
- Add support for ajaxplorer |
186 |
|
|
|
187 |
|
|
* Wed Jun 22 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-44.sme |
188 |
|
|
- Set read only permissions on top dir of each share |
189 |
|
|
|
190 |
|
|
* Tue Jun 14 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-43.sme |
191 |
|
|
- Don't check password field if encryption is disabled |
192 |
|
|
|
193 |
|
|
* Tue May 17 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-42.sme |
194 |
|
|
- Add missing INACTIVITY entry in locale |
195 |
|
|
- Apply locale 2011-05-17 patch |
196 |
|
|
|
197 |
|
|
* Mon May 16 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-41.sme |
198 |
|
|
- apply locale 2011-05-16 patch |
199 |
|
|
|
200 |
|
|
* Fri May 06 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-40.sme |
201 |
|
|
- Support encryption using EncFS |
202 |
|
|
|
203 |
|
|
* Wed Apr 27 2011 SME Translation Server <translations@contribs.org> 0.1-39.sme |
204 |
|
|
- apply locale 2011-04-27 patch |
205 |
|
|
|
206 |
|
|
* Tue Apr 05 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-38.sme |
207 |
|
|
- Fix removing empty directories in recycles |
208 |
|
|
|
209 |
|
|
* Wed Mar 30 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-37.sme |
210 |
|
|
- expand httpd.conf and restart apache on group-modify |
211 |
|
|
|
212 |
|
|
* Tue Mar 29 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-36.sme |
213 |
|
|
- Deduplicate writer user list in apache configuration |
214 |
|
|
- Always grant web access to user admin |
215 |
|
|
|
216 |
|
|
* Tue Jan 25 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-35.sme |
217 |
|
|
- Fix setting ACLs on files starting with a dash [SME: 6500] |
218 |
|
|
|
219 |
|
|
* Mon Jan 03 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-34.sme |
220 |
|
|
- Apply locale 2011-01-03 patch |
221 |
|
|
|
222 |
|
|
* Mon Jan 03 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-33.sme |
223 |
|
|
- New prop PHPAllowUrlFopen |
224 |
|
|
|
225 |
|
|
* Wed Dec 15 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-32.sme |
226 |
|
|
- Print the group table when ManualPermissions is enabled |
227 |
|
|
- Fix a warning in httpd.conf templates |
228 |
|
|
- Use www as group owner of the root dir if httpAccess is enabled |
229 |
|
|
|
230 |
|
|
* Fri Dec 10 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-31.sme |
231 |
|
|
- Add new prop AliasOnPrimary to toggle alias on the system domain |
232 |
|
|
|
233 |
|
|
* Thu Dec 2 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-30.sme |
234 |
|
|
- Fix purge script |
235 |
|
|
|
236 |
|
|
* Tue Nov 30 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-29.sme |
237 |
|
|
- apply locale 2010-11-30 patch |
238 |
|
|
|
239 |
|
|
* Tue Nov 30 2010 Shad L. Lords <slords@mail.com> 0.1-28.sme |
240 |
|
|
- Fix orig file removal the correct way |
241 |
|
|
|
242 |
|
|
* Mon Nov 29 2010 Daniel B. <daniel@firewall-services.com> 0.1-27.sme |
243 |
|
|
- Remove .orig file |
244 |
|
|
|
245 |
|
|
* Wed Nov 26 2010 Daniel B. <daniel@firewall-services.com> 0.1-26.sme |
246 |
|
|
- Add webdav support |
247 |
|
|
- add recycle purge support (with configurable retention time) |
248 |
|
|
|
249 |
|
|
* Thu Nov 25 2010 Daniel B. <daniel@firewall-services.com> 0.1-25.sme |
250 |
|
|
- Fix excludes separator for samba recyle bin [SME: 6379] |
251 |
|
|
- Recycle bin directory can be configured (RecycleBinDir prop) |
252 |
|
|
- Create the recyle bin directory if enabled |
253 |
|
|
- Fix defaults ACL on dir (fix issues with recycle bin) |
254 |
|
|
|
255 |
|
|
* Wed Oct 20 2010 Daniel B. <daniel@firewall-services.com> 0.1-24.sme |
256 |
|
|
- Fix permission on group delete |
257 |
|
|
- apply local 2010-10-20 patch |
258 |
|
|
|
259 |
|
|
* Mon Jul 19 2010 Daniel B. <daniel@firewall-services.com> 0.1-23.sme |
260 |
|
|
- apply locale 2010-07-19 patch |
261 |
|
|
|
262 |
|
|
* Tue Jul 06 2010 Daniel B. <daniel@firewall-services.com> 0.1-22.sme |
263 |
|
|
- correct typos in en-us locale [SME: 6103] |
264 |
|
|
- apply locale 2010-07-06 patch |
265 |
|
|
|
266 |
|
|
* Sun May 23 2010 SME Translation Server <translations@contribs.org> 0.1-21.sme |
267 |
|
|
- apply locale 2010-05-23 patch |
268 |
|
|
|
269 |
|
|
* Thu Mar 26 2010 Daniel B. <daniel@firewall-services.com> 0.1-20.sme |
270 |
|
|
- apply locale 2010-03-26 patch (fix navigation-conf) |
271 |
|
|
|
272 |
|
|
* Thu Mar 25 2010 Daniel B. <daniel@firewall-services.com> 0.1-19.sme |
273 |
|
|
- apply locale 2010-03-25 patch |
274 |
|
|
|
275 |
|
|
* Mon Mar 15 2010 Daniel B. <daniel@firewall-services.com> 0.1-18.sme |
276 |
|
|
- really apply manual_permissions patch |
277 |
|
|
|
278 |
|
|
* Mon Mar 08 2010 Daniel B. <daniel@firewall-services.com> 0.1-17.sme |
279 |
|
|
- Add an option to allow manual permissions (ManualPermissions) |
280 |
|
|
- remove unused .orig file |
281 |
|
|
- Exec CGI in cgi-bin directories |
282 |
|
|
|
283 |
|
|
* Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 0.1-16.sme |
284 |
|
|
- apply locale 2010-03-02 patch |
285 |
|
|
|
286 |
|
|
* Tue Nov 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-15.sme |
287 |
|
|
- apply locale 2009-11-17 patch |
288 |
|
|
|
289 |
|
|
* Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 0.1-14.sme |
290 |
|
|
- apply locale 2009-10-27 patch |
291 |
|
|
|
292 |
|
|
* Wed Oct 21 2009 Daniel B. <daniel@firewall-services.com> 0.1-13.sme |
293 |
|
|
- apply locale 2009-10-21 patch |
294 |
|
|
|
295 |
|
|
* Tue Oct 20 2009 Daniel B. <daniel@firewall-services.com> 0.1-12.sme |
296 |
|
|
- apply locale 2009-10-20 patch |
297 |
|
|
|
298 |
|
|
* Tue Sep 29 2009 Daniel B. <daniel@firewall-services.com> 0.1-11.sme |
299 |
|
|
- apply locale 2009-09-28 patch |
300 |
|
|
|
301 |
|
|
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 0.1-10.sme |
302 |
|
|
- apply locale 2009-08-24 patch |
303 |
|
|
|
304 |
|
|
* Wed Jul 22 2009 Daniel B. <daniel@firewall-services.com> 0.1-9.sme |
305 |
|
|
- Apply locale 2009-07-22 patch |
306 |
|
|
|
307 |
|
|
* Mon Jun 15 2009 Daniel B. <daniel@firewall-services.com> [0.1-8] |
308 |
|
|
- Apply locale 2009-06-15 patch |
309 |
|
|
|
310 |
|
|
* Mon May 25 2009 Daniel B. <daniel@firewall-services.com> [0.1-7] |
311 |
|
|
- Include hosts/networks defined in $externalSSLAccess for local access |
312 |
|
|
(httpAccess) |
313 |
|
|
|
314 |
|
|
* Mon May 25 2009 Daniel B. <daniel@firewall-services.com> [0.1-6] |
315 |
|
|
- Apply locale 2009-05-25 patch |
316 |
|
|
|
317 |
|
|
* Thu May 21 2009 Daniel B. <daniel@firewall-services.com> [0.1-5] |
318 |
|
|
- Add an empty template-begin for smb.conf template |
319 |
|
|
- Add locale 2009-05-21 patch (en-us) |
320 |
|
|
|
321 |
|
|
* Thu May 21 2009 Daniel B. <daniel@firewall-services.com> [0.1-4] |
322 |
|
|
- apply locale 2009-05-21 patch |
323 |
|
|
|
324 |
|
|
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 0.1-3.sme |
325 |
|
|
- apply locale 2009-05-20 patch |
326 |
|
|
|
327 |
|
|
* Wed May 13 2009 Daniel B. <daniel@firewall-services.com> [0.1-2] |
328 |
|
|
- add http access, with some options in the panel |
329 |
|
|
- present the keepversion option of the recylcebin in the panel |
330 |
|
|
- changes in db keys |
331 |
|
|
- remove some descriptions in the panel |
332 |
|
|
- optimization in share-modify to limit the time needed |
333 |
|
|
to reset permissions |
334 |
|
|
|
335 |
|
|
* Tue May 05 2009 Daniel B. <daniel@firewall-services.com> [0.1-1] |
336 |
|
|
- Add locale patch 2009-05-05 |
337 |
|
|
|
338 |
|
|
* Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta3] |
339 |
|
|
- Add acl option in fstab via the template system |
340 |
|
|
(just like usrquota and grpquota) |
341 |
|
|
|
342 |
|
|
* Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta2] |
343 |
|
|
- Rename spec file |
344 |
|
|
|
345 |
|
|
* Wed Apr 08 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta1] |
346 |
|
|
- Rename maxIbayNameLength to maxShareNameLength |
347 |
|
|
|
348 |
|
|
* Wed Apr 08 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta0] |
349 |
|
|
- Initial release. |
350 |
|
|
|
351 |
|
|
%prep |
352 |
|
|
%setup |
353 |
vip-ire |
1.6 |
%patch0 -p1 |
354 |
vip-ire |
1.8 |
%patch1 -p1 |
355 |
vip-ire |
1.9 |
%patch2 -p1 |
356 |
vip-ire |
1.10 |
%patch3 -p1 |
357 |
vip-ire |
1.11 |
%patch4 -p1 |
358 |
vip-ire |
1.1 |
|
359 |
|
|
%pre |
360 |
|
|
/usr/sbin/useradd -c "Rsyncd User" \ |
361 |
|
|
-s /sbin/nologin -r -d /dev/null rsync 2> /dev/null || : |
362 |
|
|
|
363 |
|
|
%post |
364 |
|
|
|
365 |
|
|
%build |
366 |
|
|
# Force creation of potentially empty directories |
367 |
|
|
mkdir -p root/etc/e-smith/web/{common,functions} |
368 |
|
|
mkdir -p root/etc/e-smith/web/panels/manager/{cgi-bin,common,html} |
369 |
|
|
mkdir -p root/home/e-smith/files/shares |
370 |
|
|
mkdir -p root/var/log/rsyncd |
371 |
vip-ire |
1.8 |
mkdir -p root/home/e-smith/db/shares |
372 |
vip-ire |
1.1 |
|
373 |
|
|
perl createlinks |
374 |
|
|
|
375 |
|
|
%install |
376 |
|
|
rm -rf $RPM_BUILD_ROOT |
377 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
378 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
379 |
|
|
--file /etc/cron.daily/purge-shares-recycle 'attr(0755,root,root)' \ |
380 |
|
|
--file /etc/sysconfig/modules/fuse.modules 'attr(0755,root,root)' \ |
381 |
|
|
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
382 |
|
|
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
383 |
|
|
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
384 |
vip-ire |
1.8 |
--dir /home/e-smith/db/shares 'attr(0750,root,root)' \ |
385 |
vip-ire |
1.1 |
> %{name}-%{version}-%{release}-filelist |
386 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
387 |
|
|
|
388 |
|
|
%clean |
389 |
|
|
rm -rf $RPM_BUILD_ROOT |
390 |
|
|
|
391 |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
392 |
|
|
%defattr(-,root,root) |