/[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.17 - (hide annotations) (download)
Tue Apr 22 07:12:28 2008 UTC (16 years, 7 months ago) by mweinber
Branch: MAIN
CVS Tags: smeserver-affa-1_0_0-2_el4_sme
Changes since 1.16: +6 -4 lines
command affa --show-schedule executes postJobCommand [SME: 4210]

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

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