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