1 |
# $Id: smeserver-shared-folders.spec,v 1.5 2013/10/29 16:04:59 vip-ire Exp $ |
# $Id: smeserver-shared-folders.spec,v 1.13 2015/12/18 11:12:48 vip-ire Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
6 |
%define name smeserver-shared-folders |
%define name smeserver-shared-folders |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 0.3 |
%define version 0.3 |
9 |
%define release 1 |
%define release 9 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
13 |
Group: Networking/Daemons |
Group: Networking/Daemons |
14 |
Source: %{name}-%{version}.tar.xz |
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 |
|
Patch4: smeserver-shared-folders-0.3-handle_ext4.patch |
20 |
|
Patch5: smeserver-shared-folders-0.3-locale-2015-02-17.patch |
21 |
|
Patch6: smeserver-shared-folders-0.3-locale-2015-12-18.patch |
22 |
|
Patch7: smeserver-shared-folders-0.3-veto_files.patch |
23 |
|
Patch8: smeserver-shared-folders-0.3-support_php_fpm.patch |
24 |
|
|
25 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
26 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
39 |
with more flexibility than ibays as it supports ACLs |
with more flexibility than ibays as it supports ACLs |
40 |
|
|
41 |
%changelog |
%changelog |
42 |
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-1.sme |
* Thu Jul 13 2017 Daniel Berteaud <daniel@firewall-services.com> 0.3-9.sme |
43 |
|
- Add support for php fpm (but don't require it yet) |
44 |
|
|
45 |
|
* Fri Dec 18 2015 Daniel Berteaud <daniel@firewall-services.com> 0.3-8.sme |
46 |
|
- Apply locale 2015-12-18 patch |
47 |
|
- Add veto files directive support |
48 |
|
|
49 |
|
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.3-7.sme |
50 |
|
- Apply lcoale 2015-02-17 patch |
51 |
|
|
52 |
|
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-6.sme |
53 |
|
- Handle ext4 [SME: 8730] |
54 |
|
|
55 |
|
* Mon Jun 23 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-5.sme |
56 |
|
- Fix basic auth on EL6 |
57 |
|
|
58 |
|
* Mon Jan 13 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-4.sme |
59 |
|
- Add a missing CR in smb.conf templates |
60 |
|
|
61 |
|
* Mon Nov 25 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-3.sme |
62 |
|
- Dump ACL and extended attributes in /home/e-smith/db/shares if |
63 |
|
ManualPermissions is set |
64 |
|
|
65 |
|
* Tue Nov 12 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-2.sme |
66 |
|
- Remove expand link for fstab in post-upgrade |
67 |
|
|
68 |
|
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-1.sme |
69 |
- Rebuild for SME9 |
- Rebuild for SME9 |
70 |
|
|
71 |
* Tue Oct 29 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1-83.sme |
* Tue Oct 29 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1-83.sme |
364 |
|
|
365 |
%prep |
%prep |
366 |
%setup |
%setup |
367 |
|
%patch0 -p1 |
368 |
|
%patch1 -p1 |
369 |
|
%patch2 -p1 |
370 |
|
%patch3 -p1 |
371 |
|
%patch4 -p1 |
372 |
|
%patch5 -p1 |
373 |
|
%patch6 -p1 |
374 |
|
%patch7 -p1 |
375 |
|
%patch8 -p1 |
376 |
|
|
377 |
%pre |
%pre |
378 |
/usr/sbin/useradd -c "Rsyncd User" \ |
/usr/sbin/useradd -c "Rsyncd User" \ |
386 |
mkdir -p root/etc/e-smith/web/panels/manager/{cgi-bin,common,html} |
mkdir -p root/etc/e-smith/web/panels/manager/{cgi-bin,common,html} |
387 |
mkdir -p root/home/e-smith/files/shares |
mkdir -p root/home/e-smith/files/shares |
388 |
mkdir -p root/var/log/rsyncd |
mkdir -p root/var/log/rsyncd |
389 |
|
mkdir -p root/home/e-smith/db/shares |
390 |
|
|
391 |
perl createlinks |
perl createlinks |
392 |
|
|
399 |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
400 |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
401 |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
402 |
|
--dir /home/e-smith/db/shares 'attr(0750,root,root)' \ |
403 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
404 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
405 |
|
|