1 Summary: A network-capable tape backup solution
2 Summary(pl): Sieciowo zorientowany system tworzenia kopii zapasowych
7 Group: Networking/Utilities
8 Source0: http://prdownloads.sourceforge.net/amanda/%{name}-%{version}.tar.gz
9 Source1: %{name}-srv.crontab
10 Source2: %{name}.inetd
11 Source3: %{name}idx.inetd
12 Source4: amidxtape.inetd
14 Patch0: %{name}-no_libnsl.patch
15 Patch1: %{name}-am_fixes.patch
16 Patch2: %{name}-bug18322.patch
17 Patch3: %{name}-build_tapetype.patch
18 Patch4: %{name}-no_private_libtool.m4.patch
19 Patch5: %{name}-ac25x.patch
20 Patch6: %{name}-chg-zd-mtx-sh.patch
21 Patch7: %{name}-sendbackup-dump.patch
22 URL: http://www.amanda.org/
23 BuildRequires: autoconf
24 BuildRequires: automake
27 BuildRequires: xfsdump
29 BuildRequires: gnuplot
30 BuildRequires: libtool
31 BuildRequires: readline-devel >= 4.2
33 BuildRequires: samba-client
34 Prereq: /sbin/ldconfig
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 Prereq: /usr/bin/getgid
70 Prereq: /usr/sbin/groupadd
71 Prereq: /usr/sbin/useradd
72 Prereq: /usr/sbin/groupdel
73 Prereq: /usr/sbin/userdel
76 Amanda shared libraries.
78 %description libs -l pl
79 Biblioteki wspó³dzielone pakietu amanda.
82 Summary: The client side of Amanda
83 Summary(pl): Klient Amandy
84 Group: Networking/Utilities
85 Prereq: /sbin/ldconfig
87 Prereq: %{name}-libs = %{version}
90 The Amanda-client package should be installed on any machine that will
91 be backed up by AMANDA (including the server if it also needs to be
92 backed up). You will also need to install the amanda package to each
93 AMANDA client. It requires at least one of dump and GNU tar installed.
95 %description client -l pl
96 Ten pakiet powinien byæ zainstalowany ma maszynach, z których
97 zawarto¶ci bêd± tworzone kopie zapasowe. Wymaga zainstalowanego co
98 najmniej jednego z pakietów dump i GNU tar.
101 Summary: The server side of Amanda
102 Summary(pl): Serwer Amandy
103 Group: Networking/Utilities
105 Prereq: /sbin/ldconfig
108 Requires: /etc/cron.d
112 Prereq: %{name}-libs = %{version}
115 The amanda-server package should be installed on the AMANDA server,
116 the machine attached to the device (such as a tape drive) where
117 backups will be written. You will also need to install the amanda
118 package to the AMANDA server. And, if the server is also to be backed
119 up, the server also needs to have the amanda-client package installed.
121 %description server -l pl
122 Ten pakiet powinien byæ zainstalowanych na maszynach, na których bêd±
123 magazynowane kopie zapasowe (lub do których podpiête s± urz±dzenia
138 libtoolize --copy --force
147 --with-index-server=localhost \
149 --with-group=amanda \
150 --with-tape-device=/dev/null \
151 --with-ftape-rawdevice=/dev/null \
152 --with-changer-device=/dev/null \
154 --with-smbclient=%{_bindir}/smbclient \
155 --with-bsd-security \
156 --with-buffered-dump \
158 --with-debugging=%{_localstatedir}/amanda/debug \
159 --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \
160 --with-tmpdir=/var/tmp
165 rm -rf $RPM_BUILD_ROOT
166 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
167 $RPM_BUILD_ROOT%{_localstatedir}/amanda/gnutar-lists
170 DESTDIR=$RPM_BUILD_ROOT \
173 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
174 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
175 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
176 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
178 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/amanda
179 install example/*.ps $RPM_BUILD_ROOT%{_localstatedir}/amanda
181 > $RPM_BUILD_ROOT%{_sysconfdir}/amandates
186 rm -rf $RPM_BUILD_ROOT
188 %triggerpostun -- amanda-libs < 2.4.2p2-3
189 /usr/sbin/chsh -s /bin/sh amanda
191 %triggerpostun -- amanda-libs < 2.4.2p2-12
192 /usr/sbin/usermod -G disk amanda
195 if [ -n "`/usr/bin/getgid amanda`" ]; then
196 if [ "`getgid amanda`" != "80" ]; then
197 echo "Warning: group amanda haven't gid=80. Correct this before installing amanda-libs" 1>&2
201 /usr/sbin/groupadd -g 80 -r -f amanda
203 if [ -n "`/bin/id -u amanda 2>/dev/null`" ]; then
204 if [ "`/bin/id -u amanda`" != "80" ]; then
205 echo "Warning: user amanda haven't uid=80. Correct this before installing amanda-libs" 1>&2
209 /usr/sbin/useradd -u 80 -G disk -r -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda 1>&2
212 %post 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
259 %defattr(644,root,root,755)
261 %config(noreplace) /etc/sysconfig/rc-inetd/amidxtape
262 %config(noreplace) /etc/sysconfig/rc-inetd/amandaidx
264 %attr(750,amanda,amanda) %dir %{_sysconfdir}/amanda
265 %config(noreplace) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/*
267 %attr(664,amanda,amanda) %{_localstatedir}/amanda/*
269 %config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv
271 %attr(755,root,root) %{_libdir}/libamserver*.so
272 %attr(755,root,root) %{_libexecdir}/amindexd
273 %attr(755,root,root) %{_libexecdir}/amtrmidx
274 %attr(755,root,root) %{_libexecdir}/driver
275 %attr(4754,root,amanda) %{_libexecdir}/dumper
276 %attr(4754,root,amanda) %{_libexecdir}/planner
277 %attr(755,root,root) %{_libexecdir}/amcat.awk
278 %attr(755,root,root) %{_libexecdir}/amcleanupdisk
279 %attr(755,root,root) %{_libexecdir}/amidxtaped
280 %attr(755,root,root) %{_libexecdir}/amlogroll
281 %attr(755,root,root) %{_libexecdir}/amplot.awk
282 %attr(755,root,root) %{_libexecdir}/amplot.g
283 %attr(755,root,root) %{_libexecdir}/amplot.gp
284 %attr(755,root,root) %{_libexecdir}/amtrmlog
285 %attr(755,root,root) %{_libexecdir}/chg-chio
286 %attr(755,root,root) %{_libexecdir}/chg-chs
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-rth
291 %attr(755,root,root) %{_libexecdir}/chg-scsi
292 %attr(755,root,root) %{_libexecdir}/chg-zd-mtx
293 %attr(755,root,root) %{_libexecdir}/selfcheck
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}/amrmtape
306 %attr(755,root,root) %{_sbindir}/amreport
307 %attr(755,root,root) %{_sbindir}/amstatus
308 %attr(755,root,root) %{_sbindir}/amtape
309 %attr(755,root,root) %{_sbindir}/amtoc
310 %attr(755,root,root) %{_sbindir}/amverify
311 %attr(755,root,root) %{_sbindir}/tapetype
312 %{_mandir}/man8/amadmin.8*
313 %{_mandir}/man8/amrmtape.8*
314 %{_mandir}/man8/amtape.8*
315 %{_mandir}/man8/amtoc.8*
316 %{_mandir}/man8/amanda.8*
317 %{_mandir}/man8/amcheck.8*
318 %{_mandir}/man8/amcleanup.8*
319 %{_mandir}/man8/amdump.8*
320 %{_mandir}/man8/amflush.8*
321 %{_mandir}/man8/amlabel.8*
322 %{_mandir}/man8/amplot.8*
323 %{_mandir}/man8/amreport.8*
324 %{_mandir}/man8/amstatus.8*
327 %defattr(644,root,root,755)
328 %config(noreplace) /etc/sysconfig/rc-inetd/amanda
329 %attr(664,root,amanda) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/amandates
330 %attr(755,root,root) %{_libdir}/libamclient*.so
331 %attr(755,root,root) %{_libexecdir}/versionsuffix
332 %attr(755,root,root) %{_libexecdir}/amandad
333 %attr(4754,root,amanda) %{_libexecdir}/calcsize
334 %attr(4754,root,amanda) %{_libexecdir}/rundump
335 %attr(4754,root,amanda) %{_libexecdir}/runtar
336 %attr(4754,root,amanda) %{_libexecdir}/selfcheck
337 %attr(755,root,root) %{_libexecdir}/sendbackup
338 %attr(755,root,root) %{_libexecdir}/sendsize
339 %attr(755,root,root) %{_libexecdir}/patch-system
340 %attr(4754,root,amanda) %{_libexecdir}/killpgrp
341 %attr(755,root,root) %{_sbindir}/amrecover
342 %attr(755,root,root) %{_sbindir}/amrestore
343 %attr(770,amanda,amanda) %dir %{_localstatedir}/amanda/gnutar-lists
344 %{_mandir}/man8/amrecover.8*
345 %{_mandir}/man8/amrestore.8*