/[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.4 - (show annotations) (download)
Fri Feb 29 09:39:25 2008 UTC (16 years, 9 months ago) by mweinber
Branch: MAIN
CVS Tags: smeserver-affa-0_9_0-4_el4_sme
Changes since 1.3: +8 -2 lines
* Fri Feb 29 2008 Michael Weinberger 0.9.0-4
  set localhost as default remoteHostName in /etc/e-smith/templates//etc/cron.d/affa/00jobs

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

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