/[smecontribs]/rpms/smeserver-affa/contribs7/smeserver-affa-0.9.0.spec
ViewVC logotype

Annotation of /rpms/smeserver-affa/contribs7/smeserver-affa-0.9.0.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Tue Feb 26 01:05:31 2008 UTC (16 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
Remove version from spec

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

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