/[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.6 - (show annotations) (download)
Fri Apr 2 04:42:57 2021 UTC (3 years, 2 months ago) by jpp
Branch: MAIN
Changes since 1.5: +8 -2 lines
* Fri Apr 02 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-8.sme
- allow localhost SME backup without SSH, but sudo [SME: 10884]

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

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