/[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.9 - (hide annotations) (download)
Sun Mar 9 12:20:23 2008 UTC (16 years, 7 months ago) by mweinber
Branch: MAIN
CVS Tags: smeserver-affa-0_9_0-9_el4_sme
Changes since 1.8: +6 -2 lines
trapsignals

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