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.11 2014/12/18 08:37:34 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 7 |
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 |
|
|
22 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
23 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
36 |
with more flexibility than ibays as it supports ACLs |
with more flexibility than ibays as it supports ACLs |
37 |
|
|
38 |
%changelog |
%changelog |
39 |
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-1.sme |
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.3-7.sme |
40 |
|
- Apply lcoale 2015-02-17 patch |
41 |
|
|
42 |
|
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-6.sme |
43 |
|
- Handle ext4 [SME: 8730] |
44 |
|
|
45 |
|
* Mon Jun 23 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-5.sme |
46 |
|
- Fix basic auth on EL6 |
47 |
|
|
48 |
|
* Mon Jan 13 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-4.sme |
49 |
|
- Add a missing CR in smb.conf templates |
50 |
|
|
51 |
|
* Mon Nov 25 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-3.sme |
52 |
|
- Dump ACL and extended attributes in /home/e-smith/db/shares if |
53 |
|
ManualPermissions is set |
54 |
|
|
55 |
|
* Tue Nov 12 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-2.sme |
56 |
|
- Remove expand link for fstab in post-upgrade |
57 |
|
|
58 |
|
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-1.sme |
59 |
- Rebuild for SME9 |
- Rebuild for SME9 |
60 |
|
|
61 |
* 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 |
354 |
|
|
355 |
%prep |
%prep |
356 |
%setup |
%setup |
357 |
|
%patch0 -p1 |
358 |
|
%patch1 -p1 |
359 |
|
%patch2 -p1 |
360 |
|
%patch3 -p1 |
361 |
|
%patch4 -p1 |
362 |
|
%patch5 -p1 |
363 |
|
|
364 |
%pre |
%pre |
365 |
/usr/sbin/useradd -c "Rsyncd User" \ |
/usr/sbin/useradd -c "Rsyncd User" \ |
373 |
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} |
374 |
mkdir -p root/home/e-smith/files/shares |
mkdir -p root/home/e-smith/files/shares |
375 |
mkdir -p root/var/log/rsyncd |
mkdir -p root/var/log/rsyncd |
376 |
|
mkdir -p root/home/e-smith/db/shares |
377 |
|
|
378 |
perl createlinks |
perl createlinks |
379 |
|
|
386 |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
387 |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
388 |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
389 |
|
--dir /home/e-smith/db/shares 'attr(0750,root,root)' \ |
390 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
391 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
392 |
|
|