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

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

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

Revision 1.1 by unnilennium, Tue Feb 5 21:26:53 2013 UTC Revision 1.2 by unnilennium, Sun Jun 2 03:40:13 2013 UTC
# Line 1  Line 1 
1  # $Id: smeserver-affa.spec,v 1.20 2008/11/25 16:20:17 slords Exp $  Summary: Makes the SME server a dedicated backup server
 # Authority: mweinber  
 # Name: Michael Weinberger  
   
 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 1.0.0  %define version 2.0.0
5  %define release 3  %define release rc4
6  Version: %{version}  Version: %{version}
7  Release: %{release}%{?dist}  Release: %{release}%{?dist}
8  License: GNU GPL (GNU General Public License)  Vendor: Michael Weinberger <Michael.Weinberger@neddix.de>
9    License: GNU General Public License
10  Group: Applications/Archiving  Group: Applications/Archiving
11  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
12  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
13  BuildArch: noarch  BuildArch: noarch
14  AutoReq: no  AutoReq: no
15  Requires: smeserver-release >= 7  Requires: smeserver-release >= 7.3
16    Requires: rsync >= 3.0.4
17  Requires: perl-Filesys-DiskFree  Requires: perl-Filesys-DiskFree
18    Requires: perl-Compress-Bzip2
19  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
 Patch0: smeserver-affa-1.0.0-bug4210.patch  
 Patch1: smeserver-affa-1.0.0-desktop.patch  
