3 # _with_xfs - with support for xfsdump
5 Summary: A network-capable tape backup solution
6 Summary(pl): Sieciowo zorientowany system tworzenia kopii zapasowych
11 Group: Networking/Utilities
12 Source0: http://dl.sourceforge.net/amanda/%{name}-%{version}.tar.gz
13 # Source0-md5: 6336cd53e81877a720a5104330731e75
14 Source1: %{name}-srv.crontab
15 Source2: %{name}.inetd
16 Source3: %{name}idx.inetd
17 Source4: amidxtape.inetd
19 Patch0: %{name}-no_libnsl.patch
20 Patch1: %{name}-bug18322.patch
21 Patch2: %{name}-no_private_libtool.m4.patch
22 Patch3: %{name}-ac25x.patch
23 Patch4: %{name}-chg-zd-mtx-sh.patch
24 URL: http://www.amanda.org/
25 BuildRequires: autoconf >= 2.53
26 BuildRequires: automake
30 BuildRequires: gnuplot
31 BuildRequires: libtool
32 BuildRequires: readline-devel >= 4.2
34 %{?_with_xfs:BuildRequires: xfsdump}
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define _sysconfdir /etc
38 %define _localstatedir /var/lib
39 %define _libexecdir %{_libdir}/amanda
42 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
43 backup system that allows the administrator of a LAN to set up a
44 single master backup server to back up multiple hosts to a single
45 large capacity tape drive. AMANDA uses native dump and/or GNU tar
46 facilities and can back up a large number of workstations running
47 multiple versions of Unix. Newer versions of AMANDA (including this
48 version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
49 The amanda package contains the core AMANDA programs and will need to
50 be installed on both AMANDA clients and AMANDA servers. Note that you
51 will have to install the amanda-client and amanda-server packages as
55 AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
56 zapasowych. Umo¿liwia administratorowi sieci tworzenie kopii z kilku
57 hostów na jednej maszynie wyposa¿onej w pojemny dysk lub streamer.
58 Nowsze wersje programu umo¿liwiaj± zabezpieczanie zasobów Microsoft
59 Windows 95/98/NT/2000 przy u¿yciu protoko³u Samba. Ten pakiet zawiera
60 podstawowe pliki programu i powinien byæ zainstalowany zarówno na
61 serwerze jak i na kliencie. Pamiêtaj tak¿e o instalacji pakietów
62 amanda-client i amanda-server!
65 Summary: Amanda shared libraries
66 Summary(pl): Biblioteki wspó³dzielone pakietu amanda
67 Group: Networking/Utilities
68 Requires(pre): /usr/bin/getgid
69 Requires(pre): /bin/id
70 Requires(pre): /usr/sbin/groupadd
71 Requires(pre): /usr/sbin/useradd
72 Requires(postun): /usr/sbin/groupdel
73 Requires(postun): /usr/sbin/userdel
74 Requires(postun): /sbin/ldconfig
77 Amanda shared libraries.
79 %description libs -l pl
80 Biblioteki wspó³dzielone pakietu amanda.
83 Summary: The client side of Amanda
84 Summary(pl): Klient Amandy
85 Group: Networking/Utilities
86 PreReq: %{name}-libs = %{version}
88 Requires(post,postun): /sbin/ldconfig
92 The Amanda-client package should be installed on any machine that will
93 be backed up by AMANDA (including the server if it also needs to be
94 backed up). You will also need to install the amanda package to each
95 AMANDA client. It requires at least one of dump and GNU tar installed.
97 %description client -l pl
98 Ten pakiet powinien byæ zainstalowany ma maszynach, z których
99 zawarto¶ci bêd± tworzone kopie zapasowe. Wymaga zainstalowanego co
100 najmniej jednego z pakietów dump i GNU tar.
103 Summary: The server side of Amanda
104 Summary(pl): Serwer Amandy
105 Group: Networking/Utilities
106 PreReq: %{name}-libs = %{version}
108 Requires(post,postun): /sbin/ldconfig
111 Requires: /etc/cron.d
116 The amanda-server package should be installed on the AMANDA server,
117 the machine attached to the device (such as a tape drive) where
118 backups will be written. You will also need to install the amanda
119 package to the AMANDA server. And, if the server is also to be backed
120 up, the server also needs to have the amanda-client package installed.
122 %description server -l pl
123 Ten pakiet powinien byæ zainstalowanych na maszynach, na których bêd±
124 magazynowane kopie zapasowe (lub do których podpiête s± urz±dzenia
145 --with-index-server=localhost \
147 --with-group=amanda \
148 --with-tape-device=/dev/null \
149 --with-ftape-rawdevice=/dev/null \
150 --with-changer-device=/dev/null \
152 --with-smbclient=%{_bindir}/smbclient \
153 --with-bsd-security \
154 --with-buffered-dump \
156 --with-debugging=%{_localstatedir}/amanda/debug \
157 --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \
158 --with-tmpdir=/var/tmp
163 rm -rf $RPM_BUILD_ROOT
164 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
165 $RPM_BUILD_ROOT%{_localstatedir}/amanda/gnutar-lists \
166 $RPM_BUILD_ROOT%{_mandir}/man1
169 DESTDIR=$RPM_BUILD_ROOT \
172 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
173 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
174 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
175 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
177 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/amanda
178 install example/*.ps $RPM_BUILD_ROOT%{_localstatedir}/amanda
180 > $RPM_BUILD_ROOT%{_sysconfdir}/amandates
183 rm -rf $RPM_BUILD_ROOT
185 %triggerpostun -- amanda-libs < 2.4.2p2-3
186 /usr/sbin/chsh -s /bin/sh amanda
188 %triggerpostun -- amanda-libs < 2.4.2p2-12
189 /usr/sbin/usermod -G disk amanda
192 if [ -n "`/usr/bin/getgid amanda`" ]; then
193 if [ "`getgid amanda`" != "80" ]; then
194 echo "Error: group amanda doesn't have gid=80. Correct this before installing amanda-libs." 1>&2
198 /usr/sbin/groupadd -g 80 -r -f amanda
200 if [ -n "`/bin/id -u amanda 2>/dev/null`" ]; then
201 if [ "`/bin/id -u amanda`" != "80" ]; then
202 echo "Error: user amanda doesn't have uid=80. Correct this before installing amanda-libs." 1>&2
206 /usr/sbin/useradd -u 80 -G disk -r -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda 1>&2
209 %post libs -p /sbin/ldconfig
213 if [ "$1" = "0" ]; then
214 /usr/sbin/userdel amanda
215 /usr/sbin/groupdel amanda
220 if [ -f /var/lock/subsys/rc-inetd ]; then
221 /etc/rc.d/init.d/rc-inetd restart 1>&2
223 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server." 1>&2
228 if [ -f /var/lock/subsys/rc-inetd ]; then
229 /etc/rc.d/init.d/rc-inetd restart
234 if [ -f /var/lock/subsys/rc-inetd ]; then
235 /etc/rc.d/init.d/rc-inetd restart 1>&2
237 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server." 1>&2
239 echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
243 if [ -f /var/lock/subsys/rc-inetd ]; then
244 /etc/rc.d/init.d/rc-inetd restart
248 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_libdir}/libamanda*.so
250 %attr(755,root,root) %{_libdir}/libamtape*.so
251 %attr(770,root,amanda) %dir %{_libexecdir}
252 %attr(770,root,amanda) %dir %{_localstatedir}/amanda
255 %defattr(644,root,root,755)
257 %config(noreplace) /etc/sysconfig/rc-inetd/amidxtape
258 %config(noreplace) /etc/sysconfig/rc-inetd/amandaidx
260 %attr(750,amanda,amanda) %dir %{_sysconfdir}/amanda
261 %config(noreplace) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/*
263 %attr(664,amanda,amanda) %{_localstatedir}/amanda/*.ps
265 %config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv
267 %attr(755,root,root) %{_libdir}/libamserver*.so
268 %attr(755,root,root) %{_libexecdir}/amindexd
269 %attr(755,root,root) %{_libexecdir}/amtrmidx
270 %attr(755,root,root) %{_libexecdir}/driver
271 %attr(4754,root,amanda) %{_libexecdir}/dumper
272 %attr(4754,root,amanda) %{_libexecdir}/planner
273 %attr(755,root,root) %{_libexecdir}/amcat.awk
274 %attr(755,root,root) %{_libexecdir}/amcleanupdisk
275 %attr(755,root,root) %{_libexecdir}/amidxtaped
276 %attr(755,root,root) %{_libexecdir}/amlogroll
277 %attr(755,root,root) %{_libexecdir}/amplot.awk
278 %attr(755,root,root) %{_libexecdir}/amplot.g
279 %attr(755,root,root) %{_libexecdir}/amplot.gp
280 %attr(755,root,root) %{_libexecdir}/amtrmlog
281 %attr(755,root,root) %{_libexecdir}/chg-chio
282 %attr(755,root,root) %{_libexecdir}/chg-chs
283 %attr(755,root,root) %{_libexecdir}/chg-juke
284 %attr(755,root,root) %{_libexecdir}/chg-manual
285 %attr(755,root,root) %{_libexecdir}/chg-mtx
286 %attr(755,root,root) %{_libexecdir}/chg-multi
287 %attr(755,root,root) %{_libexecdir}/chg-rait
288 %attr(755,root,root) %{_libexecdir}/chg-rth
289 %attr(755,root,root) %{_libexecdir}/chg-scsi
290 %attr(755,root,root) %{_libexecdir}/chg-zd-mtx
291 %attr(755,root,root) %{_libexecdir}/taper
292 %attr(755,root,root) %{_sbindir}/amadmin
293 %attr(4754,root,amanda) %{_sbindir}/amcheck
294 %attr(755,root,root) %{_sbindir}/amcheckdb
295 %attr(755,root,root) %{_sbindir}/amcleanup
296 %attr(755,root,root) %{_sbindir}/amdump
297 %attr(755,root,root) %{_sbindir}/amflush
298 %attr(755,root,root) %{_sbindir}/amgetconf
299 %attr(755,root,root) %{_sbindir}/amlabel
300 %attr(755,root,root) %{_sbindir}/amoverview
301 %attr(755,root,root) %{_sbindir}/amplot
302 %attr(755,root,root) %{_sbindir}/amreport
303 %attr(755,root,root) %{_sbindir}/amrmtape
304 %attr(755,root,root) %{_sbindir}/amstatus
305 %attr(755,root,root) %{_sbindir}/amtape
306 %attr(755,root,root) %{_sbindir}/amtapetype
307 %attr(755,root,root) %{_sbindir}/amtoc
308 %attr(755,root,root) %{_sbindir}/amverify
309 %attr(755,root,root) %{_sbindir}/amverifyrun
310 %{_mandir}/man8/amadmin.8*
311 %{_mandir}/man8/amanda.8*
312 %{_mandir}/man8/amcheck.8*
313 %{_mandir}/man8/amcheckdb.8*
314 %{_mandir}/man8/amcleanup.8*
315 %{_mandir}/man8/amdump.8*
316 %{_mandir}/man8/amflush.8*
317 %{_mandir}/man8/amgetconf.8*
318 %{_mandir}/man8/amlabel.8*
319 %{_mandir}/man8/amoverview.8*
320 %{_mandir}/man8/amplot.8*
321 %{_mandir}/man8/amreport.8*
322 %{_mandir}/man8/amrmtape.8*
323 %{_mandir}/man8/amstatus.8*
324 %{_mandir}/man8/amtape.8*
325 %{_mandir}/man8/amtapetype.8*
326 %{_mandir}/man8/amtoc.8*
327 %{_mandir}/man8/amverify.8*
328 %{_mandir}/man8/amverifyrun.8*
331 %defattr(644,root,root,755)
332 %config(noreplace) /etc/sysconfig/rc-inetd/amanda
333 %attr(664,root,amanda) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/amandates
334 %attr(755,root,root) %{_libdir}/libamclient*.so
335 %attr(755,root,root) %{_libexecdir}/versionsuffix
336 %attr(755,root,root) %{_libexecdir}/amandad
337 %attr(4754,root,amanda) %{_libexecdir}/calcsize
338 %attr(4754,root,amanda) %{_libexecdir}/rundump
339 %attr(4754,root,amanda) %{_libexecdir}/runtar
340 %attr(4754,root,amanda) %{_libexecdir}/selfcheck
341 %attr(755,root,root) %{_libexecdir}/sendbackup
342 %attr(755,root,root) %{_libexecdir}/sendsize
343 %attr(755,root,root) %{_libexecdir}/patch-system
344 %attr(4754,root,amanda) %{_libexecdir}/killpgrp
345 %attr(755,root,root) %{_sbindir}/amdd
346 %attr(755,root,root) %{_sbindir}/ammt
347 %attr(755,root,root) %{_sbindir}/amrecover
348 %attr(755,root,root) %{_sbindir}/amrestore
349 %attr(770,amanda,amanda) %dir %{_localstatedir}/amanda/gnutar-lists
350 %{_mandir}/man8/amdd.8*
351 %{_mandir}/man8/ammt.8*
352 %{_mandir}/man8/amrecover.8*
353 %{_mandir}/man8/amrestore.8*