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

Annotation of /rpms/smeserver-BackupPC/contribs7/smeserver-BackupPC.spec

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


Revision 1.10 - (hide annotations) (download)
Tue Jun 16 14:44:44 2009 UTC (15 years, 4 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_1-11_el4_sme
Changes since 1.9: +7 -2 lines
Remove quotes when calling signal-event with ssh

1 vip-ire 1.10 # $Id: smeserver-BackupPC.spec,v 1.9 2009/05/29 14:36:10 vip-ire Exp $
2 slords 1.1 # Authority: vip-ire
3     # Name: Daniel Berteaud
4    
5 vip-ire 1.5 Name: smeserver-BackupPC
6     Version: 0.1
7 vip-ire 1.10 Release: 11%{?dist}
8 vip-ire 1.5 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.gz
14     Patch0: smeserver-BackupPC-0.1-logrotate.patch
15     Patch1: smeserver-BackupPC-0.1-config_path.patch
16     Patch2: smeserver-BackupPC-0.1-post-upgrade_to_bootstrape.patch
17     Patch3: smeserver-BackupPC-0.1-sudoers.patch
18     Patch4: smeserver-BackupPC-0.1-smeserver_template.patch
19     Patch5: smeserver-BackupPC-0.1-fix_logrotate_event.patch
20     Patch6: smeserver-BackupPC-0.1-sudoers_enhancement.patch
21     Patch7: smeserver-BackupPC-0.1-templates_fixes.patch
22     Patch8: smeserver-BackupPC-0.1-httpd_conf_cleanup.patch
23     Patch9: smeserver-BackupPC-0.1-quotes_share_name.patch
24 vip-ire 1.7 Patch10: smeserver-BackupPC-0.1-fixe_on_post_upgrade.patch
25 vip-ire 1.8 Patch11: smeserver-BackupPC-0.1-encrypt_archives.patch
26     Patch12: smeserver-BackupPC-0.1-generate_key_file.patch
27     Patch13: smeserver-BackupPC-0.1-fixe_chmod.patch
28 vip-ire 1.9 Patch14: smeserver-BackupPC-0.1-full_path.patch
29 vip-ire 1.10 Patch15: smeserver-BackupPC-0.1-remove_quotes.patch
30 vip-ire 1.5
31     BuildRoot: %{_tmppath}/%{name}-%{version}
32     BuildArch: noarch
33    
34     BuildRequires: e-smith-devtools
35    
36     Requires: mod_auth_tkt
37     Requires: BackupPC >= 3.1.0
38     Requires: smeserver-remoteuseraccess
39 vip-ire 1.8 Requires: openssl
40 slords 1.1
41     #Conflicts: smeserver-backuppc.fws
42     Obsoletes: smeserver-backuppc.fws
43    
44    
45     %description
46     BackupPC is a high-performance, enterprise-grade system for backing up Linux
47     and WinXX PCs and laptops to a server's disk. BackupPC is highly configurable
48     and easy to install and maintain.
49     This package contains specific configuration for SME server
50    
51    
52     %changelog
53 vip-ire 1.10 * Tue Jun 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-11]
54     - Remove double quotes when calling signal-event with ssh [SME: 5302]
55    
56 vip-ire 1.9 * Fri May 29 2009 Daniel B. <daniel@firewall-services.com> [0.1-10]
57     - Call signal-event with it full path in smeserver-template.pl [SME: 5302]
58    
59 vip-ire 1.8 * Tue May 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-9]
60     - Add optionnal encryption of archives generated with BackupPC_SME_localArchive
61     BackupPC_SME_usbArchive and BackupPC_SME_remoteArchive using openssl
62     - Generate a key and save it in /etc/BackupPC/archive.key
63     - Fixe permission restriction on /etc/BackupPC/*
64    
65 vip-ire 1.7 * Thu May 07 2009 Daniel B. <daniel@firewall-services.com> [0.1-8]
66     - Link backuppc-checkupgrade script in post-upgrade event
67     so the contrib is correctly configured without running backuppc-update
68     event [SME: 5221]
69    
70 vip-ire 1.6 * Tue May 05 2009 Daniel B. <daniel@firewall-services.com> [0.1-7]
71     - Fixe permissions on /etc/BackupPC/pc
72    
73 vip-ire 1.5 * Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-6]
74     - modify default httpd conf (cleanup) to use the new paths
75     - Add quotes in share names for *Archive.conf files
76     - Enhance provided template
77    
78 vip-ire 1.4 * Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [0.1-5]
79     - Enhance sudoers templates
80    
81 vip-ire 1.3 * Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-4]
82     - Fix logrotate issue (send a sigusr1 signal to httpd-bkpc)
83    
84     * Tue Jan 20 2009 Daniel B. <daniel@firewall-services.com> [0.1-3]
85     - Update Exclude path for smeserver config example
86    
87 slords 1.1 * Thu Dec 11 2008 Daniel B. <daniel@firewall-services.com> [0.1-2]
88     - Revert config and logs paths to their default location
89     - Expand-templates during bootrape-console-save instead of post-upgrade
90     - Remove sudoers templates.metadata to prevent conflict, added smeserver-remoteuseraccess
91     as a dependency
92    
93     * Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
94     - Fix logrotate issue
95    
96     * Thu Aug 14 2008 Daniel B. <daniel@firewall-services.com> [0.1-0]
97     - Adapted to work with 3.1.0
98     - Split smeserver specific stuff in a separate srpm
99     - Remove pre-compiled binaries from the srpm (par2cmdline must be downloaded separatly if needed)
100     - A dedicated httpd instance is used (running under backuppc user). This increase security as
101     user www no longer has access to backuppc data.
102     - Authentication is integrated with the server-manager (no need to login two times now)
103     - Added some config example (with backups disabled). These can be used as templates for other hosts
104     - Some corrections in backup export scripts (*copyPool scipts still need to be re-written
105     to be more reliable, maybe with dump/restore, or dd, and with built-in support for LVM snapshots)
106    
107     * Wed May 11 2007 Daniel Berteaud <daniel@firewall-services.com>
108     - [3.0-1]
109     - corrected default config for localhost (excluding by default /opt/backuppc and /selinux)
110     - improvement of the rpm scriplets
111     - start and stop script linked to e-smith-service
112     - scripts for offline backups
113     - par2 included
114    
115     * Tue Jan 30 2007 Daniel Berteaud <daniel@firewall-services.com>
116     - [3.0-0]
117     - rpm package
118     - script BackupPC_SME_remoteBackup to remotly backup the pool (to another UNIX host)
119    
120    
121    
122     %prep
123     %setup -q -n %{name}-%{version}
124     %patch0 -p1
125     %patch1 -p1
126     %patch2 -p1
127     %patch3 -p1
128 vip-ire 1.3 %patch4 -p1
129     %patch5 -p1
130 vip-ire 1.4 %patch6 -p1
131 vip-ire 1.5 %patch7 -p1
132     %patch8 -p1
133     %patch9 -p1
134 vip-ire 1.7 %patch10 -p1
135 vip-ire 1.8 %patch11 -p1
136     %patch12 -p1
137     %patch13 -p1
138 vip-ire 1.9 %patch14 -p1
139 vip-ire 1.10 %patch15 -p1
140 slords 1.1
141     %build
142     perl createlinks
143    
144     %install
145    
146     %{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/supervise
147     %{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/log/supervise
148     %{__mkdir} -p $RPM_BUILD_ROOT/var/log/httpd-bkpc
149    
150    
151     (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
152     /bin/rm -f %{name}-%{version}-filelist
153     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
154     --file /usr/share/BackupPC/bin/BackupPC_SME_pre-backup 'attr(0755,root,root) %config(noreplace)' \
155     --file /usr/share/BackupPC/bin/BackupPC_SME_usbArchive 'attr(0755,root,root)' \
156     --file /usr/share/BackupPC/bin/BackupPC_SME_usbCopyPool 'attr(0755,root,root)' \
157     --file /usr/share/BackupPC/bin/BackupPC_SME_localArchive 'attr(0755,root,root)' \
158     --file /usr/share/BackupPC/bin/BackupPC_SME_localCopyPool 'attr(0755,root,root)' \
159     --file /usr/share/BackupPC/bin/BackupPC_SME_remoteArchive 'attr(0755,root,root)' \
160     --file /usr/share/BackupPC/bin/BackupPC_SME_remoteCopyPool 'attr(0755,root,root)' \
161     --file /etc/BackupPC/pc/localserver-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \
162     --file /etc/BackupPC/pc/smeserver-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \
163     --file /etc/BackupPC/pc/windows-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \
164     --file /etc/BackupPC/usbArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
165     --file /etc/BackupPC/usbCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
166     --file /etc/BackupPC/localArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
167     --file /etc/BackupPC/localCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
168     --file /etc/BackupPC/remoteArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
169     --file /etc/BackupPC/remoteCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
170 vip-ire 1.6 --dir /etc/BackupPC/pc 'attr(750,backuppc,backuppc)' \
171 slords 1.1 --dir /var/service/httpd-bkpc 'attr(01755,root,root)' \
172     --file /var/service/httpd-bkpc/run 'attr(0700,root,root)' \
173     --dir /var/service/httpd-bkpc/supervise 'attr(0700,root,root)' \
174     --dir /var/service/httpd-bkpc/log 'attr(0755,root,root)' \
175     --file /var/service/httpd-bkpc/log/run 'attr(0755,root,root)' \
176     --dir /var/service/httpd-bkpc/log/supervise 'attr(0700,root,root)' \
177     --dir /var/log/httpd-bkpc 'attr(0750,smelog,smelog)' \
178     > %{name}-%{version}-filelist
179    
180    
181     %clean
182     rm -rf $RPM_BUILD_ROOT
183    
184     %files -f %{name}-%{version}-filelist
185     %defattr(-,root,root)
186    
187     %pre
188     #%{_sbindir}/useradd -c "BackupPC User" -m -d /home/e-smith/files/users/backuppc -r -s /sbin/nologin backuppc >& /dev/null || :
189     %{_sbindir}/usermod -m -d /var/lib/BackupPC backuppc >& /dev/null || :
190    
191     %preun
192    
193     # Disable services, and stop them
194     if [ $1 = 0 ]; then # Uninstall only, not upgrade
195     db configuration setprop backuppc status disabled >& /dev/null || :
196     db configuration setprop httpd-bkpc status disabled >& /dev/null || :
197     service backuppc stop >& /dev/null || :
198     fi
199    
200     true
201    

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