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

Contents of /rpms/smeserver-affa/contribs7/smeserver-affa.spec

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


Revision 1.14 - (show annotations) (download)
Wed Apr 2 15:03:56 2008 UTC (16 years, 8 months ago) by slords
Branch: MAIN
Changes since 1.13: +4 -0 lines
Add Id, Authority, Name

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

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