1 |
# $Id: smeserver-shared-folders.spec,v 1.5 2013/11/11 19:52:05 unnilennium Exp $ |
# $Id: smeserver-shared-folders.spec,v 1.12 2015/02/17 12:04:01 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 2 |
%define release 8 |
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 |
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 |
|
|
24 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
25 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
38 |
with more flexibility than ibays as it supports ACLs |
with more flexibility than ibays as it supports ACLs |
39 |
|
|
40 |
%changelog |
%changelog |
41 |
* Tue Nov 12 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-1.sme |
* Fri Dec 18 2015 Daniel Berteaud <daniel@firewall-services.com> 0.3-8.sme |
42 |
|
- Apply locale 2015-12-18 patch |
43 |
|
- Add veto files directive support |
44 |
|
|
45 |
|
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.3-7.sme |
46 |
|
- Apply lcoale 2015-02-17 patch |
47 |
|
|
48 |
|
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-6.sme |
49 |
|
- Handle ext4 [SME: 8730] |
50 |
|
|
51 |
|
* Mon Jun 23 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-5.sme |
52 |
|
- Fix basic auth on EL6 |
53 |
|
|
54 |
|
* Mon Jan 13 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-4.sme |
55 |
|
- Add a missing CR in smb.conf templates |
56 |
|
|
57 |
|
* Mon Nov 25 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-3.sme |
58 |
|
- Dump ACL and extended attributes in /home/e-smith/db/shares if |
59 |
|
ManualPermissions is set |
60 |
|
|
61 |
|
* Tue Nov 12 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-2.sme |
62 |
- Remove expand link for fstab in post-upgrade |
- Remove expand link for fstab in post-upgrade |
63 |
|
|
64 |
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-1.sme |
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-1.sme |
361 |
%prep |
%prep |
362 |
%setup |
%setup |
363 |
%patch0 -p1 |
%patch0 -p1 |
364 |
|
%patch1 -p1 |
365 |
|
%patch2 -p1 |
366 |
|
%patch3 -p1 |
367 |
|
%patch4 -p1 |
368 |
|
%patch5 -p1 |
369 |
|
%patch6 -p1 |
370 |
|
%patch7 -p1 |
371 |
|
|
372 |
%pre |
%pre |
373 |
/usr/sbin/useradd -c "Rsyncd User" \ |
/usr/sbin/useradd -c "Rsyncd User" \ |
381 |
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} |
382 |
mkdir -p root/home/e-smith/files/shares |
mkdir -p root/home/e-smith/files/shares |
383 |
mkdir -p root/var/log/rsyncd |
mkdir -p root/var/log/rsyncd |
384 |
|
mkdir -p root/home/e-smith/db/shares |
385 |
|
|
386 |
perl createlinks |
perl createlinks |
387 |
|
|
394 |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
395 |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
396 |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
397 |
|
--dir /home/e-smith/db/shares 'attr(0750,root,root)' \ |
398 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
399 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
400 |
|
|