--- rpms/smeserver-BackupPC/contribs10/smeserver-BackupPC.spec 2020/10/26 14:35:59 1.1 +++ rpms/smeserver-BackupPC/contribs10/smeserver-BackupPC.spec 2020/11/04 09:53:55 1.2 @@ -1,10 +1,10 @@ -# $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 $ # Authority: vip-ire # Name: Daniel Berteaud Name: smeserver-BackupPC Version: 0.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: BackupPC integration into SME server Group: Applications/System @@ -19,10 +19,10 @@ BuildArch: noarch BuildRequires: e-smith-devtools Requires: mod_auth_tkt -Requires: BackupPC >= 3.1.0 +Requires: BackupPC >= 4.0.0 Requires: smeserver-remoteuseraccess Requires: openssl -Requires: e-smith-manager >= 2.6.0-22 +Requires: e-smith-manager >= 2.8.0 #Conflicts: smeserver-backuppc.fws Obsoletes: smeserver-backuppc.fws @@ -36,23 +36,28 @@ This package contains specific configura #---------------------------------------------------- -%package -n smeserver-BackupPC4 -Summary: BackupPC 4 integration into SME server -Group: Email -Requires: BackupPC4 -Conflicts: smeserver-BackupPC - -%description -n smeserver-BackupPC4 -BackupPC is a high-performance, enterprise-grade system for backing up Linux -and WinXX PCs and laptops to a server's disk. BackupPC is highly configurable -and easy to install and maintain. -This package contains specific configuration for SME server +#%package -n smeserver-BackupPC4 +#Summary: BackupPC 4 integration into SME server +#Group: Email +#Requires: BackupPC4 +#Conflicts: smeserver-BackupPC + +#%description -n smeserver-BackupPC4 +#BackupPC is a high-performance, enterprise-grade system for backing up Linux +#and WinXX PCs and laptops to a server's disk. BackupPC is highly configurable +#and easy to install and maintain. +#This package contains specific configuration for SME server #---------------------------------------------------- %changelog +* Tue Oct 27 2020 John Crisp 0.2-4.sme +- Initial build for SME v10 [SME:11055] +- Hard work done by Brian Read +- Remove v3 option and revert to just smeserver-BackupPC + * Mon Nov 25 2019 Jean-Philipe Pialasse 0.2-3.sme - initial build to install BackupPC4fix [SME: 10514] @@ -120,7 +125,7 @@ This package contains specific configura - Some corrections in backup export scripts (*copyPool scipts still need to be re-written to be more reliable, maybe with dump/restore, or dd, and with built-in support for LVM snapshots) -* Wed May 11 2007 Daniel Berteaud +* Thu May 10 2007 Daniel Berteaud - [3.0-1] - corrected default config for localhost (excluding by default /opt/backuppc and /selinux) - improvement of the rpm scriplets @@ -148,51 +153,61 @@ perl createlinks %{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/log/supervise %{__mkdir} -p $RPM_BUILD_ROOT/var/log/httpd-bkpc - (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) /bin/rm -f %{name}-%{version}-filelist + /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ - --file /usr/share/BackupPC/bin/BackupPC_SME_pre-backup 'attr(0755,root,root) %config(noreplace)' \ - --file /usr/share/BackupPC/bin/BackupPC_SME_usbArchive 'attr(0755,root,root)' \ - --file /usr/share/BackupPC/bin/BackupPC_SME_usbCopyPool 'attr(0755,root,root)' \ - --file /usr/share/BackupPC/bin/BackupPC_SME_localArchive 'attr(0755,root,root)' \ - --file /usr/share/BackupPC/bin/BackupPC_SME_localCopyPool 'attr(0755,root,root)' \ - --file /usr/share/BackupPC/bin/BackupPC_SME_remoteArchive 'attr(0755,root,root)' \ - --file /usr/share/BackupPC/bin/BackupPC_SME_remoteCopyPool 'attr(0755,root,root)' \ - --file /etc/BackupPC/pc/localserver-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \ - --file /etc/BackupPC/pc/smeserver-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \ - --file /etc/BackupPC/pc/windows-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \ - --file /etc/BackupPC/usbArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ - --file /etc/BackupPC/usbCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ - --file /etc/BackupPC/localArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ - --file /etc/BackupPC/localCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ - --file /etc/BackupPC/remoteArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ - --file /etc/BackupPC/remoteCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \ - --dir /etc/BackupPC/pc 'attr(750,backuppc,backuppc)' \ - --dir /var/service/httpd-bkpc 'attr(01755,root,root)' \ - --file /var/service/httpd-bkpc/run 'attr(0700,root,root)' \ - --dir /var/service/httpd-bkpc/supervise 'attr(0700,root,root)' \ - --dir /var/service/httpd-bkpc/log 'attr(0755,root,root)' \ - --file /var/service/httpd-bkpc/log/run 'attr(0755,root,root)' \ - --dir /var/service/httpd-bkpc/log/supervise 'attr(0700,root,root)' \ - --dir /var/log/httpd-bkpc 'attr(0750,smelog,smelog)' \ - > %{name}-%{version}-filelist + --file "/usr/share/BackupPC/bin/BackupPC_SME_pre-backup" "attr(0755,root,root) %config(noreplace)" \ + --file "/usr/share/BackupPC/bin/BackupPC_SME_usbArchive" "attr(0755,root,root)" \ + --file "/usr/share/BackupPC/bin/BackupPC_SME_usbCopyPool" "attr(0755,root,root)" \ + --file "/usr/share/BackupPC/bin/BackupPC_SME_localArchive" "attr(0755,root,root)" \ + --file "/usr/share/BackupPC/bin/BackupPC_SME_localCopyPool" "attr(0755,root,root)" \ + --file "/usr/share/BackupPC/bin/BackupPC_SME_remoteArchive" "attr(0755,root,root)" \ + --file "/usr/share/BackupPC/bin/BackupPC_SME_remoteCopyPool" "attr(0755,root,root)" \ + --file "/etc/BackupPC/pc/localserver-template.pl2" "attr(640,backuppc,backuppc) %config(noreplace)" \ + --file "/etc/BackupPC/pc/smeserver-template.pl2" "attr(640,backuppc,backuppc) %config(noreplace)" \ + --file "/etc/BackupPC/pc/windows-template.pl" "attr(640,backuppc,backuppc) %config(noreplace)" \ + --file "/etc/BackupPC/usbArchive.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ + --file "/etc/BackupPC/usbCopyPool.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ + --file "/etc/BackupPC/localArchive.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ + --file "/etc/BackupPC/localCopyPool.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ + --file "/etc/BackupPC/remoteArchive.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ + --file "/etc/BackupPC/remoteCopyPool.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \ + --dir "/etc/BackupPC/pc" "attr(750,backuppc,backuppc)" \ + --dir "/var/service/httpd-bkpc" "attr(01755,root,root)" \ + --file "/var/service/httpd-bkpc/run" "attr(0700,root,root)" \ + --dir "/var/service/httpd-bkpc/supervise" "attr(0700,root,root)" \ + --dir "/var/service/httpd-bkpc/log" "attr(0755,root,root)" \ + --file "/var/service/httpd-bkpc/log/run" "attr(0755,root,root)" \ + --dir "/var/service/httpd-bkpc/log/supervise" "attr(0700,root,root)" \ + --dir "/var/log/httpd-bkpc" "attr(0750,smelog,smelog)" \ + --ignoredir "/root/var/" \ + --ignoredir "/usr/share/BackupPC" \ + --ignoredir "/usr/share/BackupPC/lib" \ + --ignoredir "/usr/share/BackupPC/lib/BackupPC" \ + --ignoredir "/etc/BackupPC" \ + --ignoredir "/etc/httpd" \ + > %{name}-%{version}-filelist %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}-%{version}-filelist -%defattr(-,root,root) - -%files -n smeserver-BackupPC4 -f %{name}-%{version}-filelist %defattr(-,root,root,-) +#%files -n smeserver-BackupPC4 -f %{name}-%{version}-filelist +#%defattr(-,root,root,-) + %pre #%{_sbindir}/useradd -c "BackupPC User" -m -d /home/e-smith/files/users/backuppc -r -s /sbin/nologin backuppc >& /dev/null || : %{_sbindir}/usermod -m -d /var/lib/BackupPC backuppc >& /dev/null || : +%post +systemctl enable backuppc +systemctl start backuppc + %preun # Disable services, and stop them @@ -203,4 +218,3 @@ if [ $1 = 0 ]; then # Uninstall only, no fi true -