1 |
# $Id: smeserver-BackupPC.spec,v 1.2 2009/03/02 17:43:46 slords Exp $ |
# $Id: smeserver-BackupPC.spec,v 1.10 2009/06/16 14:44:44 vip-ire Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
5 |
Name: smeserver-BackupPC |
Name: smeserver-BackupPC |
6 |
Version: 0.1 |
Version: 0.1 |
7 |
Release: 4%{?dist} |
Release: 12%{?dist} |
8 |
Summary: BackupPC integration into SME server |
Summary: BackupPC integration into SME server |
9 |
|
|
10 |
Group: Applications/System |
Group: Applications/System |
11 |
License: GPL |
License: GPL |
12 |
URL: http://backuppc.sourceforge.net/ |
URL: http://backuppc.sourceforge.net/ |
13 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
14 |
Patch0: smeserver-BackupPC-0.1-logrotate.patch |
Patch0: smeserver-BackupPC-0.1-logrotate.patch |
15 |
Patch1: smeserver-BackupPC-0.1-config_path.patch |
Patch1: smeserver-BackupPC-0.1-config_path.patch |
16 |
Patch2: smeserver-BackupPC-0.1-post-upgrade_to_bootstrape.patch |
Patch2: smeserver-BackupPC-0.1-post-upgrade_to_bootstrape.patch |
17 |
Patch3: smeserver-BackupPC-0.1-sudoers.patch |
Patch3: smeserver-BackupPC-0.1-sudoers.patch |
18 |
Patch4: smeserver-BackupPC-0.1-smeserver_template.patch |
Patch4: smeserver-BackupPC-0.1-smeserver_template.patch |
19 |
Patch5: smeserver-BackupPC-0.1-fix_logrotate_event.patch |
Patch5: smeserver-BackupPC-0.1-fix_logrotate_event.patch |
20 |
|
Patch6: smeserver-BackupPC-0.1-sudoers_enhancement.patch |
21 |
|
Patch7: smeserver-BackupPC-0.1-templates_fixes.patch |
22 |
BuildRoot: %{_tmppath}/%{name}-%{version} |
Patch8: smeserver-BackupPC-0.1-httpd_conf_cleanup.patch |
23 |
BuildArch: noarch |
Patch9: smeserver-BackupPC-0.1-quotes_share_name.patch |
24 |
|
Patch10: smeserver-BackupPC-0.1-fixe_on_post_upgrade.patch |
25 |
BuildRequires: e-smith-devtools |
Patch11: smeserver-BackupPC-0.1-encrypt_archives.patch |
26 |
|
Patch12: smeserver-BackupPC-0.1-generate_key_file.patch |
27 |
Requires: mod_auth_tkt |
Patch13: smeserver-BackupPC-0.1-fixe_chmod.patch |
28 |
Requires: BackupPC >= 3.1.0 |
Patch14: smeserver-BackupPC-0.1-full_path.patch |
29 |
Requires: smeserver-remoteuseraccess |
Patch15: smeserver-BackupPC-0.1-remove_quotes.patch |
30 |
|
Patch16: smeserver-BackupPC-0.1-pbzip2.patch |
31 |
|
|
32 |
|
BuildRoot: %{_tmppath}/%{name}-%{version} |
33 |
|
BuildArch: noarch |
34 |
|
|
35 |
|
BuildRequires: e-smith-devtools |
36 |
|
|
37 |
|
Requires: mod_auth_tkt |
38 |
|
Requires: BackupPC >= 3.1.0 |
39 |
|
Requires: smeserver-remoteuseraccess |
40 |
|
Requires: openssl |
41 |
|
|
42 |
#Conflicts: smeserver-backuppc.fws |
#Conflicts: smeserver-backuppc.fws |
43 |
Obsoletes: smeserver-backuppc.fws |
Obsoletes: smeserver-backuppc.fws |
51 |
|
|
52 |
|
|
53 |
%changelog |
%changelog |
54 |
|
* Mon Nov 29 2010 Daniel B. <daniel@firewall-services.com> 0.1-12.sme |
55 |
|
- Support pbzip2 for archiving |
56 |
|
- Use nice to reduce the priority of compression |
57 |
|
|
58 |
|
* Tue Jun 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-11] |
59 |
|
- Remove double quotes when calling signal-event with ssh [SME: 5302] |
60 |
|
|
61 |
|
* Fri May 29 2009 Daniel B. <daniel@firewall-services.com> [0.1-10] |
62 |
|
- Call signal-event with it full path in smeserver-template.pl [SME: 5302] |
63 |
|
|
64 |
|
* Tue May 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-9] |
65 |
|
- Add optionnal encryption of archives generated with BackupPC_SME_localArchive |
66 |
|
BackupPC_SME_usbArchive and BackupPC_SME_remoteArchive using openssl |
67 |
|
- Generate a key and save it in /etc/BackupPC/archive.key |
68 |
|
- Fixe permission restriction on /etc/BackupPC/* |
69 |
|
|
70 |
|
* Thu May 07 2009 Daniel B. <daniel@firewall-services.com> [0.1-8] |
71 |
|
- Link backuppc-checkupgrade script in post-upgrade event |
72 |
|
so the contrib is correctly configured without running backuppc-update |
73 |
|
event [SME: 5221] |
74 |
|
|
75 |
|
* Tue May 05 2009 Daniel B. <daniel@firewall-services.com> [0.1-7] |
76 |
|
- Fixe permissions on /etc/BackupPC/pc |
77 |
|
|
78 |
|
* Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-6] |
79 |
|
- modify default httpd conf (cleanup) to use the new paths |
80 |
|
- Add quotes in share names for *Archive.conf files |
81 |
|
- Enhance provided template |
82 |
|
|
83 |
|
* Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [0.1-5] |
84 |
|
- Enhance sudoers templates |
85 |
|
|
86 |
* Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-4] |
* Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-4] |
87 |
- Fix logrotate issue (send a sigusr1 signal to httpd-bkpc) |
- Fix logrotate issue (send a sigusr1 signal to httpd-bkpc) |
88 |
|
|
132 |
%patch3 -p1 |
%patch3 -p1 |
133 |
%patch4 -p1 |
%patch4 -p1 |
134 |
%patch5 -p1 |
%patch5 -p1 |
135 |
|
%patch6 -p1 |
136 |
|
%patch7 -p1 |
137 |
|
%patch8 -p1 |
138 |
|
%patch9 -p1 |
139 |
|
%patch10 -p1 |
140 |
|
%patch11 -p1 |
141 |
|
%patch12 -p1 |
142 |
|
%patch13 -p1 |
143 |
|
%patch14 -p1 |
144 |
|
%patch15 -p1 |
145 |
|
%patch16 -p1 |
146 |
|
|
147 |
%build |
%build |
148 |
perl createlinks |
perl createlinks |
173 |
--file /etc/BackupPC/localCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file /etc/BackupPC/localCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
174 |
--file /etc/BackupPC/remoteArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file /etc/BackupPC/remoteArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
175 |
--file /etc/BackupPC/remoteCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file /etc/BackupPC/remoteCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
176 |
|
--dir /etc/BackupPC/pc 'attr(750,backuppc,backuppc)' \ |
177 |
--dir /var/service/httpd-bkpc 'attr(01755,root,root)' \ |
--dir /var/service/httpd-bkpc 'attr(01755,root,root)' \ |
178 |
--file /var/service/httpd-bkpc/run 'attr(0700,root,root)' \ |
--file /var/service/httpd-bkpc/run 'attr(0700,root,root)' \ |
179 |
--dir /var/service/httpd-bkpc/supervise 'attr(0700,root,root)' \ |
--dir /var/service/httpd-bkpc/supervise 'attr(0700,root,root)' \ |