/[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.16 - (hide annotations) (download)
Sun Apr 6 14:57:52 2008 UTC (16 years, 6 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-affa-1_0_0-1_el4_sme
Changes since 1.15: +7 -7 lines
Import on branch contribs7 of package smeserver-affa-1.0.0-1.el4.sme.src.rpm

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