/[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.2 - (hide annotations) (download)
Mon Mar 2 17:43:46 2009 UTC (15 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_1-2_el4_sme
Changes since 1.1: +1 -0 lines
Update specs

1 slords 1.2 # $Id$
2 slords 1.1 # Authority: vip-ire
3     # Name: Daniel Berteaud
4    
5     Name: smeserver-BackupPC
6     Version: 0.1
7     Release: 2%{?dist}
8     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    
19     BuildRoot: %{_tmppath}/%{name}-%{version}
20     BuildArch: noarch
21    
22     BuildRequires: e-smith-devtools
23    
24     Requires: mod_auth_tkt
25     Requires: BackupPC >= 3.1.0
26     Requires: smeserver-remoteuseraccess
27    
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     %changelog
40     * Thu Dec 11 2008 Daniel B. <daniel@firewall-services.com> [0.1-2]
41     - Revert config and logs paths to their default location
42     - Expand-templates during bootrape-console-save instead of post-upgrade
43     - Remove sudoers templates.metadata to prevent conflict, added smeserver-remoteuseraccess
44     as a dependency
45    
46     * Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
47     - Fix logrotate issue
48    
49     * Thu Aug 14 2008 Daniel B. <daniel@firewall-services.com> [0.1-0]
50     - Adapted to work with 3.1.0
51     - Split smeserver specific stuff in a separate srpm
52     - Remove pre-compiled binaries from the srpm (par2cmdline must be downloaded separatly if needed)
53     - A dedicated httpd instance is used (running under backuppc user). This increase security as
54     user www no longer has access to backuppc data.
55     - Authentication is integrated with the server-manager (no need to login two times now)
56     - Added some config example (with backups disabled). These can be used as templates for other hosts
57     - Some corrections in backup export scripts (*copyPool scipts still need to be re-written
58     to be more reliable, maybe with dump/restore, or dd, and with built-in support for LVM snapshots)
59    
60     * Wed May 11 2007 Daniel Berteaud <daniel@firewall-services.com>
61     - [3.0-1]
62     - corrected default config for localhost (excluding by default /opt/backuppc and /selinux)
63     - improvement of the rpm scriplets
64     - start and stop script linked to e-smith-service
65     - scripts for offline backups
66     - par2 included
67    
68     * Tue Jan 30 2007 Daniel Berteaud <daniel@firewall-services.com>
69     - [3.0-0]
70     - rpm package
71     - script BackupPC_SME_remoteBackup to remotly backup the pool (to another UNIX host)
72    
73    
74    
75     %prep
76     %setup -q -n %{name}-%{version}
77     %patch0 -p1
78     %patch1 -p1
79     %patch2 -p1
80     %patch3 -p1
81    
82     %build
83     perl createlinks
84    
85     %install
86    
87     %{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/supervise
88     %{__mkdir} -p $RPM_BUILD_ROOT/var/service/httpd-bkpc/log/supervise
89     %{__mkdir} -p $RPM_BUILD_ROOT/var/log/httpd-bkpc
90    
91    
92     (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
93     /bin/rm -f %{name}-%{version}-filelist
94     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
95     --file /usr/share/BackupPC/bin/BackupPC_SME_pre-backup 'attr(0755,root,root) %config(noreplace)' \
96     --file /usr/share/BackupPC/bin/BackupPC_SME_usbArchive 'attr(0755,root,root)' \
97     --file /usr/share/BackupPC/bin/BackupPC_SME_usbCopyPool 'attr(0755,root,root)' \
98     --file /usr/share/BackupPC/bin/BackupPC_SME_localArchive 'attr(0755,root,root)' \
99     --file /usr/share/BackupPC/bin/BackupPC_SME_localCopyPool 'attr(0755,root,root)' \
100     --file /usr/share/BackupPC/bin/BackupPC_SME_remoteArchive 'attr(0755,root,root)' \
101     --file /usr/share/BackupPC/bin/BackupPC_SME_remoteCopyPool 'attr(0755,root,root)' \
102     --file /etc/BackupPC/pc/localserver-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \
103     --file /etc/BackupPC/pc/smeserver-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \
104     --file /etc/BackupPC/pc/windows-template.pl 'attr(640,backuppc,backuppc) %config(noreplace)' \
105     --file /etc/BackupPC/usbArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
106     --file /etc/BackupPC/usbCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
107     --file /etc/BackupPC/localArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
108     --file /etc/BackupPC/localCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
109     --file /etc/BackupPC/remoteArchive.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
110     --file /etc/BackupPC/remoteCopyPool.conf 'attr(640,backuppc,backuppc) %config(noreplace)' \
111     --dir /var/service/httpd-bkpc 'attr(01755,root,root)' \
112     --file /var/service/httpd-bkpc/run 'attr(0700,root,root)' \
113     --dir /var/service/httpd-bkpc/supervise 'attr(0700,root,root)' \
114     --dir /var/service/httpd-bkpc/log 'attr(0755,root,root)' \
115     --file /var/service/httpd-bkpc/log/run 'attr(0755,root,root)' \
116     --dir /var/service/httpd-bkpc/log/supervise 'attr(0700,root,root)' \
117     --dir /var/log/httpd-bkpc 'attr(0750,smelog,smelog)' \
118     > %{name}-%{version}-filelist
119    
120    
121     %clean
122     rm -rf $RPM_BUILD_ROOT
123    
124     %files -f %{name}-%{version}-filelist
125     %defattr(-,root,root)
126    
127     %pre
128     #%{_sbindir}/useradd -c "BackupPC User" -m -d /home/e-smith/files/users/backuppc -r -s /sbin/nologin backuppc >& /dev/null || :
129     %{_sbindir}/usermod -m -d /var/lib/BackupPC backuppc >& /dev/null || :
130    
131     %preun
132    
133     # Disable services, and stop them
134     if [ $1 = 0 ]; then # Uninstall only, not upgrade
135     db configuration setprop backuppc status disabled >& /dev/null || :
136     db configuration setprop httpd-bkpc status disabled >& /dev/null || :
137     service backuppc stop >& /dev/null || :
138     fi
139    
140     true
141    

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