1 |
# $Id: smeserver-shared-folders.spec,v 1.32 2010/11/30 15:15:20 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 30 |
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 |
|
58 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
59 |
BuildArchitectures: noarch |
60 |
Requires: e-smith-base >= 4.13.15-76 |
61 |
Requires: perl(CGI::FormMagick) |
62 |
Requires: e-smith-formmagick >= 1.4.0-12 |
63 |
Requires: smeserver-mod_dav |
64 |
Requires: acl |
65 |
|
66 |
BuildRequires: perl |
67 |
BuildRequires: e-smith-devtools >= 1.11.0-03 |
68 |
|
69 |
|
70 |
%description |
71 |
This module allows you to create network shares |
72 |
with more flexibility than ibays as it supports ACLs |
73 |
|
74 |
%changelog |
75 |
* Thu Dec 2 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-30.sme |
76 |
- Fix purge script |
77 |
|
78 |
* Tue Nov 30 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-29.sme |
79 |
- apply locale 2010-11-30 patch |
80 |
|
81 |
* Tue Nov 30 2010 Shad L. Lords <slords@mail.com> 0.1-28.sme |
82 |
- Fix orig file removal the correct way |
83 |
|
84 |
* Mon Nov 29 2010 Daniel B. <daniel@firewall-services.com> 0.1-27.sme |
85 |
- Remove .orig file |
86 |
|
87 |
* Wed Nov 26 2010 Daniel B. <daniel@firewall-services.com> 0.1-26.sme |
88 |
- Add webdav support |
89 |
- add recycle purge support (with configurable retention time) |
90 |
|
91 |
* Thu Nov 25 2010 Daniel B. <daniel@firewall-services.com> 0.1-25.sme |
92 |
- Fix excludes separator for samba recyle bin [SME: 6379] |
93 |
- Recycle bin directory can be configured (RecycleBinDir prop) |
94 |
- Create the recyle bin directory if enabled |
95 |
- Fix defaults ACL on dir (fix issues with recycle bin) |
96 |
|
97 |
* Wed Oct 20 2010 Daniel B. <daniel@firewall-services.com> 0.1-24.sme |
98 |
- Fix permission on group delete |
99 |
- apply local 2010-10-20 patch |
100 |
|
101 |
* Mon Jul 19 2010 Daniel B. <daniel@firewall-services.com> 0.1-23.sme |
102 |
- apply locale 2010-07-19 patch |
103 |
|
104 |
* Tue Jul 06 2010 Daniel B. <daniel@firewall-services.com> 0.1-22.sme |
105 |
- correct typos in en-us locale [SME: 6103] |
106 |
- apply locale 2010-07-06 patch |
107 |
|
108 |
* Sun May 23 2010 SME Translation Server <translations@contribs.org> 0.1-21.sme |
109 |
- apply locale 2010-05-23 patch |
110 |
|
111 |
* Thu Mar 26 2010 Daniel B. <daniel@firewall-services.com> 0.1-20.sme |
112 |
- apply locale 2010-03-26 patch (fix navigation-conf) |
113 |
|
114 |
* Thu Mar 25 2010 Daniel B. <daniel@firewall-services.com> 0.1-19.sme |
115 |
- apply locale 2010-03-25 patch |
116 |
|
117 |
* Mon Mar 15 2010 Daniel B. <daniel@firewall-services.com> 0.1-18.sme |
118 |
- really apply manual_permissions patch |
119 |
|
120 |
* Mon Mar 08 2010 Daniel B. <daniel@firewall-services.com> 0.1-17.sme |
121 |
- Add an option to allow manual permissions (ManualPermissions) |
122 |
- remove unused .orig file |
123 |
- Exec CGI in cgi-bin directories |
124 |
|
125 |
* Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 0.1-16.sme |
126 |
- apply locale 2010-03-02 patch |
127 |
|
128 |
* Tue Nov 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-15.sme |
129 |
- apply locale 2009-11-17 patch |
130 |
|
131 |
* Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 0.1-14.sme |
132 |
- apply locale 2009-10-27 patch |
133 |
|
134 |
* Wed Oct 21 2009 Daniel B. <daniel@firewall-services.com> 0.1-13.sme |
135 |
- apply locale 2009-10-21 patch |
136 |
|
137 |
* Tue Oct 20 2009 Daniel B. <daniel@firewall-services.com> 0.1-12.sme |
138 |
- apply locale 2009-10-20 patch |
139 |
|
140 |
* Tue Sep 29 2009 Daniel B. <daniel@firewall-services.com> 0.1-11.sme |
141 |
- apply locale 2009-09-28 patch |
142 |
|
143 |
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 0.1-10.sme |
144 |
- apply locale 2009-08-24 patch |
145 |
|
146 |
* Wed Jul 22 2009 Daniel B. <daniel@firewall-services.com> 0.1-9.sme |
147 |
- Apply locale 2009-07-22 patch |
148 |
|
149 |
* Mon Jun 15 2009 Daniel B. <daniel@firewall-services.com> [0.1-8] |
150 |
- Apply locale 2009-06-15 patch |
151 |
|
152 |
* Mon May 25 2009 Daniel B. <daniel@firewall-services.com> [0.1-7] |
153 |
- Include hosts/networks defined in $externalSSLAccess for local access |
154 |
(httpAccess) |
155 |
|
156 |
* Mon May 25 2009 Daniel B. <daniel@firewall-services.com> [0.1-6] |
157 |
- Apply locale 2009-05-25 patch |
158 |
|
159 |
* Thu May 21 2009 Daniel B. <daniel@firewall-services.com> [0.1-5] |
160 |
- Add an empty template-begin for smb.conf template |
161 |
- Add locale 2009-05-21 patch (en-us) |
162 |
|
163 |
* Thu May 21 2009 Daniel B. <daniel@firewall-services.com> [0.1-4] |
164 |
- apply locale 2009-05-21 patch |
165 |
|
166 |
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 0.1-3.sme |
167 |
- apply locale 2009-05-20 patch |
168 |
|
169 |
* Wed May 13 2009 Daniel B. <daniel@firewall-services.com> [0.1-2] |
170 |
- add http access, with some options in the panel |
171 |
- present the keepversion option of the recylcebin in the panel |
172 |
- changes in db keys |
173 |
- remove some descriptions in the panel |
174 |
- optimization in share-modify to limit the time needed |
175 |
to reset permissions |
176 |
|
177 |
* Tue May 05 2009 Daniel B. <daniel@firewall-services.com> [0.1-1] |
178 |
- Add locale patch 2009-05-05 |
179 |
|
180 |
* Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta3] |
181 |
- Add acl option in fstab via the template system |
182 |
(just like usrquota and grpquota) |
183 |
|
184 |
* Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta2] |
185 |
- Rename spec file |
186 |
|
187 |
* Wed Apr 08 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta1] |
188 |
- Rename maxIbayNameLength to maxShareNameLength |
189 |
|
190 |
* Wed Apr 08 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta0] |
191 |
- Initial release. |
192 |
|
193 |
%prep |
194 |
%setup |
195 |
|
196 |
%patch0 -p1 |
197 |
%patch1 -p1 |
198 |
%patch2 -p1 |
199 |
%patch3 -p1 |
200 |
%patch4 -p1 |
201 |
%patch5 -p1 |
202 |
%patch6 -p1 |
203 |
%patch7 -p1 |
204 |
%patch8 -p1 |
205 |
%patch9 -p1 |
206 |
%patch10 -p1 |
207 |
%patch11 -p1 |
208 |
%patch12 -p1 |
209 |
%patch13 -p1 |
210 |
%patch14 -p1 |
211 |
%patch15 -p1 |
212 |
%patch16 -p1 |
213 |
%patch17 -p1 |
214 |
%patch18 -p1 |
215 |
%patch19 -p1 |
216 |
%patch20 -p1 |
217 |
%patch21 -p1 |
218 |
%patch22 -p1 |
219 |
%patch23 -p1 |
220 |
%patch24 -p1 |
221 |
%patch25 -p1 |
222 |
%patch26 -p1 |
223 |
%patch27 -p1 |
224 |
%patch28 -p1 |
225 |
%patch29 -p1 |
226 |
%patch30 -p1 |
227 |
%patch31 -p1 |
228 |
%patch32 -p1 |
229 |
%patch33 -p1 |
230 |
%patch34 -p1 |
231 |
%patch35 -p1 |
232 |
%patch36 -p1 |
233 |
%patch37 -p1 |
234 |
%patch38 -p1 |
235 |
%patch39 -p1 |
236 |
%patch40 -p1 |
237 |
|
238 |
%pre |
239 |
%post |
240 |
|
241 |
%build |
242 |
# Force creation of potentially empty directories |
243 |
mkdir -p root/etc/e-smith/web/{common,functions} |
244 |
mkdir -p root/etc/e-smith/web/panels/manager/{cgi-bin,common,html} |
245 |
mkdir -p root/home/e-smith/files/shares |
246 |
|
247 |
perl createlinks |
248 |
|
249 |
%install |
250 |
rm -rf $RPM_BUILD_ROOT |
251 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
252 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
253 |
--file /etc/cron.daily/purge-shares-recycle 'attr(0755,root,root)' \ |
254 |
> %{name}-%{version}-%{release}-filelist |
255 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
256 |
|
257 |
%clean |
258 |
rm -rf $RPM_BUILD_ROOT |
259 |
|
260 |
%files -f %{name}-%{version}-%{release}-filelist |
261 |
%defattr(-,root,root) |