3 %bcond_with xfs # with support for xfsdump
4 %bcond_without client # without client package
5 %bcond_without server # without server package
7 Summary: A network-capable tape backup solution
8 Summary(pl): Sieciowo zorientowany system tworzenia kopii zapasowych
13 Group: Networking/Utilities
14 Source0: http://dl.sourceforge.net/amanda/%{name}-%{version}.tar.gz
15 # Source0-md5: 6811f8a296650a6c0f64766b6e6abbe1
16 Source1: %{name}-srv.crontab
17 Source2: %{name}.inetd
18 Source3: %{name}idx.inetd
19 Source4: amidxtape.inetd
21 Patch0: %{name}-no_libnsl.patch
22 Patch1: %{name}-ac25x.patch
23 Patch2: %{name}-chg-zd-mtx-sh.patch
24 Patch3: %{name}-tar.patch
25 URL: http://www.amanda.org/
26 BuildRequires: autoconf >= 2.53
27 BuildRequires: automake
30 BuildRequires: libxslt-progs
31 BuildRequires: libtool
32 BuildRequires: readline-devel >= 4.2
33 BuildRequires: rpmbuild(macros) >= 1.268
34 %{?with_xfs:BuildRequires: xfsdump}
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define _localstatedir /var/lib
38 %define _libexecdir %{_libdir}/amanda
41 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
42 backup system that allows the administrator of a LAN to set up a
43 single master backup server to back up multiple hosts to a single
44 large capacity tape drive. AMANDA uses native dump and/or GNU tar
45 facilities and can back up a large number of workstations running
46 multiple versions of Unix. Newer versions of AMANDA (including this
47 version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
48 The amanda package contains the core AMANDA programs and will need to
49 be installed on both AMANDA clients and AMANDA servers. Note that you
50 will have to install the amanda-client and amanda-server packages as
54 AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
55 zapasowych. Umo¿liwia administratorowi sieci tworzenie kopii z kilku
56 hostów na jednej maszynie wyposa¿onej w pojemny dysk lub streamer.
57 Nowsze wersje programu umo¿liwiaj± zabezpieczanie zasobów Microsoft
58 Windows 95/98/NT/2000 przy u¿yciu protoko³u Samba. Ten pakiet zawiera
59 podstawowe pliki programu i powinien byæ zainstalowany zarówno na
60 serwerze jak i na kliencie. Pamiêtaj tak¿e o instalacji pakietów
61 amanda-client i amanda-server!
64 Summary: Amanda shared libraries
65 Summary(pl): Biblioteki wspó³dzielone pakietu amanda
66 Group: Networking/Utilities
67 Requires(postun): /sbin/ldconfig
68 Requires(postun): /usr/sbin/groupdel
69 Requires(postun): /usr/sbin/userdel
70 Requires(pre): /bin/id
71 Requires(pre): /usr/bin/getgid
72 Requires(pre): /usr/sbin/groupadd
73 Requires(pre): /usr/sbin/useradd
74 Provides: group(amanda)
75 Provides: user(amanda)
78 Amanda shared libraries.
80 %description libs -l pl
81 Biblioteki wspó³dzielone pakietu amanda.
84 Summary: The client side of Amanda
85 Summary(pl): Klient Amandy
86 Group: Networking/Utilities
87 Requires(post,postun): /sbin/ldconfig
88 Requires: %{name}-libs = %{version}-%{release}
93 The Amanda-client package should be installed on any machine that will
94 be backed up by AMANDA (including the server if it also needs to be
95 backed up). You will also need to install the amanda package to each
96 AMANDA client. It requires at least one of dump and GNU tar installed.
98 %description client -l pl
99 Ten pakiet powinien byæ zainstalowany ma maszynach, z których
100 zawarto¶ci bêd± tworzone kopie zapasowe. Wymaga zainstalowanego co
101 najmniej jednego z pakietów dump i GNU tar.
104 Summary: The server side of Amanda
105 Summary(pl): Serwer Amandy
106 Group: Networking/Utilities
107 Requires(post,postun): /sbin/ldconfig
108 Requires: %{name}-libs = %{version}-%{release}
109 Requires: /etc/cron.d
118 The amanda-server package should be installed on the AMANDA server,
119 the machine attached to the device (such as a tape drive) where
120 backups will be written. You will also need to install the amanda
121 package to the AMANDA server. And, if the server is also to be backed
122 up, the server also needs to have the amanda-client package installed.
124 %description server -l pl
125 Ten pakiet powinien byæ zainstalowany na maszynach, na których bêd±
126 magazynowane kopie zapasowe (lub do których podpiête s± urz±dzenia
136 # kill libtool.m4 copy
137 head -n 1147 acinclude.m4 > acinc.tmp
138 mv -f acinc.tmp acinclude.m4
146 GNUPLOT=/usr/bin/gnuplot \
150 RESTORE=/sbin/restore \
151 %{?with_xfs:XFSDUMP=/sbin/xfsdump} \
152 %{?with_xfs:XFSRESTORE=/sbin/xfsrestore} \
155 %{!?with_server:--without-server} \
156 %{!?with_client:--without-client} \
157 --with-index-server=localhost \
159 --with-group=amanda \
160 --with-tape-device=/dev/null \
161 --with-ftape-rawdevice=/dev/null \
162 --with-changer-device=/dev/null \
164 --with-smbclient=%{_bindir}/smbclient \
165 --with-bsd-security \
166 --with-ssh-security \
167 --with-buffered-dump \
169 --with-debugging=%{_localstatedir}/amanda/debug \
170 --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \
171 --with-tmpdir=/var/tmp
176 rm -rf $RPM_BUILD_ROOT
177 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
178 $RPM_BUILD_ROOT%{_localstatedir}/amanda/gnutar-lists \
179 $RPM_BUILD_ROOT%{_mandir}/man1
182 DESTDIR=$RPM_BUILD_ROOT \
185 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
186 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE2} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
187 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
188 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE4} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
190 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/amanda
191 install example/*.ps $RPM_BUILD_ROOT%{_localstatedir}/amanda
192 touch $RPM_BUILD_ROOT%{_localstatedir}/amanda/.amandahosts
194 > $RPM_BUILD_ROOT%{_sysconfdir}/amandates
197 rm -rf $RPM_BUILD_ROOT
199 %triggerpostun libs -- %{name}-libs < 2.5.1p2-1
200 echo "Adding amanda to disk and backup groups"
201 /usr/sbin/usermod -G disk,backup amanda
202 echo "Setting amanda shell to /bin/sh"
203 /usr/bin/chsh -s /bin/sh amanda
206 %groupadd -P %{name}-libs -g 80 amanda
207 %useradd -P %{name}-libs -u 80 -G disk,backup -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda
209 %post libs -p /sbin/ldconfig
213 if [ "$1" = "0" ]; then
220 %service -q rc-inetd reload
224 if [ "$1" = 0 ]; then
225 %service -q rc-inetd reload
230 %service -q rc-inetd reload
231 if [ "$1" = "1" ]; then
232 echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
237 if [ "$1" = 0 ]; then
238 %service -q rc-inetd reload
242 %defattr(644,root,root,755)
243 %attr(755,root,root) %{_libdir}/libamanda*.so
245 %attr(770,root,amanda) %dir %{_localstatedir}/amanda
246 %attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/amanda/.amandahosts
250 %defattr(644,root,root,755)
252 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amidxtape
253 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amandaidx
255 %attr(750,root,amanda) %dir %{_sysconfdir}/amanda
256 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,amanda) %{_sysconfdir}/amanda/*
258 %attr(664,root,amanda) %{_localstatedir}/amanda/*.ps
260 %config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv
262 %attr(755,root,root) %{_libdir}/libamserver*.so
263 %attr(755,root,root) %{_libdir}/libamtape*.so
264 %attr(755,root,root) %{_libdir}/librestore*.so
266 %attr(755,root,root) %{_libexecdir}/amcat.awk
267 %attr(755,root,root) %{_libexecdir}/amcleanupdisk
268 %attr(755,root,root) %{_libexecdir}/amidxtaped
269 %attr(755,root,root) %{_libexecdir}/amindexd
270 %attr(755,root,root) %{_libexecdir}/amlogroll
271 %attr(755,root,root) %{_libexecdir}/amplot.awk
272 %attr(755,root,root) %{_libexecdir}/amplot.g
273 %attr(755,root,root) %{_libexecdir}/amplot.gp
274 %attr(755,root,root) %{_libexecdir}/amtrmidx
275 %attr(755,root,root) %{_libexecdir}/amtrmlog
276 %attr(755,root,root) %{_libexecdir}/chg-chio
277 %attr(755,root,root) %{_libexecdir}/chg-chs
278 %attr(755,root,root) %{_libexecdir}/chg-disk
279 %attr(755,root,root) %{_libexecdir}/chg-iomega
280 %attr(755,root,root) %{_libexecdir}/chg-juke
281 %attr(755,root,root) %{_libexecdir}/chg-manual
282 %attr(755,root,root) %{_libexecdir}/chg-mcutil
283 %attr(755,root,root) %{_libexecdir}/chg-mtx
284 %attr(755,root,root) %{_libexecdir}/chg-multi
285 %attr(755,root,root) %{_libexecdir}/chg-null
286 %attr(755,root,root) %{_libexecdir}/chg-rait
287 %attr(755,root,root) %{_libexecdir}/chg-rth
288 %attr(755,root,root) %{_libexecdir}/chg-scsi
289 %attr(755,root,root) %{_libexecdir}/chg-zd-mtx
290 %attr(755,root,root) %{_libexecdir}/chunker
291 %attr(755,root,root) %{_libexecdir}/driver
292 %attr(4754,root,amanda) %{_libexecdir}/dumper
293 %attr(4754,root,amanda) %{_libexecdir}/planner
294 %attr(755,root,root) %{_libexecdir}/taper
296 %attr(755,root,root) %{_sbindir}/amadmin
297 %attr(755,root,root) %{_sbindir}/amaespipe
298 %attr(4754,root,amanda) %{_sbindir}/amcheck
299 %attr(755,root,root) %{_sbindir}/amcheckdb
300 %attr(755,root,root) %{_sbindir}/amcleanup
301 %attr(755,root,root) %{_sbindir}/amcrypt*
302 %attr(755,root,root) %{_sbindir}/amdd
303 %attr(755,root,root) %{_sbindir}/amdump
304 %attr(755,root,root) %{_sbindir}/amfetchdump
305 %attr(755,root,root) %{_sbindir}/amflush
306 %attr(755,root,root) %{_sbindir}/amgetconf
307 %attr(755,root,root) %{_sbindir}/amlabel
308 %attr(755,root,root) %{_sbindir}/ammt
309 %attr(755,root,root) %{_sbindir}/amoverview
310 %attr(755,root,root) %{_sbindir}/amplot
311 %attr(755,root,root) %{_sbindir}/amreport
312 %attr(755,root,root) %{_sbindir}/amrestore
313 %attr(755,root,root) %{_sbindir}/amrmtape
314 %attr(755,root,root) %{_sbindir}/amstatus
315 %attr(755,root,root) %{_sbindir}/amtape
316 %attr(755,root,root) %{_sbindir}/amtapetype
317 %attr(755,root,root) %{_sbindir}/amtoc
318 %attr(755,root,root) %{_sbindir}/amverify
319 %attr(755,root,root) %{_sbindir}/amverifyrun
320 %{_mandir}/man5/amanda.conf.5*
321 %{_mandir}/man8/amadmin.8*
322 %{_mandir}/man8/amaespipe.8*
323 %{_mandir}/man8/amanda.8*
324 %{_mandir}/man8/amcheck.8*
325 %{_mandir}/man8/amcheckdb.8*
326 %{_mandir}/man8/amcleanup.8*
327 %{_mandir}/man8/amcrypt*.8*
328 %{_mandir}/man8/amdd.8*
329 %{_mandir}/man8/amdump.8*
330 %{_mandir}/man8/amfetchdump.8*
331 %{_mandir}/man8/amflush.8*
332 %{_mandir}/man8/amgetconf.8*
333 %{_mandir}/man8/amlabel.8*
334 %{_mandir}/man8/ammt.8*
335 %{_mandir}/man8/amoverview.8*
336 %{_mandir}/man8/amplot.8*
337 %{_mandir}/man8/amreport.8*
338 %{_mandir}/man8/amrestore.8*
339 %{_mandir}/man8/amrmtape.8*
340 %{_mandir}/man8/amstatus.8*
341 %{_mandir}/man8/amtape.8*
342 %{_mandir}/man8/amtapetype.8*
343 %{_mandir}/man8/amtoc.8*
344 %{_mandir}/man8/amverify.8*
345 %{_mandir}/man8/amverifyrun.8*
350 %defattr(644,root,root,755)
351 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amanda
352 %attr(664,root,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/amandates
353 %attr(755,root,root) %{_libdir}/libamclient*.so
354 %attr(755,root,root) %{_libexecdir}/amandad
355 %attr(755,root,root) %{_libexecdir}/noop
356 %attr(755,root,root) %{_libexecdir}/patch-system
357 %attr(755,root,root) %{_libexecdir}/sendbackup
358 %attr(755,root,root) %{_libexecdir}/sendsize
359 %attr(755,root,root) %{_libexecdir}/versionsuffix
360 %attr(4754,root,amanda) %{_libexecdir}/calcsize
361 %attr(4754,root,amanda) %{_libexecdir}/killpgrp
362 %attr(4754,root,amanda) %{_libexecdir}/rundump
363 %attr(4754,root,amanda) %{_libexecdir}/runtar
364 %attr(4754,root,amanda) %{_libexecdir}/selfcheck
365 %attr(755,root,root) %{_sbindir}/amoldrecover
366 %attr(755,root,root) %{_sbindir}/amrecover
367 %attr(770,root,amanda) %dir %{_localstatedir}/amanda/gnutar-lists
368 %{_mandir}/man5/amanda-client.conf.5*
369 %{_mandir}/man8/amrecover.8*