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

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

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


Revision 1.1 - (hide annotations) (download)
Fri Feb 1 17:57:23 2008 UTC (16 years, 4 months ago) by slords
Branch: MAIN
Import on branch contribs7 of package smeserver-affa-0.9.0-0.src.rpm

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

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