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 1 |
%define release 7 |
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 |
18 |
|
Patch1: smeserver-affa-0.9.0-defaultRemoteHostName.patch |
19 |
|
Patch2: smeserver-affa-0.9.0-dovecotDeleteNewStyleIndexFiles.patch |
20 |
|
Patch3: smeserver-affa-0.9.0-createBackupFileOption.patch |
21 |
|
Patch4: smeserver-affa-0.9.0-createBackupFileOption2.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 |
|
* Sat Mar 08 2008 Michael Weinberger 0.9.0-7 |
29 |
|
md5sum in --create-backup-file |
30 |
|
* Fri Mar 07 2008 Michael Weinberger 0.9.0-6 |
31 |
|
Added option --create-backup-file |
32 |
|
Using line number as error code in affaErrorExit() |
33 |
|
Fixed /etc/profile.d/affa.sh |
34 |
|
|
35 |
|
* Mon Mar 03 2008 Michael Weinberger 0.9.0-5 |
36 |
|
- delete new style Dovecot's index files dovecot.index* |
37 |
|
- delete dovecot index files on remote server in --full-restore |
38 |
|
|
39 |
|
* Fri Feb 29 2008 Michael Weinberger 0.9.0-4 |
40 |
|
set localhost as default remoteHostName in /etc/e-smith/templates//etc/cron.d/affa/00jobs |
41 |
|
|
42 |
|
* Wed Feb 27 2008 Michael Weinberger 0.9.0-3 |
43 |
|
removed %post from spec file |
44 |
|
|
45 |
|
* Sat Feb 02 2008 Michael Weinberger 0.9.0-2 |
46 |
|
Bugfix: Report db was not deleted in deleteJob() |
47 |
|
don't use -q on ssh commands with Debug=yes |
48 |
|
|
49 |
* Fri Feb 1 2008 Shad L. Lords <slords@mail.com> 0.9.0-1 |
* Fri Feb 1 2008 Shad L. Lords <slords@mail.com> 0.9.0-1 |
50 |
- Fix specfile for building in new buildsystem |
- Fix specfile for building in new buildsystem |
51 |
|
|
311 |
|
|
312 |
%prep |
%prep |
313 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
314 |
|
%patch0 -p1 |
315 |
|
%patch1 -p1 |
316 |
|
%patch2 -p1 |
317 |
|
%patch3 -p1 |
318 |
|
%patch4 -p1 |
319 |
|
|
320 |
%build |
%build |
321 |
|
|
326 |
|
|
327 |
perl createlinks $RPM_BUILD_ROOT |
perl createlinks $RPM_BUILD_ROOT |
328 |
|
|
329 |
|
# Set version String |
330 |
|
cp -a $RPM_BUILD_ROOT/sbin/e-smith/affa $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp |
331 |
|
VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'` |
332 |
|
sed -e "s/_VERSIONSTRING_/$VERSIONSTRING/" < $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp > $RPM_BUILD_ROOT/sbin/e-smith/affa |
333 |
|
rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp |
334 |
|
|
335 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
336 |
|
|
337 |
find $RPM_BUILD_ROOT -depth -type f -print |\ |
find $RPM_BUILD_ROOT -depth -type f -print |\ |
348 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
349 |
exit 0 |
exit 0 |
350 |
|
|
|
%post |
|
|
/sbin/e-smith/db affa get AffaGlobalDisable > /dev/null || /sbin/e-smith/affa --make-cronjobs > /dev/null |
|
351 |
|
|
352 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
353 |
%defattr(-,root,root) |
%defattr(-,root,root) |