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

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

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


Revision 1.8 - (hide annotations) (download)
Sat Oct 2 07:49:55 2021 UTC (3 years, 1 month ago) by brianr
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_2-9_el7_sme
Changes since 1.7: +9 -3 lines
* Fri Oct 01 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-9.sme
- Add in code for SM2 panel using iframe - note: Authentication not sorted [SME: 11701]

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

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