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

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

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


Revision 1.1 - (show annotations) (download)
Tue Nov 12 18:10:54 2013 UTC (10 years, 11 months ago) by vip-ire
Branch: MAIN
* Tue Nov 12 2013 Daniel B. <daniel@firewall-services.com> 0.2-1.sme
- Rebuild for SME9

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

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