1 |
# $Id: smeserver-shared-folders.spec,v 1.66 2012/02/17 17:25:22 vip-ire Exp $ |
# $Id: smeserver-shared-folders.spec,v 1.69 2012/02/18 20:38:39 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.1 |
%define version 0.1 |
9 |
%define release 64 |
%define release 67 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
92 |
Patch76: smeserver-shared-folders-0.1-fixe_users_locale.patch |
Patch76: smeserver-shared-folders-0.1-fixe_users_locale.patch |
93 |
Patch77: smeserver-shared-folders-0.1-http_remove_ro_from_rw.patch |
Patch77: smeserver-shared-folders-0.1-http_remove_ro_from_rw.patch |
94 |
Patch78: smeserver-shared-folders-0.1-http_template_cleanup.patch |
Patch78: smeserver-shared-folders-0.1-http_template_cleanup.patch |
95 |
|
Patch79: smeserver-shared-folders-0.1-fix_root_users_acl.patch |
96 |
|
Patch80: smeserver-shared-folders-0.1-locale-2012-02-18.patch |
97 |
|
Patch81: smeserver-shared-folders-0.1-rsyncd.patch |
98 |
|
|
99 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
100 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
113 |
with more flexibility than ibays as it supports ACLs |
with more flexibility than ibays as it supports ACLs |
114 |
|
|
115 |
%changelog |
%changelog |
116 |
|
* Thu Mar 01 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-67.sme |
117 |
|
- Add rsyncd support |
118 |
|
|
119 |
|
* Sat Feb 18 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-66.sme |
120 |
|
- Fix bg locale |
121 |
|
|
122 |
|
* Sat Feb 18 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-65.sme |
123 |
|
- Fix root ACL for users |
124 |
|
- Apply locale 2012-02-18 patch |
125 |
|
|
126 |
* Sat Feb 18 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-64.sme |
* Sat Feb 18 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-64.sme |
127 |
- In http access, remove ro users from rw list |
- In http access, remove ro users from rw list |
128 |
- templates cleanup |
- templates cleanup |
436 |
%patch76 -p1 |
%patch76 -p1 |
437 |
%patch77 -p1 |
%patch77 -p1 |
438 |
%patch78 -p1 |
%patch78 -p1 |
439 |
|
%patch79 -p1 |
440 |
|
%patch80 -p1 |
441 |
|
%patch81 -p1 |
442 |
|
|
443 |
%pre |
%pre |
444 |
|
/usr/sbin/useradd -c "Rsyncd User" \ |
445 |
|
-s /sbin/nologin -r -d /dev/null rsync 2> /dev/null || : |
446 |
|
|
447 |
%post |
%post |
448 |
|
|
449 |
%build |
%build |
451 |
mkdir -p root/etc/e-smith/web/{common,functions} |
mkdir -p root/etc/e-smith/web/{common,functions} |
452 |
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} |
453 |
mkdir -p root/home/e-smith/files/shares |
mkdir -p root/home/e-smith/files/shares |
454 |
|
mkdir -p root/var/log/rsyncd |
455 |
|
|
456 |
perl createlinks |
perl createlinks |
457 |
|
|
461 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
462 |
--file /etc/cron.daily/purge-shares-recycle 'attr(0755,root,root)' \ |
--file /etc/cron.daily/purge-shares-recycle 'attr(0755,root,root)' \ |
463 |
--file /etc/sysconfig/modules/fuse.modules 'attr(0755,root,root)' \ |
--file /etc/sysconfig/modules/fuse.modules 'attr(0755,root,root)' \ |
464 |
|
--file /var/service/rsyncd/run 'attr(0755,root,root)' \ |
465 |
|
--file /var/service/rsyncd/log/run 'attr(0755,root,root)' \ |
466 |
|
--dir /var/log/rsyncd 'attr(0770,root,smelog)' \ |
467 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
468 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
469 |
|
|