/[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.8 - (hide annotations) (download)
Sat Mar 8 18:29:36 2008 UTC (16 years, 7 months ago) by mweinber
Branch: MAIN
Changes since 1.7: +5 -1 lines
FixedPermissions

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

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