/[smecontribs]/rpms/smeserver-affa/contribs7/smeserver-affa.spec
ViewVC logotype

Diff of /rpms/smeserver-affa/contribs7/smeserver-affa.spec

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

Revision 1.1 by slords, Tue Feb 26 01:05:31 2008 UTC Revision 1.18 by mweinber, Tue May 27 12:12:29 2008 UTC
# Line 1  Line 1 
1    # $Id: smeserver-affa.spec,v 1.17 2008/04/22 07:12:28 mweinber 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 1  %define release 3
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)
# Line 14  AutoReq: no Line 18  AutoReq: no
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-1.0.0-bug4210.patch
22    Patch1: smeserver-affa-1.0.0-desktop.patch
23    
24  %description  %description
25  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.
26  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.
27    
28  %changelog  %changelog
29    * Tue May 27 2008 Michael Weinberger 1.0.0-3
30      Re-added type 'desktop' to pre-backup event for SME6 compatibility
31    * Tue Apr 22 2008 Michael Weinberger 1.0.0-2
32      Bug fix #4210, command "affa --show-schedule" executes postJobCommand
33    * Fri Apr 04 2008 Michael Weinberger 1.0.0-1
34      Final release
35      man page updated
36    * Fri Apr 04 2008 Michael Weinberger 0.10.0-2
37      added --all option to --rise
38    * Mon Mar 10 2008 Michael Weinberger 0.10.0-1
39      Increased release number
40      Added 10 sec timeout in Net::DNS::Resolver->search
41    * Mon Mar 10 2008 Michael Weinberger 0.9.0-11
42      Specfile fix
43    * Mon Mar 10 2008 Michael Weinberger 0.9.0-10
44      Delete locally created watchdog file after remotecopy
45      Bugfix 4035
46      Added default AutoUnmount property to sample script
47      Fix man page
48      Do not delete md5sum in --create-backup-file when verify is skipped by user
49      Set lock in --create-backup-file
50    * Sun Mar 09 2008 Michael Weinberger 0.9.0-9
51      trap signals in --create-backup-file
52    * Sat Mar 08 2008 Michael Weinberger 0.9.0-8
53      Permissions in /usr/lib/affa
54    * Sat Mar 08 2008 Michael Weinberger 0.9.0-7
55      md5sum in --create-backup-file
56    * Fri Mar 07 2008 Michael Weinberger 0.9.0-6
57      Added option --create-backup-file
58      Using line number as error code in affaErrorExit()
59      Fixed /etc/profile.d/affa.sh
60      
61    * Mon Mar 03 2008 Michael Weinberger 0.9.0-5
62    - delete new style Dovecot's index files dovecot.index*
63    - delete dovecot index files on remote server in --full-restore
64    
65    * Fri Feb 29 2008 Michael Weinberger 0.9.0-4
66      set localhost as default remoteHostName in /etc/e-smith/templates//etc/cron.d/affa/00jobs
67    
68    * Wed Feb 27 2008 Michael Weinberger 0.9.0-3
69      removed %post from spec file
70    
71    * Sat Feb 02 2008 Michael Weinberger 0.9.0-2
72      Bugfix: Report db was not deleted in deleteJob()
73      don't use -q on ssh commands with Debug=yes
74    
75  * 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
76  - Fix specfile for building in new buildsystem  - Fix specfile for building in new buildsystem
77    
# Line 285  Also providing functions to backup to US Line 337  Also providing functions to backup to US
337    
338  %prep  %prep
339  %setup -q -n %{name}-%{version}  %setup -q -n %{name}-%{version}
340    %patch0 -p1
341    %patch1 -p1
342    
343  %build  %build
344    
# Line 295  rm -f %{name}-%{version}-filelist Line 349  rm -f %{name}-%{version}-filelist
349    
350  perl createlinks $RPM_BUILD_ROOT  perl createlinks $RPM_BUILD_ROOT
351    
352    # Set version String
353    cp -a $RPM_BUILD_ROOT/sbin/e-smith/affa $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp
354    VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'`
355    sed -e "s/my \$VERSION.*;/my \$VERSION='$VERSIONSTRING';/" < $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp > $RPM_BUILD_ROOT/sbin/e-smith/affa
356    rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp
357    
358  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
359    
360  find $RPM_BUILD_ROOT -depth -type f -print |\  find $RPM_BUILD_ROOT -depth -type f -print |\
# Line 302  find $RPM_BUILD_ROOT -depth -type f -pri Line 362  find $RPM_BUILD_ROOT -depth -type f -pri
362   -e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\   -e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\
363   -e "s@^/etc/profile.d/@%attr(0755,root,root) &@"\   -e "s@^/etc/profile.d/@%attr(0755,root,root) &@"\
364   -e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\   -e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\
365     -e "s@^/usr/lib/affa/COPYING@%attr(0444,root,root) &@"\
366     -e "s@^/usr/lib/affa/@%attr(0750,root,root) &@"\
367   >> %{name}-%{version}-filelist   >> %{name}-%{version}-filelist
368    
369  find $RPM_BUILD_ROOT -depth -type l -print |\  find $RPM_BUILD_ROOT -depth -type l -print |\
# Line 311  find $RPM_BUILD_ROOT -depth -type l -pri Line 373  find $RPM_BUILD_ROOT -depth -type l -pri
373  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
374  exit 0  exit 0
375    
 %post  
 /sbin/e-smith/db affa get AffaGlobalDisable > /dev/null || /sbin/e-smith/affa --make-cronjobs > /dev/null  
376    
377  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
378  %defattr(-,root,root)  %defattr(-,root,root)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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