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.15 2017/07/13 13:21:25 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 11 |
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 |
|
Patch8: smeserver-shared-folders-0.3-support_php_fpm.patch |
24 |
|
Patch9: smeserver-shared-folders-0.3-locale-2019-12-07.patch |
25 |
|
|
26 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
27 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
40 |
with more flexibility than ibays as it supports ACLs |
with more flexibility than ibays as it supports ACLs |
41 |
|
|
42 |
%changelog |
%changelog |
43 |
|
* Sat Dec 07 2019 SME Translation Server <translations@contribs.org> 0.3-11.sme |
44 |
|
- apply locale 2019-12-07 patch |
45 |
|
|
46 |
|
* Thu Jul 13 2017 Daniel Berteaud <daniel@firewall-services.com> 0.3-10.sme |
47 |
|
- Missing \n in httpd templates when using mod_fastcgi |
48 |
|
|
49 |
|
* Thu Jul 13 2017 Daniel Berteaud <daniel@firewall-services.com> 0.3-9.sme |
50 |
|
- Add support for php fpm (but don't require it yet) |
51 |
|
|
52 |
|
* Fri Dec 18 2015 Daniel Berteaud <daniel@firewall-services.com> 0.3-8.sme |
53 |
|
- Apply locale 2015-12-18 patch |
54 |
|
- Add veto files directive support |
55 |
|
|
56 |
|
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.3-7.sme |
57 |
|
- Apply lcoale 2015-02-17 patch |
58 |
|
|
59 |
|
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-6.sme |
60 |
|
- Handle ext4 [SME: 8730] |
61 |
|
|
62 |
|
* Mon Jun 23 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-5.sme |
63 |
|
- Fix basic auth on EL6 |
64 |
|
|
65 |
|
* Mon Jan 13 2014 Daniel Berteaud <daniel@firewall-services.com> 0.3-4.sme |
66 |
|
- Add a missing CR in smb.conf templates |
67 |
|
|
68 |
|
* Mon Nov 25 2013 Daniel Berteaud <daniel@firewall-services.com> 0.3-3.sme |
69 |
|
- Dump ACL and extended attributes in /home/e-smith/db/shares if |
70 |
|
ManualPermissions is set |
71 |
|
|
72 |
* 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 |
73 |
- Remove expand link for fstab in post-upgrade |
- Remove expand link for fstab in post-upgrade |
74 |
|
|
372 |
%prep |
%prep |
373 |
%setup |
%setup |
374 |
%patch0 -p1 |
%patch0 -p1 |
375 |
|
%patch1 -p1 |
376 |
|
%patch2 -p1 |
377 |
|
%patch3 -p1 |
378 |
|
%patch4 -p1 |
379 |
|
%patch5 -p1 |
380 |
|
%patch6 -p1 |
381 |
|
%patch7 -p1 |
382 |
|
%patch8 -p1 |
383 |
|
%patch9 -p1 |
384 |
|
|
385 |
%pre |
%pre |
386 |
/usr/sbin/useradd -c "Rsyncd User" \ |
/usr/sbin/useradd -c "Rsyncd User" \ |
394 |
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} |
395 |
mkdir -p root/home/e-smith/files/shares |
mkdir -p root/home/e-smith/files/shares |
396 |
mkdir -p root/var/log/rsyncd |
mkdir -p root/var/log/rsyncd |
397 |
|
mkdir -p root/home/e-smith/db/shares |
398 |
|
|
399 |
perl createlinks |
perl createlinks |
400 |
|
|
407 |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
408 |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
409 |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
410 |
|
--dir /home/e-smith/db/shares 'attr(0750,root,root)' \ |
411 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
412 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
413 |
|
|