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

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

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


Revision 1.14 - (show annotations) (download)
Mon Aug 1 01:43:26 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_2-13_el7_sme
Changes since 1.13: +7 -2 lines
* Sun Jul 31 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-13.sme
- update to httpd 2.4 syntax [SME: 12036]
  including Requires, and bkpc-conf

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

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