/[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.13 - (hide annotations) (download)
Tue Mar 11 10:55:06 2008 UTC (16 years, 8 months ago) by mweinber
Branch: MAIN
CVS Tags: smeserver-affa-0_10_0-1_el4_sme
Changes since 1.12: +6 -4 lines
Affa: oncreased release number

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

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