/[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.9 - (show annotations) (download)
Fri May 29 14:36:10 2009 UTC (15 years ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_1-10_el4_sme
Changes since 1.8: +7 -3 lines
Call signal-event with it full path

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

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