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