/[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.12 - (hide annotations) (download)
Mon Mar 10 20:29:34 2008 UTC (16 years, 8 months ago) by slords
Branch: MAIN
Changes since 1.11: +5 -17 lines
Import on branch contribs7 of package smeserver-affa-0.10.0-0.el4.sme.src.rpm

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

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