/[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.3 - (hide annotations) (download)
Fri Nov 27 12:21:05 2020 UTC (3 years, 11 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_2-5_el7_sme
Changes since 1.2: +7 -2 lines
* Fri Nov 27 2020 Brian Read <brianr@bjsystems.co.uk> 0.2-5.sme
- Add in extra Loadmodules to httpd.conf [SME: 11055]

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

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