1 |
# $Id: smeserver-shared-folders.spec,v 1.6 2013/11/12 12:53:16 vip-ire Exp $ |
# $Id: smeserver-shared-folders.spec,v 1.10 2014/06/23 17:26:29 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 6 |
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 |
|
|
21 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
35 |
with more flexibility than ibays as it supports ACLs |
with more flexibility than ibays as it supports ACLs |
36 |
|
|
37 |
%changelog |
%changelog |
38 |
|
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-6.sme |
39 |
|
- Handle ext4 [SME: 8730] |
40 |
|
|
41 |
|
* Mon Jun 23 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-5.sme |
42 |
|
- Fix basic auth on EL6 |
43 |
|
|
44 |
|
* Mon Jan 13 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-4.sme |
45 |
|
- Add a missing CR in smb.conf templates |
46 |
|
|
47 |
|
* Mon Nov 25 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-3.sme |
48 |
|
- Dump ACL and extended attributes in /home/e-smith/db/shares if |
49 |
|
ManualPermissions is set |
50 |
|
|
51 |
* Tue Nov 12 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-2.sme |
* Tue Nov 12 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-2.sme |
52 |
- Remove expand link for fstab in post-upgrade |
- Remove expand link for fstab in post-upgrade |
53 |
|
|
351 |
%prep |
%prep |
352 |
%setup |
%setup |
353 |
%patch0 -p1 |
%patch0 -p1 |
354 |
|
%patch1 -p1 |
355 |
|
%patch2 -p1 |
356 |
|
%patch3 -p1 |
357 |
|
%patch4 -p1 |
358 |
|
|
359 |
%pre |
%pre |
360 |
/usr/sbin/useradd -c "Rsyncd User" \ |
/usr/sbin/useradd -c "Rsyncd User" \ |
368 |
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} |
369 |
mkdir -p root/home/e-smith/files/shares |
mkdir -p root/home/e-smith/files/shares |
370 |
mkdir -p root/var/log/rsyncd |
mkdir -p root/var/log/rsyncd |
371 |
|
mkdir -p root/home/e-smith/db/shares |
372 |
|
|
373 |
perl createlinks |
perl createlinks |
374 |
|
|
381 |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
382 |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
383 |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
384 |
|
--dir /home/e-smith/db/shares 'attr(0750,root,root)' \ |
385 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
386 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
387 |
|
|