2 |
%define name smeserver-affa |
%define name smeserver-affa |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 0.9.0 |
%define version 0.9.0 |
5 |
%define release 6 |
%define release 11 |
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) |
18 |
Patch1: smeserver-affa-0.9.0-defaultRemoteHostName.patch |
Patch1: smeserver-affa-0.9.0-defaultRemoteHostName.patch |
19 |
Patch2: smeserver-affa-0.9.0-dovecotDeleteNewStyleIndexFiles.patch |
Patch2: smeserver-affa-0.9.0-dovecotDeleteNewStyleIndexFiles.patch |
20 |
Patch3: smeserver-affa-0.9.0-createBackupFileOption.patch |
Patch3: smeserver-affa-0.9.0-createBackupFileOption.patch |
21 |
|
Patch4: smeserver-affa-0.9.0-createBackupFileOption2.patch |
22 |
|
Patch5: smeserver-affa-0.9.0-trapsignals.patch |
23 |
|
Patch5: smeserver-affa-0.9.0-trapsignals.patch |
24 |
|
Patch6: smeserver-affa-0.9.0-bug4035.patch |
25 |
|
|
26 |
%description |
%description |
27 |
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. |
28 |
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. |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
|
* Mon Mar 10 2008 Michael Weinberger 0.9.0-11 |
32 |
|
Specfile fix |
33 |
|
* Mon Mar 10 2008 Michael Weinberger 0.9.0-10 |
34 |
|
Delete locally created watchdog file after remotecopy |
35 |
|
Bugfix 4035 |
36 |
|
Added default AutoUnmount property to sample script |
37 |
|
Fix man page |
38 |
|
Do not delete md5sum in --create-backup-file when verify is skipped by user |
39 |
|
Set lock in --create-backup-file |
40 |
|
* Sun Mar 09 2008 Michael Weinberger 0.9.0-9 |
41 |
|
trap signals in --create-backup-file |
42 |
|
* Sat Mar 08 2008 Michael Weinberger 0.9.0-8 |
43 |
|
Permissions in /usr/lib/affa |
44 |
|
* Sat Mar 08 2008 Michael Weinberger 0.9.0-7 |
45 |
|
md5sum in --create-backup-file |
46 |
* Fri Mar 07 2008 Michael Weinberger 0.9.0-6 |
* Fri Mar 07 2008 Michael Weinberger 0.9.0-6 |
47 |
Added option --create-backup-file |
Added option --create-backup-file |
48 |
Using line number as error code in affaErrorExit() |
Using line number as error code in affaErrorExit() |
331 |
%patch1 -p1 |
%patch1 -p1 |
332 |
%patch2 -p1 |
%patch2 -p1 |
333 |
%patch3 -p1 |
%patch3 -p1 |
334 |
|
%patch4 -p1 |
335 |
|
%patch5 -p1 |
336 |
|
%patch6 -p1 |
337 |
|
|
338 |
%build |
%build |
339 |
|
|
347 |
# Set version String |
# Set version String |
348 |
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 |
349 |
VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'` |
VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'` |
350 |
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 |
351 |
rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp |
rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp |
352 |
|
|
353 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
357 |
-e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\ |
-e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\ |
358 |
-e "s@^/etc/profile.d/@%attr(0755,root,root) &@"\ |
-e "s@^/etc/profile.d/@%attr(0755,root,root) &@"\ |
359 |
-e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\ |
-e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\ |
360 |
|
-e "s@^/usr/lib/affa/COPYING@%attr(0444,root,root) &@"\ |
361 |
|
-e "s@^/usr/lib/affa/@%attr(0750,root,root) &@"\ |
362 |
>> %{name}-%{version}-filelist |
>> %{name}-%{version}-filelist |
363 |
|
|
364 |
find $RPM_BUILD_ROOT -depth -type l -print |\ |
find $RPM_BUILD_ROOT -depth -type l -print |\ |