1 |
# $Id: smeserver-BackupPC.spec,v 1.5 2019/11/26 04:10:47 jpp Exp $ |
# $Id: smeserver-BackupPC.spec,v 1.1 2020/10/26 14:35:59 brianr 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.2 |
Version: 0.2 |
7 |
Release: 3%{?dist} |
Release: 4%{?dist} |
8 |
Summary: BackupPC integration into SME server |
Summary: BackupPC integration into SME server |
9 |
|
|
10 |
Group: Applications/System |
Group: Applications/System |
19 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
20 |
|
|
21 |
Requires: mod_auth_tkt |
Requires: mod_auth_tkt |
22 |
Requires: BackupPC >= 3.1.0 |
Requires: BackupPC >= 4.0.0 |
23 |
Requires: smeserver-remoteuseraccess |
Requires: smeserver-remoteuseraccess |
24 |
Requires: openssl |
Requires: openssl |
25 |
Requires: e-smith-manager >= 2.6.0-22 |
Requires: e-smith-manager >= 2.8.0 |
26 |
|
|
27 |
#Conflicts: smeserver-backuppc.fws |
#Conflicts: smeserver-backuppc.fws |
28 |
Obsoletes: smeserver-backuppc.fws |
Obsoletes: smeserver-backuppc.fws |
36 |
|
|
37 |
#---------------------------------------------------- |
#---------------------------------------------------- |
38 |
|
|
39 |
%package -n smeserver-BackupPC4 |
#%package -n smeserver-BackupPC4 |
40 |
Summary: BackupPC 4 integration into SME server |
#Summary: BackupPC 4 integration into SME server |
41 |
Group: Email |
#Group: Email |
42 |
Requires: BackupPC4 |
#Requires: BackupPC4 |
43 |
Conflicts: smeserver-BackupPC |
#Conflicts: smeserver-BackupPC |
44 |
|
|
45 |
%description -n smeserver-BackupPC4 |
#%description -n smeserver-BackupPC4 |
46 |
BackupPC is a high-performance, enterprise-grade system for backing up Linux |
#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 |
#and WinXX PCs and laptops to a server's disk. BackupPC is highly configurable |
48 |
and easy to install and maintain. |
#and easy to install and maintain. |
49 |
This package contains specific configuration for SME server |
#This package contains specific configuration for SME server |
50 |
|
|
51 |
#---------------------------------------------------- |
#---------------------------------------------------- |
52 |
|
|
53 |
|
|
54 |
|
|
55 |
%changelog |
%changelog |
56 |
|
* Tue Oct 27 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-4.sme |
57 |
|
- Initial build for SME v10 [SME:11055] |
58 |
|
- Hard work done by Brian Read |
59 |
|
- Remove v3 option and revert to just smeserver-BackupPC |
60 |
|
|
61 |
* Mon Nov 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.2-3.sme |
* Mon Nov 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.2-3.sme |
62 |
- initial build to install BackupPC4fix [SME: 10514] |
- initial build to install BackupPC4fix [SME: 10514] |
63 |
|
|
125 |
- Some corrections in backup export scripts (*copyPool scipts still need to be re-written |
- Some corrections in backup export scripts (*copyPool scipts still need to be re-written |
126 |
to be more reliable, maybe with dump/restore, or dd, and with built-in support for LVM snapshots) |
to be more reliable, maybe with dump/restore, or dd, and with built-in support for LVM snapshots) |
127 |
|
|
128 |
* Wed May 11 2007 Daniel Berteaud <daniel@firewall-services.com> |
* Thu May 10 2007 Daniel Berteaud <daniel@firewall-services.com> |
129 |
- [3.0-1] |
- [3.0-1] |
130 |
- corrected default config for localhost (excluding by default /opt/backuppc and /selinux) |
- corrected default config for localhost (excluding by default /opt/backuppc and /selinux) |
131 |
- improvement of the rpm scriplets |
- improvement of the rpm scriplets |
153 |
%{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/log/supervise |
%{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/log/supervise |
154 |
%{__mkdir} -p $RPM_BUILD_ROOT/var/log/httpd-bkpc |
%{__mkdir} -p $RPM_BUILD_ROOT/var/log/httpd-bkpc |
155 |
|
|
|
|
|
156 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
157 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
158 |
|
|
159 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
160 |
--file /usr/share/BackupPC/bin/BackupPC_SME_pre-backup 'attr(0755,root,root) %config(noreplace)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_pre-backup" "attr(0755,root,root) %config(noreplace)" \ |
161 |
--file /usr/share/BackupPC/bin/BackupPC_SME_usbArchive 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_usbArchive" "attr(0755,root,root)" \ |
162 |
--file /usr/share/BackupPC/bin/BackupPC_SME_usbCopyPool 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_usbCopyPool" "attr(0755,root,root)" \ |
163 |
--file /usr/share/BackupPC/bin/BackupPC_SME_localArchive 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_localArchive" "attr(0755,root,root)" \ |
164 |
--file /usr/share/BackupPC/bin/BackupPC_SME_localCopyPool 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_localCopyPool" "attr(0755,root,root)" \ |
165 |
--file /usr/share/BackupPC/bin/BackupPC_SME_remoteArchive 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_remoteArchive" "attr(0755,root,root)" \ |
166 |
--file /usr/share/BackupPC/bin/BackupPC_SME_remoteCopyPool 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_remoteCopyPool" "attr(0755,root,root)" \ |
167 |
--file /etc/BackupPC/pc/localserver-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/pc/localserver-template.pl2" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
168 |
--file /etc/BackupPC/pc/smeserver-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/pc/smeserver-template.pl2" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
169 |
--file /etc/BackupPC/pc/windows-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/pc/windows-template.pl" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
170 |
--file /etc/BackupPC/usbArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/usbArchive.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
171 |
--file /etc/BackupPC/usbCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/usbCopyPool.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
172 |
--file /etc/BackupPC/localArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/localArchive.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
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)' \ |
--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)" \ |
180 |
--dir /var/service/httpd-bkpc/log 'attr(0755,root,root)' \ |
--dir "/var/service/httpd-bkpc/log" "attr(0755,root,root)" \ |
181 |
--file /var/service/httpd-bkpc/log/run 'attr(0755,root,root)' \ |
--file "/var/service/httpd-bkpc/log/run" "attr(0755,root,root)" \ |
182 |
--dir /var/service/httpd-bkpc/log/supervise 'attr(0700,root,root)' \ |
--dir "/var/service/httpd-bkpc/log/supervise" "attr(0700,root,root)" \ |
183 |
--dir /var/log/httpd-bkpc 'attr(0750,smelog,smelog)' \ |
--dir "/var/log/httpd-bkpc" "attr(0750,smelog,smelog)" \ |
184 |
> %{name}-%{version}-filelist |
--ignoredir "/root/var/" \ |
185 |
|
--ignoredir "/usr/share/BackupPC" \ |
186 |
|
--ignoredir "/usr/share/BackupPC/lib" \ |
187 |
|
--ignoredir "/usr/share/BackupPC/lib/BackupPC" \ |
188 |
|
--ignoredir "/etc/BackupPC" \ |
189 |
|
--ignoredir "/etc/httpd" \ |
190 |
|
> %{name}-%{version}-filelist |
191 |
|
|
192 |
|
|
193 |
%clean |
%clean |
194 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
195 |
|
|
196 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
|
%defattr(-,root,root) |
|
|
|
|
|
%files -n smeserver-BackupPC4 -f %{name}-%{version}-filelist |
|
197 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
198 |
|
|
199 |
|
#%files -n smeserver-BackupPC4 -f %{name}-%{version}-filelist |
200 |
|
#%defattr(-,root,root,-) |
201 |
|
|
202 |
|
|
203 |
%pre |
%pre |
204 |
#%{_sbindir}/useradd -c "BackupPC User" -m -d /home/e-smith/files/users/backuppc -r -s /sbin/nologin backuppc >& /dev/null || : |
#%{_sbindir}/useradd -c "BackupPC User" -m -d /home/e-smith/files/users/backuppc -r -s /sbin/nologin backuppc >& /dev/null || : |
205 |
%{_sbindir}/usermod -m -d /var/lib/BackupPC backuppc >& /dev/null || : |
%{_sbindir}/usermod -m -d /var/lib/BackupPC backuppc >& /dev/null || : |
206 |
|
|
207 |
|
%post |
208 |
|
systemctl enable backuppc |
209 |
|
systemctl start backuppc |
210 |
|
|
211 |
%preun |
%preun |
212 |
|
|
213 |
# Disable services, and stop them |
# Disable services, and stop them |
218 |
fi |
fi |
219 |
|
|
220 |
true |
true |
|
|
|