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

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

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


Revision 1.3 - (show annotations) (download)
Mon Mar 2 22:33:48 2009 UTC (15 years, 9 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_1-4_el4_sme
Changes since 1.2: +14 -2 lines
Fix smeserver sample config and logrotate issue

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

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