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