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