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

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

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


Revision 1.2 - (hide annotations) (download)
Wed Feb 27 16:36:44 2008 UTC (16 years, 3 months ago) by mweinber
Branch: MAIN
CVS Tags: smeserver-affa-0_9_0-2_el4_sme
Changes since 1.1: +13 -1 lines
ssh debug output in debug mode

1 slords 1.1 Summary: Makes the SME server a dedicated rsync based backup server
2     %define name smeserver-affa
3     Name: %{name}
4     %define version 0.9.0
5 mweinber 1.2 %define release 2
6 slords 1.1 Version: %{version}
7     Release: %{release}%{?dist}
8     License: GNU GPL (GNU General Public License)
9     Group: Applications/Archiving
10     Source: %{name}-%{version}.tar.gz
11     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
12     BuildArch: noarch
13     AutoReq: no
14     Requires: smeserver-release >= 7
15     Requires: perl-Filesys-DiskFree
16     BuildRequires: e-smith-devtools
17 mweinber 1.2 Patch0: smeserver-affa-0.9.0-debugsshquiet.patch
18 slords 1.1
19     %description
20     Main purpose ist to make the SME server a dedicated rsync based backup server.
21     Also providing functions to backup to USB disks or SMB shares in SOHO environments.
22    
23     %changelog
24 mweinber 1.2 * Sat Feb 02 2008 Michael Weinberger 0.9.0-2
25     Bugfix: Report db was not deleted in deleteJob()
26     don't use -q on ssh commands with Debug=yes
27    
28 slords 1.1 * Fri Feb 1 2008 Shad L. Lords <slords@mail.com> 0.9.0-1
29     - Fix specfile for building in new buildsystem
30    
31     * Fri Jan 18 2008 Michael Weinberger
32     Version 0.9.0
33     Bugfix: run cronSetup() after job delete
34     Throw error if nothing was backed up (empty archive)
35     Added rsyncd support for backing up Windows/Cygwin
36     Added option and property remoteOS. Which remoteOS=cgywin the
37     send key and revoke key functions use the right path to the
38     authorized_keys2 file and login as user Administrator
39    
40     * Sat Dec 29 2007 Michael Weinberger
41     Version 0.8.1
42     Automount Bugfix [Bug 3165]: Only exit with error on mount failure
43     when in backup run. Otherwise log the error and continue.
44    
45     * Thu Dec 20 2007 Michael Weinberger
46     Version 0.8.0
47     added bash completion script
48     added option --kill JOB
49     improved INT and TERM signal handling
50     replaced all scp commands by rsync
51     added poperty BandwidthLimit (unit KBytes/sec)
52     each job write its own known hosts entry using ssh option HostKeyAliasOption
53     affa --send-key w/o arguments sends the keys for all jobs
54     removed Property StrictHostKeyChecking
55     UPDATE FROM VERSIONS<8: run the command 'affa --send-key' to generate
56     the known hosts entries for all jobs
57    
58     * Wed Dec 12 2007 Michael Weinberger
59     Version 0.7.0
60     Modified logging: Job run logs to /var/log/affa/JOBNAME.log, all other
61     to /var/log/affa/affa.log
62     Bugfix: Check error status of --send-key and --revoke-key
63     New: Options --show-schedule
64     Modified: Option --list-archives now accepts multiple args or none
65     Fix: install watchdog on source server before every run not only scheduled,
66     to avoid watchdog triggered if a non-scheduled run take to long time.
67    
68     * Wed Nov 28 2007 Michael Weinberger
69     Version 0.6.8
70     Bugfix: Automount was done too late. Daily backup never ran.
71    
72     * Wed Nov 21 2007 Michael Weinberger
73     Version 0.6.7
74     Bugfix: Size and No. of files were not shown in --status
75     Improved deleting of directories
76     added --check-connections option
77     Increased width of job column in --stats table
78    
79     * Sun Nov 11 2007 Michael Weinberger
80     Version 0.6.6
81     Property rsync--modify-window added
82     Modified recursive deleting directories
83    
84     * Wed Nov 07 2007 Michael Weinberger
85     Version 0.6.5
86     ssh options added to scp commands
87     added post-backup event
88    
89     * Wed Aug 08 2007 Michael Weinberger
90     Version 0.6.4
91     delete dovcot index files after a --rise
92    
93     * Thu Jul 05 2007 Michael Weinberger
94     Version 0.6.3
95     Bugfix: with RPMCheck=yes the affa-rpmlist was not found in the
96     archive. Wrong path to schedule.0 instead of scheduled.running.
97     Side effect of changes in version 0.5.0. [Bug 3128]
98    
99     * Tue Jul 03 2007 Michael Weinberger
100     Version 0.6.2
101     Bugfix: Filesys::DiskFree requires $ENV{LANG}="en_US" [Bug 3119]
102     Bug reported to bug-Filesys-DiskFree [at] rt.cpan.org
103    
104     * Mon Jun 25 2007 Michael Weinberger
105     Version 0.6.1
106     Fix 3080 was not applied.
107    
108     * Mon Jun 18 2007 Michael Weinberger
109     Version 0.6.0
110     - Replaced Filesys::DiskSpace by Filesys::DiskFree as the latter
111     supports CIFS file system
112     - using Filesys::DiskFree->mount and ->device instead of scanning /proc/mounts
113     - mkdir RootDir only on job run to avoid making it in an unmounted mountpoint
114    
115     * Mon Jun 18 2007 Michael Weinberger
116     Version 0.5.2
117     - Sending ssh key failed. When grep returned an error
118     the mv command was not executed. Using ';' instead of '&&'
119     for chaining commands. [Bug 3080]
120     - /root/.ssh/authorized_keys2: No such file or directory warning.
121     Run a touch to guarantee, that the file exists. [Bug 3080]
122     - same issue with --revoke-key
123    
124     * Thu Jun 14 2007 Michael Weinberger
125     Version 0.5.1
126     - Bugfix automount: getStatus() unmounts the device while a job is running
127     - Status table: Last=never, if there are no archives at all
128    
129     * Tue Jun 12 2007 Michael Weinberger
130     Version 0.5.0
131     - New property AutomountOptions
132     - status table: grouped disabled jobs. Show Last='-' for disabled jobs
133     instead of 'failed'
134     - unlink lockfile in getLock()
135     - Changes to improve robustness in case of network outage:
136     - writing to a temporary archive scheduled.running and linkdest
137     against the latest existing archive (usually scheduled.0). Then
138     shift archives and rename scheduled.running to scheduled.0
139     - scheduledKeep=1 is now allowed
140     - also check connection in daily,weekly etc., not only in scheduled run
141     - don't run daily, weekly, monthly or yearly, when scheduled.0 doesn't exist.
142     - new option --revoke-key
143     - added optional option --revoke-key to --delete-job
144     - avoid multiple adding public key to authorized_keys2 on source server
145    
146     * Wed Jun 06 2007 Michael Weinberger
147     Version 0.4.7
148     - use StrictHostKeyChecking=no in sendKeys()
149    
150     * Tue Jun 05 2007 Michael Weinberger
151     Version 0.4.6
152     - mailtest: Send also a testmail from the remotehost, when property Watchdog=yes
153     - removed useless code in mailTestWatchdogRemote()
154    
155     * Mon Jun 04 2007 Michael Weinberger
156     Version 0.4.5
157     write job config file to the archive dir
158    
159     * Thu May 31 2007 Michael Weinberger
160     Version 0.4.4
161     - added property StrictHostKeyChecking (ssh option)
162     - string comparison instead of numric for $job{'doneYearly'} ne $thisYear etc.
163    
164     * Wed May 30 2007 Michael Weinberger
165     Version 0.4.3
166     - Minor bugfixes:
167     calculation of RootDirFilesystemUsage in .AFFA-REPORT
168     improved error handling with rsync status and df in DiskspaceWarn()
169    
170     * Thu May 29 2007 Michael Weinberger
171     - Version 0.4.2
172     Infinite loop in execPostJobCommand() if command could not be executed:
173     Don't call execPostJobCommand() in affaErrorExit() if err==115
174     - RPMCheck property was ignored
175     - added Property chattyOnSuccess
176     - modified jobconfig-sample.pl to preserve 'doneDaily','doneWeekly',
177     'doneMonthly','doneYearly' and 'chattyOnSuccess'
178     - write error codes of affaErrorExit() to log
179    
180     * Thu May 24 2007 Michael Weinberger
181     - Version 0.4.1
182     - fixed bug in disk usage calculation
183    
184     * Tue May 22 2007 Michael Weinberger
185     - Version 0.4.0
186     - added option --rename-job
187     - changed syntax of --send-keys
188     - added option --move-archive
189    
190     * Sun May 20 2007 Michael Weinberger
191     - Version 0.3.3
192     - rebuild cronjobs after rise/undorise
193     - ignore job of own backup, when creating cronjobs (job appears after a rise run)
194    
195     * Sun May 20 2007 Michael Weinberger
196     - Version 0.3.2
197     - man: added sshPort propperty
198     - chdir /tmp to avoid cwd warnings when the cwd disappears while
199     running rise or undo rise
200     - bugfix: undorise() did not found own backup archive. Was searching for a wrong name
201    
202     * Wed May 16 2007 Michael Weinberger
203     - Version 0.3.1 minor bugfixes
204     - checkCrossFS() did not work (used in --rise)
205     - jobconfig-sample.pl: deleting record before setting props
206     - Perl errors with --status before a job run
207    
208     * Thu May 10 2007 Michael Weinberger
209     - Version 0.3.0
210     - man page completed
211     - mark archives with indices > keep setting with '*' in --list-acrchive output
212     - Option --delete-job
213     - Option --cleanup
214     - added --job=JOB alternative to --send-keys
215    
216     * Wed May 09 2007 Michael Weinberger
217     - Version 0.2.0
218     - added --mailtest option
219    
220     * Tue May 08 2007 Michael Weinberger
221     - Version 0.1.5
222     - improved --status output
223     - removed options --report and --send-report
224     - added option --show-archives
225     - added --csv for status and show-archives output in CSV format
226     - added property 'sshPort'
227    
228     * Mon May 07 2007 Michael Weinberger
229     - Version 0.1.4
230     - don't install the remote watchdog, when remotehost is eq localhost
231     - improved check for remoteHostName eq localhost using DNS
232     - ssh -o PasswordAuthentication=no in checkConnection()
233     - added --full-restore
234     - missing check for HOSTNAME argument in --send-keys added
235     improved error check
236     - prevent run of --rise of localhost from own backup
237    
238     * Mon Apr 30 2007 Michael Weinberger
239     - Version 0.1.3
240     modified 'use constant* syntax in watchdog script for compatibility
241     with perl 5.6 on SME6
242    
243     * Fri Apr 27 2007 Michael Weinberger
244     - Version 0.1.2
245     Bugfix: Preserve of ethernet driver setting with --rise did not work.
246     Also preserve NIC bonding.
247    
248     * Mon Apr 23 2007 Michael Weinberger
249     - Version 0.1.1
250     scheduledKeep must be>=2 for --link-dest
251     set scheduledKeep to 2 if <2
252     - get lastrun date from affa-report rather than from report file
253     - added auto mount function
254     - added AutomountDevice and AutomountPoint to jobconfig-sample.pl
255    
256     * Wed Apr 18 2007 Michael Weinberger
257     - Version 0.0.8
258     dont die if report db does not exist
259    
260     * Wed Apr 18 2007 Michael Weinberger
261     - Version 0.0.7
262     run checkConnection() only for scheduled backups
263     added Size and Disk usage information to --status
264    
265     * Tue Apr 17 2007 Michael Weinberger
266     - Version 0.0.7
267     print Servername in --status output
268    
269     * Thu Apr 12 2007 Michael Weinberger
270     - Version 0.0.5
271     fixed calculation of lastrun-now
272    
273     * Thu Apr 12 2007 Michael Weinberger
274     - Version 0.0.4
275     - added --send-status plus templates
276     - fixed format error of times in affa --status
277     - show 'failed', if lastrun is older 1 day in affa --status
278     - fixed typo. default status=disabled (was disable)
279    
280     * Fri Apr 06 2007 Michael Weinberger
281     - Version 0.0.3
282     - watchdog reminder was not deleted on soure
283     - wrong version mismatch list in rpm compare
284    
285     * Thu Apr 05 2007 Michael Weinberger
286     - added 'rsync--inplace' property
287    
288     * Mon Apr 02 2007 Michael Weinberger
289     - initial release
290    
291     %prep
292     %setup -q -n %{name}-%{version}
293 mweinber 1.2 %patch0 -p1 -b .debugsshquiet
294 slords 1.1
295     %build
296    
297     %install
298     rm -rf $RPM_BUILD_ROOT
299     rm -f %{name}-%{version}-filelist
300     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
301    
302     perl createlinks $RPM_BUILD_ROOT
303    
304 mweinber 1.2 # Set version String
305     cp -a $RPM_BUILD_ROOT/sbin/e-smith/affa $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp
306     VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'`
307     sed -e "s/_VERSIONSTRING_/$VERSIONSTRING/" < $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp > $RPM_BUILD_ROOT/sbin/e-smith/affa
308     rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp
309    
310 slords 1.1 rm -f %{name}-%{version}-filelist
311    
312     find $RPM_BUILD_ROOT -depth -type f -print |\
313     sed -e "s@^$RPM_BUILD_ROOT@@g" \
314     -e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\
315     -e "s@^/etc/profile.d/@%attr(0755,root,root) &@"\
316     -e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\
317     >> %{name}-%{version}-filelist
318    
319     find $RPM_BUILD_ROOT -depth -type l -print |\
320     sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist
321    
322     %clean
323     rm -rf $RPM_BUILD_ROOT
324     exit 0
325    
326     %post
327     /sbin/e-smith/db affa get AffaGlobalDisable > /dev/null || /sbin/e-smith/affa --make-cronjobs > /dev/null
328    
329     %files -f %{name}-%{version}-filelist
330     %defattr(-,root,root)

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