1 |
# $Id: smeserver-BackupPC.spec,v 1.4 2017/05/03 19:35:41 unnilennium Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
Name: smeserver-BackupPC |
6 |
Version: 0.2 |
7 |
Release: 3%{?dist} |
8 |
Summary: BackupPC integration into SME server |
9 |
|
10 |
Group: Applications/System |
11 |
License: GPL |
12 |
URL: http://backuppc.sourceforge.net/ |
13 |
Source: %{name}-%{version}.tar.xz |
14 |
Patch0: smeserver-BackupPC-0.2.bz10266.updatetktauth.patch |
15 |
|
16 |
BuildRoot: %{_tmppath}/%{name}-%{version} |
17 |
BuildArch: noarch |
18 |
|
19 |
BuildRequires: e-smith-devtools |
20 |
|
21 |
Requires: mod_auth_tkt |
22 |
Requires: BackupPC >= 3.1.0 |
23 |
Requires: smeserver-remoteuseraccess |
24 |
Requires: openssl |
25 |
Requires: e-smith-manager >= 2.6.0-22 |
26 |
|
27 |
#Conflicts: smeserver-backuppc.fws |
28 |
Obsoletes: smeserver-backuppc.fws |
29 |
|
30 |
|
31 |
%description |
32 |
BackupPC is a high-performance, enterprise-grade system for backing up Linux |
33 |
and WinXX PCs and laptops to a server's disk. BackupPC is highly configurable |
34 |
and easy to install and maintain. |
35 |
This package contains specific configuration for SME server |
36 |
|
37 |
#---------------------------------------------------- |
38 |
|
39 |
%package -n smeserver-BackupPC4 |
40 |
Summary: BackupPC 4 integration into SME server |
41 |
Group: Email |
42 |
Requires: BackupPC4 |
43 |
Conflicts: smeserver-BackupPC |
44 |
|
45 |
%description -n smeserver-BackupPC4 |
46 |
BackupPC is a high-performance, enterprise-grade system for backing up Linux |
47 |
and WinXX PCs and laptops to a server's disk. BackupPC is highly configurable |
48 |
and easy to install and maintain. |
49 |
This package contains specific configuration for SME server |
50 |
|
51 |
#---------------------------------------------------- |
52 |
|
53 |
|
54 |
|
55 |
%changelog |
56 |
* Mon Nov 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.2-3.sme |
57 |
- initial build to install BackupPC4fix [SME: 10514] |
58 |
|
59 |
* Wed May 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.2-2.sme |
60 |
- update TKT auth parameter for SME 9.2 update [SME: 10266] |
61 |
|
62 |
* Tue Nov 12 2013 Daniel B. <daniel@firewall-services.com> 0.2-1.sme |
63 |
- Rebuild for SME9 |
64 |
|
65 |
* Mon Nov 29 2010 Daniel B. <daniel@firewall-services.com> 0.1-12.sme |
66 |
- Support pbzip2 for archiving |
67 |
- Use nice to reduce the priority of compression |
68 |
|
69 |
* Tue Jun 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-11] |
70 |
- Remove double quotes when calling signal-event with ssh [SME: 5302] |
71 |
|
72 |
* Fri May 29 2009 Daniel B. <daniel@firewall-services.com> [0.1-10] |
73 |
- Call signal-event with it full path in smeserver-template.pl [SME: 5302] |
74 |
|
75 |
* Tue May 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-9] |
76 |
- Add optionnal encryption of archives generated with BackupPC_SME_localArchive |
77 |
BackupPC_SME_usbArchive and BackupPC_SME_remoteArchive using openssl |
78 |
- Generate a key and save it in /etc/BackupPC/archive.key |
79 |
- Fixe permission restriction on /etc/BackupPC/* |
80 |
|
81 |
* Thu May 07 2009 Daniel B. <daniel@firewall-services.com> [0.1-8] |
82 |
- Link backuppc-checkupgrade script in post-upgrade event |
83 |
so the contrib is correctly configured without running backuppc-update |
84 |
event [SME: 5221] |
85 |
|
86 |
* Tue May 05 2009 Daniel B. <daniel@firewall-services.com> [0.1-7] |
87 |
- Fixe permissions on /etc/BackupPC/pc |
88 |
|
89 |
* Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-6] |
90 |
- modify default httpd conf (cleanup) to use the new paths |
91 |
- Add quotes in share names for *Archive.conf files |
92 |
- Enhance provided template |
93 |
|
94 |
* Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [0.1-5] |
95 |
- Enhance sudoers templates |
96 |
|
97 |
* Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-4] |
98 |
- Fix logrotate issue (send a sigusr1 signal to httpd-bkpc) |
99 |
|
100 |
* Tue Jan 20 2009 Daniel B. <daniel@firewall-services.com> [0.1-3] |
101 |
- Update Exclude path for smeserver config example |
102 |
|
103 |
* Thu Dec 11 2008 Daniel B. <daniel@firewall-services.com> [0.1-2] |
104 |
- Revert config and logs paths to their default location |
105 |
- Expand-templates during bootrape-console-save instead of post-upgrade |
106 |
- Remove sudoers templates.metadata to prevent conflict, added smeserver-remoteuseraccess |
107 |
as a dependency |
108 |
|
109 |
* Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-1] |
110 |
- Fix logrotate issue |
111 |
|
112 |
* Thu Aug 14 2008 Daniel B. <daniel@firewall-services.com> [0.1-0] |
113 |
- Adapted to work with 3.1.0 |
114 |
- Split smeserver specific stuff in a separate srpm |
115 |
- Remove pre-compiled binaries from the srpm (par2cmdline must be downloaded separatly if needed) |
116 |
- A dedicated httpd instance is used (running under backuppc user). This increase security as |
117 |
user www no longer has access to backuppc data. |
118 |
- Authentication is integrated with the server-manager (no need to login two times now) |
119 |
- Added some config example (with backups disabled). These can be used as templates for other hosts |
120 |
- Some corrections in backup export scripts (*copyPool scipts still need to be re-written |
121 |
to be more reliable, maybe with dump/restore, or dd, and with built-in support for LVM snapshots) |
122 |
|
123 |
* Wed May 11 2007 Daniel Berteaud <daniel@firewall-services.com> |
124 |
- [3.0-1] |
125 |
- corrected default config for localhost (excluding by default /opt/backuppc and /selinux) |
126 |
- improvement of the rpm scriplets |
127 |
- start and stop script linked to e-smith-service |
128 |
- scripts for offline backups |
129 |
- par2 included |
130 |
|
131 |
* Tue Jan 30 2007 Daniel Berteaud <daniel@firewall-services.com> |
132 |
- [3.0-0] |
133 |
- rpm package |
134 |
- script BackupPC_SME_remoteBackup to remotly backup the pool (to another UNIX host) |
135 |
|
136 |
|
137 |
|
138 |
%prep |
139 |
%setup -q -n %{name}-%{version} |
140 |
%patch0 -p1 |
141 |
|
142 |
%build |
143 |
perl createlinks |
144 |
|
145 |
%install |
146 |
|
147 |
%{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/supervise |
148 |
%{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/log/supervise |
149 |
%{__mkdir} -p $RPM_BUILD_ROOT/var/log/httpd-bkpc |
150 |
|
151 |
|
152 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
153 |
/bin/rm -f %{name}-%{version}-filelist |
154 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
155 |
--file /usr/share/BackupPC/bin/BackupPC_SME_pre-backup 'attr(0755,root,root) %config(noreplace)' \ |
156 |
--file /usr/share/BackupPC/bin/BackupPC_SME_usbArchive 'attr(0755,root,root)' \ |
157 |
--file /usr/share/BackupPC/bin/BackupPC_SME_usbCopyPool 'attr(0755,root,root)' \ |
158 |
--file /usr/share/BackupPC/bin/BackupPC_SME_localArchive 'attr(0755,root,root)' \ |
159 |
--file /usr/share/BackupPC/bin/BackupPC_SME_localCopyPool 'attr(0755,root,root)' \ |
160 |
--file /usr/share/BackupPC/bin/BackupPC_SME_remoteArchive 'attr(0755,root,root)' \ |
161 |
--file /usr/share/BackupPC/bin/BackupPC_SME_remoteCopyPool 'attr(0755,root,root)' \ |
162 |
--file /etc/BackupPC/pc/localserver-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
163 |
--file /etc/BackupPC/pc/smeserver-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
164 |
--file /etc/BackupPC/pc/windows-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
165 |
--file /etc/BackupPC/usbArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
166 |
--file /etc/BackupPC/usbCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
167 |
--file /etc/BackupPC/localArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
168 |
--file /etc/BackupPC/localCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
169 |
--file /etc/BackupPC/remoteArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
170 |
--file /etc/BackupPC/remoteCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
171 |
--dir /etc/BackupPC/pc 'attr(750,backuppc,backuppc)' \ |
172 |
--dir /var/service/httpd-bkpc 'attr(01755,root,root)' \ |
173 |
--file /var/service/httpd-bkpc/run 'attr(0700,root,root)' \ |
174 |
--dir /var/service/httpd-bkpc/supervise 'attr(0700,root,root)' \ |
175 |
--dir /var/service/httpd-bkpc/log 'attr(0755,root,root)' \ |
176 |
--file /var/service/httpd-bkpc/log/run 'attr(0755,root,root)' \ |
177 |
--dir /var/service/httpd-bkpc/log/supervise 'attr(0700,root,root)' \ |
178 |
--dir /var/log/httpd-bkpc 'attr(0750,smelog,smelog)' \ |
179 |
> %{name}-%{version}-filelist |
180 |
|
181 |
|
182 |
%clean |
183 |
rm -rf $RPM_BUILD_ROOT |
184 |
|
185 |
%files -f %{name}-%{version}-filelist |
186 |
%defattr(-,root,root) |
187 |
|
188 |
%files -n smeserver-BackupPC4 -f %{name}-%{version}-filelist |
189 |
%defattr(-,root,root,-) |
190 |
|
191 |
|
192 |
%pre |
193 |
#%{_sbindir}/useradd -c "BackupPC User" -m -d /home/e-smith/files/users/backuppc -r -s /sbin/nologin backuppc >& /dev/null || : |
194 |
%{_sbindir}/usermod -m -d /var/lib/BackupPC backuppc >& /dev/null || : |
195 |
|
196 |
%preun |
197 |
|
198 |
# Disable services, and stop them |
199 |
if [ $1 = 0 ]; then # Uninstall only, not upgrade |
200 |
db configuration setprop backuppc status disabled >& /dev/null || : |
201 |
db configuration setprop httpd-bkpc status disabled >& /dev/null || : |
202 |
service backuppc stop >& /dev/null || : |
203 |
fi |
204 |
|
205 |
true |
206 |
|