/[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.1 - (hide annotations) (download)
Mon Mar 2 17:30:36 2009 UTC (15 years, 8 months ago) by slords
Branch: MAIN
Initial import of smeserver-BackupPC

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

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