/[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.4 - (hide annotations) (download)
Tue Jan 26 12:37:28 2021 UTC (3 years, 4 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_2-6_el7_sme
Changes since 1.3: +7 -2 lines
* Mon Jan 11 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-6.sme
- Update createlinks for systemd according to [SME: 10959][SME: 11055]

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

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