20    
21  %description  %description
22  Main purpose ist to make the SME server a dedicated rsync based backup server.  http://wiki.contribs.org/Affa
23  Also providing functions to backup to USB disks or SMB shares in SOHO environments.  http://wiki.contribs.org/Backup_of_ESXi_Virtual_Machines_using_Affa
24    
25    %prep
26    %setup -q -n %{name}-%{version}
27    
28    %build
29    
30    %install
31    rm -rf $RPM_BUILD_ROOT
32    rm -f %{name}-%{version}-filelist
33    (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
34    
35    perl createlinks $RPM_BUILD_ROOT
36    
37    # Set version String
38    cp -a $RPM_BUILD_ROOT/sbin/e-smith/affa $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp
39    VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'`
40    sed -e "s/my \$VERSION.*;/my \$VERSION='$VERSIONSTRING';/" < $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp > $RPM_BUILD_ROOT/sbin/e-smith/affa
41    rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp
42    
43    rm -f %{name}-%{version}-filelist
44    
45    find $RPM_BUILD_ROOT -depth -type f -print |\
46     sed -e "s@^$RPM_BUILD_ROOT@@g" \
47     -e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\
48     -e "s@^/usr/lib/perl5/@%attr(0644,root,root) &@"\
49     -e "s@^/etc/profile.d/@%attr(0555,root,root) &@"\
50     -e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\
51     -e "s@^/usr/lib/affa/COPYING@%attr(0444,root,root) &@"\
52     -e "s@^/usr/lib/affa/@%attr(0750,root,root) &@"\
53     >> %{name}-%{version}-filelist
54    
55    find $RPM_BUILD_ROOT -depth -type l -print |\
56     sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist
57    
58    %clean
59    rm -rf $RPM_BUILD_ROOT
60    exit 0
61    
62    
63    %files -f %{name}-%{version}-filelist
64    %defattr(-,root,root)
65    
66  %changelog  %changelog
67    * Sun Jan 25 2009 Michael Weinberger 2.0.0-rc4
68      Bugfix: --send-status was broken
69      Added disk usages to Success Message
70    
71    * Fri Jan 23 2009 Michael Weinberger 2.0.0-rc3
72      Bugfix: --mailtest: mail from remote watchdog was not sent
73    
74    * Sun Jan 10 2009 Michael Weinberger 2.0.0-rc2
75    - Workaround to catch Dropbear rsync errors (ESXi Mode)
76    
77    * Sun Jan 04 2009 Michael Weinberger 2.0.0-rc1
78    - no changes
79    
80    * Fri Jan 02 2009 Michael Weinberger 2.0.0-beta21
81    - show last execution time in --show-schedule
82    
83    * Thu Jan 01 2009 Michael Weinberger 2.0.0-beta20
84    - Fixed calculation of compression rate in chunkfile()
85    - Changed format of --list-archives output: added Exec Time and Bytes received
86    - Changed format of --status: added Exec Time, removed Disk usage
87    - Output formatted table in --disk-usage
88    - added --debug CLI switch
89    
90    
91    * Tue Dec 30 2008 Michael Weinberger 2.0.0-beta19
92    - Retry feature added, new props RetryAfter,RetryAttempts and RetryNotification
93    - Dependency rsync >= 3.0.4 added to spec file
94    - Append job status on testmail (because spam filter on receiver site)
95    - log total execution time
96    
97    * Fri Dec 26 2008 Michael Weinberger 2.0.0-beta18
98    - bugfix check-connections: in ssh check in rsyncd mode
99    - Bug 4888 fixed: escape single quotes in source dir names
100    - Bug 4882 fixed: LVM mapped devices
101    
102    * Fri Dec 19 2008 Michael Weinberger 2.0.0-beta17
103    - dont chunk ESXi vmdk files in linkdest archive that will be deleted afterwards
104    - show disk usage at time at job run in --status
105    - new option --disk-usage shows current disk usage of all Root Dirs
106    - Bug 4852 fixed
107    - Modifications to allow backup of specific files (Bug 4853)
108    
109    * Thu Dec 11 2008 Michael Weinberger 2.0.0-beta16
110    - shorten command line of rsync command when syncing ESXi VM. Dropbear has limits
111    
112    * Wed Dec 10 2008 Michael Weinberger 2.0.0-beta15
113    - chunk feature now working for all job types
114    - new property chunkFiles
115    - new options --chunk-archive and --unchunk-archive
116    
117    * Mon Dec 08 2008 Michael Weinberger 2.0.0-beta14
118    - --delete-job: Delete logfile
119    - samba template for Affa archives
120    - Bugfix: snapshot was removed to early. Wrong vmx file copied
121    - disabled chunk feature for now. Needs more testing
122    
123    * Sun Dec 07 2008 Michael Weinberger 2.0.0-beta12
124    - using perl Compress::Bzip2
125    
126    * Sat Dec 06 2008 Michael Weinberger 2.0.0-beta11
127    - replaced gzip by bzip2 as gzip inserts timestamps
128    
129    * Wed Dec 04 2008 Michael Weinberger 2.0.0-beta10
130    - bugfixes
131    
132    * Wed Dec 04 2008 Michael Weinberger 2.0.0-beta09
133    - chunk and compress vmdk files
134    
135    * Thu Nov 27 2008 Michael Weinberger 2.0.0-beta08
136    - allow special characters in VM name and pathes
137    
138    * Tue Nov 11 2008 Michael Weinberger 2.0.0-beta07
139    - New Dropbear Version 0.51 did not work stable. Stay with original 0.49 and th exit status bug
140    - Modified Affa to not to check exit status of ssh and rsync command
141    
142    * Sat Nov 08 2008 Michael Weinberger 2.0.0-beta06
143    - FIXED: rsync did not work for VM with blanks in name
144    - SSH exit codes now checked as Dropbear 0.51 is used on ESX3i host
145    
146    * Tue Nov 04 2008 Michael Weinberger 2.0.0-beta05
147    - log msg and exit if VI Pert Tool Kit installed
148    - Fixed: in job sample scripts create affa db if not exists
149    
150    * Tue Nov 04 2008 Michael Weinberger 2.0.0-beta04
151    - Allow setups with dailyKeep=0, weeklyKeep=0, monthlyKeep=0 or yearlyKeep=0
152    - Fixed: Yearly archives not listed in --status and --list-archives
153    
154    * Mon Nov 03 2008 Michael Weinberger 2.0.0-beta03
155    - cleaner logging of VI API errors
156    - backing up ESXi server config and root home dir
157    - Checking VI API connect in --check-connections
158    
159    * Sun Nov 02 2008 Michael Weinberger 2.0.0-beta02
160    - Fixed: Log file excerpt was not appened to Email.
161    - Fixed: checkConnection() did not work for ESXi
162    - Fixed: ssh find command did not use the HostKeyAlias option
163    - Catch die from VI Toolkit
164    - Close VI API session while rsyncing
165    
166    * Fri Oct 31 2008 Michael Weinberger 2.0.0-beta01
167    - ESXi support added
168    
169  * Tue May 27 2008 Michael Weinberger 1.0.0-3  * Tue May 27 2008 Michael Weinberger 1.0.0-3
170    Re-added type 'desktop' to pre-backup event for SME6 compatibility    Re-added type 'desktop' to pre-backup event for SME6 compatibility
171  * Tue Apr 22 2008 Michael Weinberger 1.0.0-2  * Tue Apr 22 2008 Michael Weinberger 1.0.0-2
# Line 335  Also providing functions to backup to US Line 475  Also providing functions to backup to US
475  * Mon Apr 02 2007 Michael Weinberger  * Mon Apr 02 2007 Michael Weinberger
476  - initial release  - initial release
477    
 %prep  
 %setup -q -n %{name}-%{version}  
 %patch0 -p1  
 %patch1 -p1  
   
 %build  
   
 %install  
 rm -rf $RPM_BUILD_ROOT  
 rm -f %{name}-%{version}-filelist  
 (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  
   
 perl createlinks $RPM_BUILD_ROOT  
   
 # Set version String  
 cp -a $RPM_BUILD_ROOT/sbin/e-smith/affa $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp  
 VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'`  
 sed -e "s/my \$VERSION.*;/my \$VERSION='$VERSIONSTRING';/" < $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp > $RPM_BUILD_ROOT/sbin/e-smith/affa  
 rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp  
   
 rm -f %{name}-%{version}-filelist  
   
 find $RPM_BUILD_ROOT -depth -type f -print |\  
  sed -e "s@^$RPM_BUILD_ROOT@@g" \  
  -e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\  
  -e "s@^/etc/profile.d/@%attr(0755,root,root) &@"\  
  -e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\  
  -e "s@^/usr/lib/affa/COPYING@%attr(0444,root,root) &@"\  
  -e "s@^/usr/lib/affa/@%attr(0750,root,root) &@"\  
  >> %{name}-%{version}-filelist  
   
 find $RPM_BUILD_ROOT -depth -type l -print |\  
  sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist  
   
 %clean  
 rm -rf $RPM_BUILD_ROOT  
 exit 0  
   
   
 %files -f %{name}-%{version}-filelist  
 %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