/[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.8 - (hide annotations) (download)
Wed May 13 21:19:41 2009 UTC (15 years ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_1-9_el4_sme
Changes since 1.7: +14 -1 lines
Add encryption support

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

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