1 |
# $Id: smeserver-BackupPC.spec,v 1.5 2019/11/26 04:10:47 jpp Exp $ |
# $Id: smeserver-BackupPC.spec,v 1.2 2020/11/04 09:53:55 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: 5%{?dist} |
8 |
Summary: BackupPC integration into SME server |
Summary: BackupPC integration into SME server |
9 |
|
|
10 |
Group: Applications/System |
Group: Applications/System |
12 |
URL: http://backuppc.sourceforge.net/ |
URL: http://backuppc.sourceforge.net/ |
13 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
14 |
Patch0: smeserver-BackupPC-0.2.bz10266.updatetktauth.patch |
Patch0: smeserver-BackupPC-0.2.bz10266.updatetktauth.patch |
15 |
|
Patch1: smeserver-BackupPC-0.2-Add-extra-loadmodules-in-httpd.conf.patch |
16 |
|
|
17 |
BuildRoot: %{_tmppath}/%{name}-%{version} |
BuildRoot: %{_tmppath}/%{name}-%{version} |
18 |
BuildArch: noarch |
BuildArch: noarch |
20 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
21 |
|
|
22 |
Requires: mod_auth_tkt |
Requires: mod_auth_tkt |
23 |
Requires: BackupPC >= 3.1.0 |
Requires: BackupPC >= 4.0.0 |
24 |
Requires: smeserver-remoteuseraccess |
Requires: smeserver-remoteuseraccess |
25 |
Requires: openssl |
Requires: openssl |
26 |
Requires: e-smith-manager >= 2.6.0-22 |
Requires: e-smith-manager >= 2.8.0 |
27 |
|
|
28 |
#Conflicts: smeserver-backuppc.fws |
#Conflicts: smeserver-backuppc.fws |
29 |
Obsoletes: smeserver-backuppc.fws |
Obsoletes: smeserver-backuppc.fws |
37 |
|
|
38 |
#---------------------------------------------------- |
#---------------------------------------------------- |
39 |
|
|
40 |
%package -n smeserver-BackupPC4 |
#%package -n smeserver-BackupPC4 |
41 |
Summary: BackupPC 4 integration into SME server |
#Summary: BackupPC 4 integration into SME server |
42 |
Group: Email |
#Group: Email |
43 |
Requires: BackupPC4 |
#Requires: BackupPC4 |
44 |
Conflicts: smeserver-BackupPC |
#Conflicts: smeserver-BackupPC |
45 |
|
|
46 |
%description -n smeserver-BackupPC4 |
#%description -n smeserver-BackupPC4 |
47 |
BackupPC is a high-performance, enterprise-grade system for backing up Linux |
#BackupPC is a high-performance, enterprise-grade system for backing up Linux |
48 |
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 |
49 |
and easy to install and maintain. |
#and easy to install and maintain. |
50 |
This package contains specific configuration for SME server |
#This package contains specific configuration for SME server |
51 |
|
|
52 |
#---------------------------------------------------- |
#---------------------------------------------------- |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
%changelog |
%changelog |
57 |
|
* Fri Nov 27 2020 Brian Read <brianr@bjsystems.co.uk> 0.2-5.sme |
58 |
|
- Add in extra Loadmodules to httpd.conf [SME: 11055] |
59 |
|
|
60 |
|
* Tue Oct 27 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-4.sme |
61 |
|
- Initial build for SME v10 [SME:11055] |
62 |
|
- Hard work done by Brian Read |
63 |
|
- Remove v3 option and revert to just smeserver-BackupPC |
64 |
|
|
65 |
* 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 |
66 |
- initial build to install BackupPC4fix [SME: 10514] |
- initial build to install BackupPC4fix [SME: 10514] |
67 |
|
|
129 |
- 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 |
130 |
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) |
131 |
|
|
132 |
* Wed May 11 2007 Daniel Berteaud <daniel@firewall-services.com> |
* Thu May 10 2007 Daniel Berteaud <daniel@firewall-services.com> |
133 |
- [3.0-1] |
- [3.0-1] |
134 |
- corrected default config for localhost (excluding by default /opt/backuppc and /selinux) |
- corrected default config for localhost (excluding by default /opt/backuppc and /selinux) |
135 |
- improvement of the rpm scriplets |
- improvement of the rpm scriplets |
147 |
%prep |
%prep |
148 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
149 |
%patch0 -p1 |
%patch0 -p1 |
150 |
|
%patch1 -p1 |
151 |
|
|
152 |
%build |
%build |
153 |
perl createlinks |
perl createlinks |
158 |
%{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/log/supervise |
%{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/log/supervise |
159 |
%{__mkdir} -p $RPM_BUILD_ROOT/var/log/httpd-bkpc |
%{__mkdir} -p $RPM_BUILD_ROOT/var/log/httpd-bkpc |
160 |
|
|
|
|
|
161 |
(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) |
162 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
163 |
|
|
164 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
165 |
--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)" \ |
166 |
--file /usr/share/BackupPC/bin/BackupPC_SME_usbArchive 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_usbArchive" "attr(0755,root,root)" \ |
167 |
--file /usr/share/BackupPC/bin/BackupPC_SME_usbCopyPool 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_usbCopyPool" "attr(0755,root,root)" \ |
168 |
--file /usr/share/BackupPC/bin/BackupPC_SME_localArchive 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_localArchive" "attr(0755,root,root)" \ |
169 |
--file /usr/share/BackupPC/bin/BackupPC_SME_localCopyPool 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_localCopyPool" "attr(0755,root,root)" \ |
170 |
--file /usr/share/BackupPC/bin/BackupPC_SME_remoteArchive 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_remoteArchive" "attr(0755,root,root)" \ |
171 |
--file /usr/share/BackupPC/bin/BackupPC_SME_remoteCopyPool 'attr(0755,root,root)' \ |
--file "/usr/share/BackupPC/bin/BackupPC_SME_remoteCopyPool" "attr(0755,root,root)" \ |
172 |
--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)" \ |
173 |
--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)" \ |
174 |
--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)" \ |
175 |
--file /etc/BackupPC/usbArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/usbArchive.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
176 |
--file /etc/BackupPC/usbCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/usbCopyPool.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
177 |
--file /etc/BackupPC/localArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/localArchive.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
178 |
--file /etc/BackupPC/localCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/localCopyPool.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
179 |
--file /etc/BackupPC/remoteArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/remoteArchive.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
180 |
--file /etc/BackupPC/remoteCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ |
--file "/etc/BackupPC/remoteCopyPool.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ |
181 |
--dir /etc/BackupPC/pc 'attr(750,backuppc,backuppc)' \ |
--dir "/etc/BackupPC/pc" "attr(750,backuppc,backuppc)" \ |
182 |
--dir /var/service/httpd-bkpc 'attr(01755,root,root)' \ |
--dir "/var/service/httpd-bkpc" "attr(01755,root,root)" \ |
183 |
--file /var/service/httpd-bkpc/run 'attr(0700,root,root)' \ |
--file "/var/service/httpd-bkpc/run" "attr(0700,root,root)" \ |
184 |
--dir /var/service/httpd-bkpc/supervise 'attr(0700,root,root)' \ |
--dir "/var/service/httpd-bkpc/supervise" "attr(0700,root,root)" \ |
185 |
--dir /var/service/httpd-bkpc/log 'attr(0755,root,root)' \ |
--dir "/var/service/httpd-bkpc/log" "attr(0755,root,root)" \ |
186 |
--file /var/service/httpd-bkpc/log/run 'attr(0755,root,root)' \ |
--file "/var/service/httpd-bkpc/log/run" "attr(0755,root,root)" \ |
187 |
--dir /var/service/httpd-bkpc/log/supervise 'attr(0700,root,root)' \ |
--dir "/var/service/httpd-bkpc/log/supervise" "attr(0700,root,root)" \ |
188 |
--dir /var/log/httpd-bkpc 'attr(0750,smelog,smelog)' \ |
--dir "/var/log/httpd-bkpc" "attr(0750,smelog,smelog)" \ |
189 |
> %{name}-%{version}-filelist |
--ignoredir "/root/var/" \ |
190 |
|
--ignoredir "/usr/share/BackupPC" \ |
191 |
|
--ignoredir "/usr/share/BackupPC/lib" \ |
192 |
|
--ignoredir "/usr/share/BackupPC/lib/BackupPC" \ |
193 |
|
--ignoredir "/etc/BackupPC" \ |
194 |
|
--ignoredir "/etc/httpd" \ |
195 |
|
> %{name}-%{version}-filelist |
196 |
|
|
197 |
|
|
198 |
%clean |
%clean |
199 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
200 |
|
|
201 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
|
%defattr(-,root,root) |
|
|
|
|
|
%files -n smeserver-BackupPC4 -f %{name}-%{version}-filelist |
|
202 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
203 |
|
|
204 |
|
#%files -n smeserver-BackupPC4 -f %{name}-%{version}-filelist |
205 |
|
#%defattr(-,root,root,-) |
206 |
|
|
207 |
|
|
208 |
%pre |
%pre |
209 |
#%{_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 || : |
210 |
%{_sbindir}/usermod -m -d /var/lib/BackupPC backuppc >& /dev/null || : |
%{_sbindir}/usermod -m -d /var/lib/BackupPC backuppc >& /dev/null || : |
211 |
|
|
212 |
|
%post |
213 |
|
systemctl enable backuppc |
214 |
|
systemctl start backuppc |
215 |
|
|
216 |
%preun |
%preun |
217 |
|
|
218 |
# Disable services, and stop them |
# Disable services, and stop them |
223 |
fi |
fi |
224 |
|
|
225 |
true |
true |
|
|
|