/[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.9 - (show annotations) (download)
Thu Jul 21 14:56:35 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
Changes since 1.8: +7 -2 lines
* Thu Jul 21 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-10.sme
- add configuration to core backup [SME: 1200]

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

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