/[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.7 - (hide annotations) (download)
Sat Mar 8 17:04:38 2008 UTC (16 years, 8 months ago) by mweinber
Branch: MAIN
Changes since 1.6: +5 -1 lines
createBackupFileOption2

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

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