/[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.4 - (show annotations) (download)
Wed Mar 18 11:46:40 2009 UTC (15 years, 8 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_1-5_el4_sme
Changes since 1.3: +7 -2 lines
Enhance sudoers templates

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

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