1 |
Summary: Makes the SME server a dedicated rsync based backup server |
Summary: Makes the SME server a dedicated rsync based backup server |
2 |
%define name smeserver-affa |
%define name smeserver-affa |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 0.9.0 |
%define version 0.10.0 |
5 |
%define release 2 |
%define release 1 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GNU GPL (GNU General Public License) |
License: GNU GPL (GNU General Public License) |
14 |
Requires: smeserver-release >= 7 |
Requires: smeserver-release >= 7 |
15 |
Requires: perl-Filesys-DiskFree |
Requires: perl-Filesys-DiskFree |
16 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
17 |
Patch0: smeserver-affa-0.9.0-debugsshquiet.patch |
Patch0: smeserver-affa-0.10.0-DNS_Timeout.patch |
18 |
|
|
19 |
%description |
%description |
20 |
Main purpose ist to make the SME server a dedicated rsync based backup server. |
Main purpose ist to make the SME server a dedicated rsync based backup server. |
21 |
Also providing functions to backup to USB disks or SMB shares in SOHO environments. |
Also providing functions to backup to USB disks or SMB shares in SOHO environments. |
22 |
|
|
23 |
%changelog |
%changelog |
24 |
|
* Mon Mar 10 2008 Michael Weinberger 0.10.0-1 |
25 |
|
Increased release number |
26 |
|
Added 10 sec timeout in Net::DNS::Resolver->search |
27 |
|
* Mon Mar 10 2008 Michael Weinberger 0.9.0-11 |
28 |
|
Specfile fix |
29 |
|
* Mon Mar 10 2008 Michael Weinberger 0.9.0-10 |
30 |
|
Delete locally created watchdog file after remotecopy |
31 |
|
Bugfix 4035 |
32 |
|
Added default AutoUnmount property to sample script |
33 |
|
Fix man page |
34 |
|
Do not delete md5sum in --create-backup-file when verify is skipped by user |
35 |
|
Set lock in --create-backup-file |
36 |
|
* Sun Mar 09 2008 Michael Weinberger 0.9.0-9 |
37 |
|
trap signals in --create-backup-file |
38 |
|
* Sat Mar 08 2008 Michael Weinberger 0.9.0-8 |
39 |
|
Permissions in /usr/lib/affa |
40 |
|
* Sat Mar 08 2008 Michael Weinberger 0.9.0-7 |
41 |
|
md5sum in --create-backup-file |
42 |
|
* Fri Mar 07 2008 Michael Weinberger 0.9.0-6 |
43 |
|
Added option --create-backup-file |
44 |
|
Using line number as error code in affaErrorExit() |
45 |
|
Fixed /etc/profile.d/affa.sh |
46 |
|
|
47 |
|
* Mon Mar 03 2008 Michael Weinberger 0.9.0-5 |
48 |
|
- delete new style Dovecot's index files dovecot.index* |
49 |
|
- delete dovecot index files on remote server in --full-restore |
50 |
|
|
51 |
|
* Fri Feb 29 2008 Michael Weinberger 0.9.0-4 |
52 |
|
set localhost as default remoteHostName in /etc/e-smith/templates//etc/cron.d/affa/00jobs |
53 |
|
|
54 |
|
* Wed Feb 27 2008 Michael Weinberger 0.9.0-3 |
55 |
|
removed %post from spec file |
56 |
|
|
57 |
* Sat Feb 02 2008 Michael Weinberger 0.9.0-2 |
* Sat Feb 02 2008 Michael Weinberger 0.9.0-2 |
58 |
Bugfix: Report db was not deleted in deleteJob() |
Bugfix: Report db was not deleted in deleteJob() |
59 |
don't use -q on ssh commands with Debug=yes |
don't use -q on ssh commands with Debug=yes |
323 |
|
|
324 |
%prep |
%prep |
325 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
326 |
%patch0 -p1 -b .debugsshquiet |
%patch0 -p1 |
327 |
|
|
328 |
%build |
%build |
329 |
|
|
337 |
# Set version String |
# Set version String |
338 |
cp -a $RPM_BUILD_ROOT/sbin/e-smith/affa $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp |
cp -a $RPM_BUILD_ROOT/sbin/e-smith/affa $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp |
339 |
VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'` |
VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'` |
340 |
sed -e "s/_VERSIONSTRING_/$VERSIONSTRING/" < $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp > $RPM_BUILD_ROOT/sbin/e-smith/affa |
sed -e "s/my \$VERSION.*;/my \$VERSION='$VERSIONSTRING';/" < $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp > $RPM_BUILD_ROOT/sbin/e-smith/affa |
341 |
rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp |
rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp |
342 |
|
|
343 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
347 |
-e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\ |
-e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\ |
348 |
-e "s@^/etc/profile.d/@%attr(0755,root,root) &@"\ |
-e "s@^/etc/profile.d/@%attr(0755,root,root) &@"\ |
349 |
-e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\ |
-e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\ |
350 |
|
-e "s@^/usr/lib/affa/COPYING@%attr(0444,root,root) &@"\ |
351 |
|
-e "s@^/usr/lib/affa/@%attr(0750,root,root) &@"\ |
352 |
>> %{name}-%{version}-filelist |
>> %{name}-%{version}-filelist |
353 |
|
|
354 |
find $RPM_BUILD_ROOT -depth -type l -print |\ |
find $RPM_BUILD_ROOT -depth -type l -print |\ |
358 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
359 |
exit 0 |
exit 0 |
360 |
|
|
|
%post |
|
|
/sbin/e-smith/db affa get AffaGlobalDisable > /dev/null || /sbin/e-smith/affa --make-cronjobs > /dev/null |
|
361 |
|
|
362 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
363 |
%defattr(-,root,root) |
%defattr(-,root,root) |