1 |
|
# $Id: smeserver-affa.spec,v 1.16 2008/04/06 14:57:52 slords Exp $ |
2 |
|
# Authority: mweinber |
3 |
|
# Name: Michael Weinberger |
4 |
|
|
5 |
Summary: Makes the SME server a dedicated rsync based backup server |
Summary: Makes the SME server a dedicated rsync based backup server |
6 |
%define name smeserver-affa |
%define name smeserver-affa |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 0.9.0 |
%define version 1.0.0 |
9 |
%define release 6 |
%define release 2 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GNU GPL (GNU General Public License) |
License: GNU GPL (GNU General Public License) |
18 |
Requires: smeserver-release >= 7 |
Requires: smeserver-release >= 7 |
19 |
Requires: perl-Filesys-DiskFree |
Requires: perl-Filesys-DiskFree |
20 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
21 |
Patch0: smeserver-affa-0.9.0-debugsshquiet.patch |
Patch0: smeserver-affa-1.0.0-bug4210.patch |
|
Patch1: smeserver-affa-0.9.0-defaultRemoteHostName.patch |
|
|
Patch2: smeserver-affa-0.9.0-dovecotDeleteNewStyleIndexFiles.patch |
|
|
Patch3: smeserver-affa-0.9.0-createBackupFileOption.patch |
|
22 |
|
|
23 |
%description |
%description |
24 |
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. |
25 |
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. |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
|
* Tue Apr 22 2008 Michael Weinberger 1.0.0-2 |
29 |
|
Bug fix #4210, command "affa --show-schedule" executes postJobCommand |
30 |
|
* Fri Apr 04 2008 Michael Weinberger 1.0.0-1 |
31 |
|
Final release |
32 |
|
man page updated |
33 |
|
* Fri Apr 04 2008 Michael Weinberger 0.10.0-2 |
34 |
|
added --all option to --rise |
35 |
|
* Mon Mar 10 2008 Michael Weinberger 0.10.0-1 |
36 |
|
Increased release number |
37 |
|
Added 10 sec timeout in Net::DNS::Resolver->search |
38 |
|
* Mon Mar 10 2008 Michael Weinberger 0.9.0-11 |
39 |
|
Specfile fix |
40 |
|
* Mon Mar 10 2008 Michael Weinberger 0.9.0-10 |
41 |
|
Delete locally created watchdog file after remotecopy |
42 |
|
Bugfix 4035 |
43 |
|
Added default AutoUnmount property to sample script |
44 |
|
Fix man page |
45 |
|
Do not delete md5sum in --create-backup-file when verify is skipped by user |
46 |
|
Set lock in --create-backup-file |
47 |
|
* Sun Mar 09 2008 Michael Weinberger 0.9.0-9 |
48 |
|
trap signals in --create-backup-file |
49 |
|
* Sat Mar 08 2008 Michael Weinberger 0.9.0-8 |
50 |
|
Permissions in /usr/lib/affa |
51 |
|
* Sat Mar 08 2008 Michael Weinberger 0.9.0-7 |
52 |
|
md5sum in --create-backup-file |
53 |
* Fri Mar 07 2008 Michael Weinberger 0.9.0-6 |
* Fri Mar 07 2008 Michael Weinberger 0.9.0-6 |
54 |
Added option --create-backup-file |
Added option --create-backup-file |
55 |
Using line number as error code in affaErrorExit() |
Using line number as error code in affaErrorExit() |
334 |
|
|
335 |
%prep |
%prep |
336 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
337 |
%patch0 -p1 |
%patch0 -p1 |
|
%patch1 -p1 |
|
|
%patch2 -p1 |
|
|
%patch3 -p1 |
|
338 |
|
|
339 |
%build |
%build |
340 |
|
|
348 |
# Set version String |
# Set version String |
349 |
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 |
350 |
VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'` |
VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'` |
351 |
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 |
352 |
rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp |
rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp |
353 |
|
|
354 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
358 |
-e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\ |
-e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\ |
359 |
-e "s@^/etc/profile.d/@%attr(0755,root,root) &@"\ |
-e "s@^/etc/profile.d/@%attr(0755,root,root) &@"\ |
360 |
-e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\ |
-e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\ |
361 |
|
-e "s@^/usr/lib/affa/COPYING@%attr(0444,root,root) &@"\ |
362 |
|
-e "s@^/usr/lib/affa/@%attr(0750,root,root) &@"\ |
363 |
>> %{name}-%{version}-filelist |
>> %{name}-%{version}-filelist |
364 |
|
|
365 |
find $RPM_BUILD_ROOT -depth -type l -print |\ |
find $RPM_BUILD_ROOT -depth -type l -print |\ |