/[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.15 - (hide annotations) (download)
Fri Apr 4 12:55:46 2008 UTC (16 years, 2 months ago) by mweinber
Branch: MAIN
CVS Tags: smeserver-affa-0_10_0-2_el4_sme
Changes since 1.14: +7 -2 lines
added --all option to --rise

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

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