/[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.6 - (hide annotations) (download)
Fri Mar 7 18:46:39 2008 UTC (16 years, 7 months ago) by mweinber
Branch: MAIN
Changes since 1.5: +8 -2 lines
createBackupFileOption

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

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