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.7 2013/11/12 12:53:43 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 3 |
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 |
|
|
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
32 |
with more flexibility than ibays as it supports ACLs |
with more flexibility than ibays as it supports ACLs |
33 |
|
|
34 |
%changelog |
%changelog |
35 |
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-1.sme |
* Mon Nov 25 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-3.sme |
36 |
|
- Dump ACL and extended attributes in /home/e-smith/db/shares if |
37 |
|
ManualPermissions is set |
38 |
|
|
39 |
|
* Tue Nov 12 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-2.sme |
40 |
|
- Remove expand link for fstab in post-upgrade |
41 |
|
|
42 |
|
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-1.sme |
43 |
- Rebuild for SME9 |
- Rebuild for SME9 |
44 |
|
|
45 |
* 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 |
338 |
|
|
339 |
%prep |
%prep |
340 |
%setup |
%setup |
341 |
|
%patch0 -p1 |
342 |
|
%patch1 -p1 |
343 |
|
|
344 |
%pre |
%pre |
345 |
/usr/sbin/useradd -c "Rsyncd User" \ |
/usr/sbin/useradd -c "Rsyncd User" \ |
353 |
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} |
354 |
mkdir -p root/home/e-smith/files/shares |
mkdir -p root/home/e-smith/files/shares |
355 |
mkdir -p root/var/log/rsyncd |
mkdir -p root/var/log/rsyncd |
356 |
|
mkdir -p root/home/e-smith/db/shares |
357 |
|
|
358 |
perl createlinks |
perl createlinks |
359 |
|
|
366 |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
367 |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
368 |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
369 |
|
--dir /home/e-smith/db/shares 'attr(0750,root,root)' \ |
370 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
371 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
372 |
|
|