/[smecontribs]/rpms/smeserver-BackupPC/contribs10/smeserver-BackupPC.spec
ViewVC logotype

Diff of /rpms/smeserver-BackupPC/contribs10/smeserver-BackupPC.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by brianr, Mon Oct 26 14:35:59 2020 UTC Revision 1.15 by terryfage, Fri Feb 10 12:05:42 2023 UTC
# Line 1  Line 1 
1  # $Id: smeserver-BackupPC.spec,v 1.5 2019/11/26 04:10:47 jpp Exp $  # $Id: smeserver-BackupPC.spec,v 1.14 2022/08/01 01:43:26 jpp 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: 14%{?dist}
8  Summary: BackupPC integration into SME server  Summary: BackupPC integration into SME server
9    
10  Group: Applications/System  Group: Applications/System
# Line 12  License: GPL Line 12  License: GPL
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    Patch2: smeserver-BackupPC-0.2-Update-createlinks-for-systemd-for-SME10.patch
17    Patch3: smeserver-BackupPC-0.2-Get-httpd-bkpc-task-running.patch
18    Patch4: smeserver-BackupPC-0.2-bz10884-localhostBackupWithoutSSH.patch
19    Patch5: smeserver-BackupPC-0.2-Add-sm2-panel-using-iframe.patch
20    Patch6: smeserver-BackupPC-0.2-bz12000-backup.patch
21    Patch7: smeserver-BackupPC-0.2-bz11875-DefaultType.patch
22    Patch8: smeserver-BackupPC-0.2-bz12036-24syntax.patch
23    Patch9: smeserver-BackupPC-0.2-bz10513-prunepaths.patch
24    
25  BuildRoot: %{_tmppath}/%{name}-%{version}  BuildRoot: %{_tmppath}/%{name}-%{version}
26  BuildArch: noarch  BuildArch: noarch
# Line 19  BuildArch: noarch Line 28  BuildArch: noarch
28  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
29    
30  Requires: mod_auth_tkt  Requires: mod_auth_tkt
31  Requires: BackupPC >= 3.1.0  Requires: BackupPC >= 4.0.0
32  Requires: smeserver-remoteuseraccess  Requires: smeserver-remoteuseraccess
33  Requires: openssl  Requires: openssl
34  Requires: e-smith-manager >= 2.6.0-22  #Requires: e-smith-manager >= 2.8.0
35    Requires: e-smith-apache >= 2.6.0-19
36    AutoReqProv: no
37    
38  #Conflicts: smeserver-backuppc.fws  #Conflicts: smeserver-backuppc.fws
39  Obsoletes: smeserver-backuppc.fws  Obsoletes: smeserver-backuppc.fws
# Line 36  This package contains specific configura Line 47  This package contains specific configura
47    
48  #----------------------------------------------------  #----------------------------------------------------
49    
50  %package        -n smeserver-BackupPC4  #%package        -n smeserver-BackupPC4
51  Summary:        BackupPC 4 integration into SME server  #Summary:        BackupPC 4 integration into SME server
52  Group:          Email  #Group:          Email
53  Requires:       BackupPC4  #Requires:       BackupPC4
54  Conflicts:      smeserver-BackupPC  #Conflicts:     smeserver-BackupPC
55    
56  %description    -n smeserver-BackupPC4  #%description    -n smeserver-BackupPC4
57  BackupPC is a high-performance, enterprise-grade system for backing up Linux  #BackupPC is a high-performance, enterprise-grade system for backing up Linux
58  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
59  and easy to install and maintain.  #and easy to install and maintain.
60  This package contains specific configuration for SME server  #This package contains specific configuration for SME server
61    
62  #----------------------------------------------------  #----------------------------------------------------
63    
64    
65    
66  %changelog  %changelog
67    * Fri Feb 10 2023 Zsolt Vasarhelyi <vasarhelyizsolt@hotmail.com> 0.2-14.sme
68    - $Conf{TopDir} not in locate configuration's PRUNEPATHS  [SME: 10513]
69    
70    * Sun Jul 31 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-13.sme
71    - update to httpd 2.4 syntax [SME: 12036]
72      including Requires, and bkpc-conf
73    
74    * Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 0.2-12.sme
75    - Re-build and link to latest devtools [SME: 11997]
76    
77    * Mon Jul 25 2022 Zsolt Vasarhelyi <vasarhelyizsolt@hotmail.com> 0.2-11.sme
78    - update to httpd 2.4 syntax [SME: 12036]
79    
80    * Thu Jul 21 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-10.sme
81    - add configuration to core backup [SME: 12000]
82    - Re-build and link to latest devtools deprecated use of DefaultType [SME: 11875]
83    
84    * Fri Oct 01 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-9.sme
85    - Add in code for SM2 panel using iframe - note: Authentication not sorted [SME: 11701]
86    
87    * Fri Apr 02 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-8.sme
88    - allow localhost SME backup without SSH, but sudo [SME: 10884]
89    
90    * Wed Jan 27 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-7.sme
91    - Get-httpd-bkpc-task-running [SME: 11055]
92    
93    * Mon Jan 11 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-6.sme
94    - Update createlinks for systemd according to [SME: 10959][SME: 11055]
95    
96    * Fri Nov 27 2020 Brian Read <brianr@bjsystems.co.uk> 0.2-5.sme
97    - Add in extra Loadmodules to httpd.conf [SME: 11055]
98    
99    * Tue Oct 27 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-4.sme
100    - Initial build for SME v10 [SME:11055]
101    - Hard work done by Brian Read
102    - Remove v3 option and revert to just smeserver-BackupPC
103    
104  * 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
105  - initial build to install BackupPC4fix [SME: 10514]  - initial build to install BackupPC4fix [SME: 10514]
106    
# Line 120  This package contains specific configura Line 168  This package contains specific configura
168  - 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
169    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)
170    
171  * Wed May 11 2007 Daniel Berteaud <daniel@firewall-services.com>  * Thu May 10 2007 Daniel Berteaud <daniel@firewall-services.com>
172  - [3.0-1]  - [3.0-1]
173  - corrected default config for localhost (excluding by default /opt/backuppc and /selinux)  - corrected default config for localhost (excluding by default /opt/backuppc and /selinux)
174  - improvement of the rpm scriplets  - improvement of the rpm scriplets
# Line 138  This package contains specific configura Line 186  This package contains specific configura
186  %prep  %prep
187  %setup -q -n %{name}-%{version}  %setup -q -n %{name}-%{version}
188  %patch0 -p1  %patch0 -p1
189    %patch1 -p1
190    %patch2 -p1
191    %patch3 -p1
192    %patch4 -p1
193    %patch5 -p1
194    %patch6 -p1
195    %patch7 -p1
196    %patch8 -p1
197    %patch9 -p1
198    
199  %build  %build
200  perl createlinks  perl createlinks
# Line 148  perl createlinks Line 205  perl createlinks
205  %{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/log/supervise  %{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/log/supervise
206  %{__mkdir} -p $RPM_BUILD_ROOT/var/log/httpd-bkpc  %{__mkdir} -p $RPM_BUILD_ROOT/var/log/httpd-bkpc
207    
   
208  (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)
209  /bin/rm -f %{name}-%{version}-filelist  /bin/rm -f %{name}-%{version}-filelist
210    
211  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
212          --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)" \
213          --file /usr/share/BackupPC/bin/BackupPC_SME_usbArchive 'attr(0755,root,root)' \          --file "/usr/share/BackupPC/bin/BackupPC_SME_usbArchive" "attr(0755,root,root)" \
214          --file /usr/share/BackupPC/bin/BackupPC_SME_usbCopyPool 'attr(0755,root,root)' \          --file "/usr/share/BackupPC/bin/BackupPC_SME_usbCopyPool" "attr(0755,root,root)" \
215          --file /usr/share/BackupPC/bin/BackupPC_SME_localArchive 'attr(0755,root,root)' \          --file "/usr/share/BackupPC/bin/BackupPC_SME_localArchive" "attr(0755,root,root)" \
216          --file /usr/share/BackupPC/bin/BackupPC_SME_localCopyPool 'attr(0755,root,root)' \          --file "/usr/share/BackupPC/bin/BackupPC_SME_localCopyPool" "attr(0755,root,root)" \
217          --file /usr/share/BackupPC/bin/BackupPC_SME_remoteArchive 'attr(0755,root,root)' \          --file "/usr/share/BackupPC/bin/BackupPC_SME_remoteArchive" "attr(0755,root,root)" \
218          --file /usr/share/BackupPC/bin/BackupPC_SME_remoteCopyPool 'attr(0755,root,root)' \          --file "/usr/share/BackupPC/bin/BackupPC_SME_remoteCopyPool" "attr(0755,root,root)" \
219          --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)" \
220          --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)" \
221          --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)" \
222          --file /etc/BackupPC/usbArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \          --file "/etc/BackupPC/usbArchive.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \
223          --file /etc/BackupPC/usbCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \          --file "/etc/BackupPC/usbCopyPool.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \
224          --file /etc/BackupPC/localArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \          --file "/etc/BackupPC/localArchive.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \
225          --file /etc/BackupPC/localCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \          --file "/etc/BackupPC/localCopyPool.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \
226          --file /etc/BackupPC/remoteArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \          --file "/etc/BackupPC/remoteArchive.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \
227          --file /etc/BackupPC/remoteCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \          --file "/etc/BackupPC/remoteCopyPool.conf" "attr(640,backuppc,backuppc) %config(noreplace)" \
228          --dir /etc/BackupPC/pc 'attr(750,backuppc,backuppc)' \          --dir "/etc/BackupPC/pc" "attr(750,backuppc,backuppc)" \
229          --dir /var/service/httpd-bkpc 'attr(01755,root,root)' \          --dir "/var/service/httpd-bkpc" "attr(01755,root,root)" \
230          --file /var/service/httpd-bkpc/run 'attr(0700,root,root)' \          --file "/var/service/httpd-bkpc/run" "attr(0700,root,root)" \
231          --dir /var/service/httpd-bkpc/supervise 'attr(0700,root,root)' \          --dir "/var/service/httpd-bkpc/supervise" "attr(0700,root,root)" \
232          --dir /var/service/httpd-bkpc/log 'attr(0755,root,root)' \          --dir "/var/service/httpd-bkpc/log" "attr(0755,root,root)" \
233          --file /var/service/httpd-bkpc/log/run 'attr(0755,root,root)' \          --file "/var/service/httpd-bkpc/log/run" "attr(0755,root,root)" \
234          --dir /var/service/httpd-bkpc/log/supervise 'attr(0700,root,root)' \          --dir "/var/service/httpd-bkpc/log/supervise" "attr(0700,root,root)" \
235          --dir /var/log/httpd-bkpc 'attr(0750,smelog,smelog)' \          --dir "/var/log/httpd-bkpc" "attr(0750,smelog,smelog)" \
236          > %{name}-%{version}-filelist          --ignoredir "/root/var/" \
237            --ignoredir "/usr/share/BackupPC" \
238            --ignoredir "/usr/share/BackupPC/lib" \
239            --ignoredir "/usr/share/BackupPC/lib/BackupPC" \
240            --ignoredir "/etc/BackupPC" \
241            --ignoredir "/etc/httpd" \
242            > %{name}-%{version}-filelist
243    
244    
245  %clean  %clean
246  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
247    
248  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
 %defattr(-,root,root)  
   
 %files -n smeserver-BackupPC4 -f %{name}-%{version}-filelist  
249  %defattr(-,root,root,-)  %defattr(-,root,root,-)
250    
251    #%files -n smeserver-BackupPC4 -f %{name}-%{version}-filelist
252    #%defattr(-,root,root,-)
253    
254    
255  %pre  %pre
256  #%{_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 || :
257  %{_sbindir}/usermod -m -d /var/lib/BackupPC backuppc >& /dev/null || :  %{_sbindir}/usermod -m -d /var/lib/BackupPC backuppc >& /dev/null || :
258    
259    %post
260    systemctl enable backuppc
261    systemctl start backuppc
262    
263  %preun  %preun
264    
265  # Disable services, and stop them  # Disable services, and stop them
# Line 203  if [ $1 = 0 ]; then # Uninstall only, no Line 270  if [ $1 = 0 ]; then # Uninstall only, no
270  fi  fi
271    
272  true  true
   


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed