/[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.6 - (hide annotations) (download)
Tue May 5 08:37:46 2009 UTC (15 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_1-7_el4_sme
Changes since 1.5: +6 -2 lines
Fixe permissions on /etc/BackupPC/pc

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

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