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

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

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


Revision 1.1 - (show annotations) (download)
Thu Feb 7 02:18:15 2013 UTC (11 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_1-12_el5_sme, HEAD
Initial import

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

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