1 |
# $Id: smeserver-shared-folders.spec,v 1.37 2011/01/03 08:41:13 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.1 |
9 |
%define release 35 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Networking/Daemons |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
|
16 |
Patch0: smeserver-shared-folders-0.1-maxShareNameLength.patch |
17 |
Patch1: smeserver-shared-folders-0.1-add_acl_in_fstab.patch |
18 |
Patch2: smeserver-shared-folders-0.1-locale-2009-05-05.patch |
19 |
Patch3: smeserver-shared-folders-0.1-optimize_permissions.patch |
20 |
Patch4: smeserver-shared-folders-0.1-extended_access.patch |
21 |
Patch5: smeserver-shared-folders-0.1-keep_versions_in_panel.patch |
22 |
Patch6: smeserver-shared-folders-0.1-locale_extended_access.patch |
23 |
Patch7: smeserver-shared-folders-0.1-locale_add_description.patch |
24 |
Patch8: smeserver-shared-folders-0.1-remove_desc.patch |
25 |
Patch9: smeserver-shared-folders-0.1-http_skip_wrong_values.patch |
26 |
Patch10: smeserver-shared-folders-0.1-locale-2009-05-20.patch |
27 |
Patch11: smeserver-shared-folders-0.1-locale-2009-05-21.patch |
28 |
Patch12: smeserver-shared-folders-0.1-smb_template_begin.patch |
29 |
Patch13: smeserver-shared-folders-0.1-locale_en_2009-05-21.patch |
30 |
Patch14: smeserver-shared-folders-0.1-locale-2009-05-25.patch |
31 |
Patch15: smeserver-shared-folders-0.1-external_ssl_as_local.patch |
32 |
Patch16: smeserver-shared-folders-0.1-locale-2009-06-15.patch |
33 |
Patch17: smeserver-shared-folders-0.1-locale-2009-07-22.patch |
34 |
Patch18: smeserver-shared-folders-0.1-locale-2009-08-24.patch |
35 |
Patch19: smeserver-shared-folders-0.1-locale-2009-09-28.patch |
36 |
Patch20: smeserver-shared-folders-0.1-locale-2009-10-20.patch |
37 |
Patch21: smeserver-shared-folders-0.1-locale-2009-10-21.patch |
38 |
Patch22: smeserver-shared-folders-0.1-locale-2009-10-27.patch |
39 |
Patch23: smeserver-shared-folders-0.1-locale-2009-11-17.patch |
40 |
Patch24: smeserver-shared-folders-0.1-locale-2010-03-02.patch |
41 |
Patch25: smeserver-shared-folders-0.1-manual_permissions.patch |
42 |
Patch26: smeserver-shared-folders-0.1-dynamic_exec_cgi.patch |
43 |
Patch27: smeserver-shared-folders-0.1-locale-2010-03-25.patch |
44 |
Patch28: smeserver-shared-folders-0.1-locale-2010-03-26.patch |
45 |
Patch29: smeserver-shared-folders-0.1-locale-2010-05-23.patch |
46 |
Patch30: smeserver-shared-folders-0.1-en-us_typo.patch |
47 |
Patch31: smeserver-shared-folders-0.1-locale-2010-07-05.patch |
48 |
Patch32: smeserver-shared-folders-0.1-locale-2010-07-19.patch |
49 |
Patch33: smeserver-shared-folders-0.1-fix_permissions_on_group_delete.patch |
50 |
Patch34: smeserver-shared-folders-0.1-locale-2010-10-20.patch |
51 |
Patch35: smeserver-shared-folders-0.1-fix_exclude_separator.patch |
52 |
Patch36: smeserver-shared-folders-0.1-enhance_recylce_bin.patch |
53 |
Patch37: smeserver-shared-folders-0.1-webdav_support.patch |
54 |
Patch38: smeserver-shared-folders-0.1-purge_recycle.patch |
55 |
Patch39: smeserver-shared-folders-0.1-locale-2010-11-30.patch |
56 |
Patch40: smeserver-shared-folders-0.1-fix_purge_script.patch |
57 |
Patch41: smeserver-shared-folders-0.1-prop_alias_on_primary.patch |
58 |
Patch42: smeserver-shared-folders-0.1-print_group_table_with_manual_perms.patch |
59 |
Patch43: smeserver-shared-folders-0.1-update_manual_perms_warning.patch |
60 |
Patch44: smeserver-shared-folders-0.1-fix_warning_in_httpd_template.patch |
61 |
Patch45: smeserver-shared-folders-0.1-fix_www_access.patch |
62 |
Patch46: smeserver-shared-folders-0.1-php_allow_url_fopen.patch |
63 |
Patch47: smeserver-shared-folders-0.1-locale-2011-01-03.patch |
64 |
Patch48: smeserver-shared-folders-0.1-fix_files_starting_with_dash.patch |
65 |
|
66 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
67 |
BuildArchitectures: noarch |
68 |
Requires: e-smith-base >= 4.13.15-76 |
69 |
Requires: perl(CGI::FormMagick) |
70 |
Requires: e-smith-formmagick >= 1.4.0-12 |
71 |
Requires: smeserver-mod_dav |
72 |
Requires: acl |
73 |
|
74 |
BuildRequires: perl |
75 |
BuildRequires: e-smith-devtools >= 1.11.0-03 |
76 |
|
77 |
|
78 |
%description |
79 |
This module allows you to create network shares |
80 |
with more flexibility than ibays as it supports ACLs |
81 |
|
82 |
%changelog |
83 |
* Tue Jan 25 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-35.sme |
84 |
- Fix setting ACLs on files starting with a dash [SME: 6500] |
85 |
|
86 |
* Mon Jan 03 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-34.sme |
87 |
- Apply locale 2011-01-03 patch |
88 |
|
89 |
* Mon Jan 03 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-33.sme |
90 |
- New prop PHPAllowUrlFopen |
91 |
|
92 |
* Wed Dec 15 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-32.sme |
93 |
- Print the group table when ManualPermissions is enabled |
94 |
- Fix a warning in httpd.conf templates |
95 |
- Use www as group owner of the root dir if httpAccess is enabled |
96 |
|
97 |
* Fri Dec 10 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-31.sme |
98 |
- Add new prop AliasOnPrimary to toggle alias on the system domain |
99 |
|
100 |
* Thu Dec 2 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-30.sme |
101 |
- Fix purge script |
102 |
|
103 |
* Tue Nov 30 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-29.sme |
104 |
- apply locale 2010-11-30 patch |
105 |
|
106 |
* Tue Nov 30 2010 Shad L. Lords <slords@mail.com> 0.1-28.sme |
107 |
- Fix orig file removal the correct way |
108 |
|
109 |
* Mon Nov 29 2010 Daniel B. <daniel@firewall-services.com> 0.1-27.sme |
110 |
- Remove .orig file |
111 |
|
112 |
* Wed Nov 26 2010 Daniel B. <daniel@firewall-services.com> 0.1-26.sme |
113 |
- Add webdav support |
114 |
- add recycle purge support (with configurable retention time) |
115 |
|
116 |
* Thu Nov 25 2010 Daniel B. <daniel@firewall-services.com> 0.1-25.sme |
117 |
- Fix excludes separator for samba recyle bin [SME: 6379] |
118 |
- Recycle bin directory can be configured (RecycleBinDir prop) |
119 |
- Create the recyle bin directory if enabled |
120 |
- Fix defaults ACL on dir (fix issues with recycle bin) |
121 |
|
122 |
* Wed Oct 20 2010 Daniel B. <daniel@firewall-services.com> 0.1-24.sme |
123 |
- Fix permission on group delete |
124 |
- apply local 2010-10-20 patch |
125 |
|
126 |
* Mon Jul 19 2010 Daniel B. <daniel@firewall-services.com> 0.1-23.sme |
127 |
- apply locale 2010-07-19 patch |
128 |
|
129 |
* Tue Jul 06 2010 Daniel B. <daniel@firewall-services.com> 0.1-22.sme |
130 |
- correct typos in en-us locale [SME: 6103] |
131 |
- apply locale 2010-07-06 patch |
132 |
|
133 |
* Sun May 23 2010 SME Translation Server <translations@contribs.org> 0.1-21.sme |
134 |
- apply locale 2010-05-23 patch |
135 |
|
136 |
* Thu Mar 26 2010 Daniel B. <daniel@firewall-services.com> 0.1-20.sme |
137 |
- apply locale 2010-03-26 patch (fix navigation-conf) |
138 |
|
139 |
* Thu Mar 25 2010 Daniel B. <daniel@firewall-services.com> 0.1-19.sme |
140 |
- apply locale 2010-03-25 patch |
141 |
|
142 |
* Mon Mar 15 2010 Daniel B. <daniel@firewall-services.com> 0.1-18.sme |
143 |
- really apply manual_permissions patch |
144 |
|
145 |
* Mon Mar 08 2010 Daniel B. <daniel@firewall-services.com> 0.1-17.sme |
146 |
- Add an option to allow manual permissions (ManualPermissions) |
147 |
- remove unused .orig file |
148 |
- Exec CGI in cgi-bin directories |
149 |
|
150 |
* Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 0.1-16.sme |
151 |
- apply locale 2010-03-02 patch |
152 |
|
153 |
* Tue Nov 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-15.sme |
154 |
- apply locale 2009-11-17 patch |
155 |
|
156 |
* Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 0.1-14.sme |
157 |
- apply locale 2009-10-27 patch |
158 |
|
159 |
* Wed Oct 21 2009 Daniel B. <daniel@firewall-services.com> 0.1-13.sme |
160 |
- apply locale 2009-10-21 patch |
161 |
|
162 |
* Tue Oct 20 2009 Daniel B. <daniel@firewall-services.com> 0.1-12.sme |
163 |
- apply locale 2009-10-20 patch |
164 |
|
165 |
* Tue Sep 29 2009 Daniel B. <daniel@firewall-services.com> 0.1-11.sme |
166 |
- apply locale 2009-09-28 patch |
167 |
|
168 |
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 0.1-10.sme |
169 |
- apply locale 2009-08-24 patch |
170 |
|
171 |
* Wed Jul 22 2009 Daniel B. <daniel@firewall-services.com> 0.1-9.sme |
172 |
- Apply locale 2009-07-22 patch |
173 |
|
174 |
* Mon Jun 15 2009 Daniel B. <daniel@firewall-services.com> [0.1-8] |
175 |
- Apply locale 2009-06-15 patch |
176 |
|
177 |
* Mon May 25 2009 Daniel B. <daniel@firewall-services.com> [0.1-7] |
178 |
- Include hosts/networks defined in $externalSSLAccess for local access |
179 |
(httpAccess) |
180 |
|
181 |
* Mon May 25 2009 Daniel B. <daniel@firewall-services.com> [0.1-6] |
182 |
- Apply locale 2009-05-25 patch |
183 |
|
184 |
* Thu May 21 2009 Daniel B. <daniel@firewall-services.com> [0.1-5] |
185 |
- Add an empty template-begin for smb.conf template |
186 |
- Add locale 2009-05-21 patch (en-us) |
187 |
|
188 |
* Thu May 21 2009 Daniel B. <daniel@firewall-services.com> [0.1-4] |
189 |
- apply locale 2009-05-21 patch |
190 |
|
191 |
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 0.1-3.sme |
192 |
- apply locale 2009-05-20 patch |
193 |
|
194 |
* Wed May 13 2009 Daniel B. <daniel@firewall-services.com> [0.1-2] |
195 |
- add http access, with some options in the panel |
196 |
- present the keepversion option of the recylcebin in the panel |
197 |
- changes in db keys |
198 |
- remove some descriptions in the panel |
199 |
- optimization in share-modify to limit the time needed |
200 |
to reset permissions |
201 |
|
202 |
* Tue May 05 2009 Daniel B. <daniel@firewall-services.com> [0.1-1] |
203 |
- Add locale patch 2009-05-05 |
204 |
|
205 |
* Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta3] |
206 |
- Add acl option in fstab via the template system |
207 |
(just like usrquota and grpquota) |
208 |
|
209 |
* Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta2] |
210 |
- Rename spec file |
211 |
|
212 |
* Wed Apr 08 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta1] |
213 |
- Rename maxIbayNameLength to maxShareNameLength |
214 |
|
215 |
* Wed Apr 08 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta0] |
216 |
- Initial release. |
217 |
|
218 |
%prep |
219 |
%setup |
220 |
|
221 |
%patch0 -p1 |
222 |
%patch1 -p1 |
223 |
%patch2 -p1 |
224 |
%patch3 -p1 |
225 |
%patch4 -p1 |
226 |
%patch5 -p1 |
227 |
%patch6 -p1 |
228 |
%patch7 -p1 |
229 |
%patch8 -p1 |
230 |
%patch9 -p1 |
231 |
%patch10 -p1 |
232 |
%patch11 -p1 |
233 |
%patch12 -p1 |
234 |
%patch13 -p1 |
235 |
%patch14 -p1 |
236 |
%patch15 -p1 |
237 |
%patch16 -p1 |
238 |
%patch17 -p1 |
239 |
%patch18 -p1 |
240 |
%patch19 -p1 |
241 |
%patch20 -p1 |
242 |
%patch21 -p1 |
243 |
%patch22 -p1 |
244 |
%patch23 -p1 |
245 |
%patch24 -p1 |
246 |
%patch25 -p1 |
247 |
%patch26 -p1 |
248 |
%patch27 -p1 |
249 |
%patch28 -p1 |
250 |
%patch29 -p1 |
251 |
%patch30 -p1 |
252 |
%patch31 -p1 |
253 |
%patch32 -p1 |
254 |
%patch33 -p1 |
255 |
%patch34 -p1 |
256 |
%patch35 -p1 |
257 |
%patch36 -p1 |
258 |
%patch37 -p1 |
259 |
%patch38 -p1 |
260 |
%patch39 -p1 |
261 |
%patch40 -p1 |
262 |
%patch41 -p1 |
263 |
%patch42 -p1 |
264 |
%patch43 -p1 |
265 |
%patch44 -p1 |
266 |
%patch45 -p1 |
267 |
%patch46 -p1 |
268 |
%patch47 -p1 |
269 |
%patch48 -p1 |
270 |
|
271 |
%pre |
272 |
%post |
273 |
|
274 |
%build |
275 |
# Force creation of potentially empty directories |
276 |
mkdir -p root/etc/e-smith/web/{common,functions} |
277 |
mkdir -p root/etc/e-smith/web/panels/manager/{cgi-bin,common,html} |
278 |
mkdir -p root/home/e-smith/files/shares |
279 |
|
280 |
perl createlinks |
281 |
|
282 |
%install |
283 |
rm -rf $RPM_BUILD_ROOT |
284 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
285 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
286 |
--file /etc/cron.daily/purge-shares-recycle 'attr(0755,root,root)' \ |
287 |
> %{name}-%{version}-%{release}-filelist |
288 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
289 |
|
290 |
%clean |
291 |
rm -rf $RPM_BUILD_ROOT |
292 |
|
293 |
%files -f %{name}-%{version}-%{release}-filelist |
294 |
%defattr(-,root,root) |