3 %bcond_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}-no_private_libtool.m4.patch
21 Patch2: %{name}-ac25x.patch
22 Patch3: %{name}-chg-zd-mtx-sh.patch
23 URL: http://www.amanda.org/
24 BuildRequires: autoconf >= 2.53
25 BuildRequires: automake
29 BuildRequires: gnuplot
30 BuildRequires: libtool
31 BuildRequires: readline-devel >= 4.2
33 %{?_with_xfs:BuildRequires: xfsdump}
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define _localstatedir /var/lib
37 %define _libexecdir %{_libdir}/amanda
40 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
41 backup system that allows the administrator of a LAN to set up a
42 single master backup server to back up multiple hosts to a single
43 large capacity tape drive. AMANDA uses native dump and/or GNU tar
44 facilities and can back up a large number of workstations running
45 multiple versions of Unix. Newer versions of AMANDA (including this
46 version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
47 The amanda package contains the core AMANDA programs and will need to
48 be installed on both AMANDA clients and AMANDA servers. Note that you
49 will have to install the amanda-client and amanda-server packages as
53 AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
54 zapasowych. Umo¿liwia administratorowi sieci tworzenie kopii z kilku
55 hostów na jednej maszynie wyposa¿onej w pojemny dysk lub streamer.
56 Nowsze wersje programu umo¿liwiaj± zabezpieczanie zasobów Microsoft
57 Windows 95/98/NT/2000 przy u¿yciu protoko³u Samba. Ten pakiet zawiera
58 podstawowe pliki programu i powinien byæ zainstalowany zarówno na
59 serwerze jak i na kliencie. Pamiêtaj tak¿e o instalacji pakietów
60 amanda-client i amanda-server!
63 Summary: Amanda shared libraries
64 Summary(pl): Biblioteki wspó³dzielone pakietu amanda
65 Group: Networking/Utilities
66 Requires(pre): /usr/bin/getgid
67 Requires(pre): /bin/id
68 Requires(pre): /usr/sbin/groupadd
69 Requires(pre): /usr/sbin/useradd
70 Requires(postun): /usr/sbin/groupdel
71 Requires(postun): /usr/sbin/userdel
72 Requires(postun): /sbin/ldconfig
75 Amanda shared libraries.
77 %description libs -l pl
78 Biblioteki wspó³dzielone pakietu amanda.
81 Summary: The client side of Amanda
82 Summary(pl): Klient Amandy
83 Group: Networking/Utilities
84 PreReq: %{name}-libs = %{version}
86 Requires(post,postun): /sbin/ldconfig
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
104 PreReq: %{name}-libs = %{version}
106 Requires(post,postun): /sbin/ldconfig
109 Requires: /etc/cron.d
114 The amanda-server package should be installed on the AMANDA server,
115 the machine attached to the device (such as a tape drive) where
116 backups will be written. You will also need to install the amanda
117 package to the AMANDA server. And, if the server is also to be backed
118 up, the server also needs to have the amanda-client package installed.
120 %description server -l pl
121 Ten pakiet powinien byæ zainstalowanych na maszynach, na których bêd±
122 magazynowane kopie zapasowe (lub do których podpiête s± urz±dzenia
140 --with-index-server=localhost \
142 --with-group=amanda \
143 --with-tape-device=/dev/null \
144 --with-ftape-rawdevice=/dev/null \
145 --with-changer-device=/dev/null \
147 --with-smbclient=%{_bindir}/smbclient \
148 --with-bsd-security \
149 --with-buffered-dump \
151 --with-debugging=%{_localstatedir}/amanda/debug \
152 --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \
153 --with-tmpdir=/var/tmp
158 rm -rf $RPM_BUILD_ROOT
159 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
160 $RPM_BUILD_ROOT%{_localstatedir}/amanda/gnutar-lists \
161 $RPM_BUILD_ROOT%{_mandir}/man1
164 DESTDIR=$RPM_BUILD_ROOT \
167 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
168 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
169 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
170 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
172 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/amanda
173 install example/*.ps $RPM_BUILD_ROOT%{_localstatedir}/amanda
175 > $RPM_BUILD_ROOT%{_sysconfdir}/amandates
178 rm -rf $RPM_BUILD_ROOT
180 %triggerpostun -- amanda-libs < 2.4.2p2-3
181 /usr/sbin/chsh -s /bin/sh amanda
183 %triggerpostun -- amanda-libs < 2.4.2p2-12
184 /usr/sbin/usermod -G disk amanda
187 if [ -n "`/usr/bin/getgid amanda`" ]; then
188 if [ "`getgid amanda`" != "80" ]; then
189 echo "Error: group amanda doesn't have gid=80. Correct this before installing amanda-libs." 1>&2
193 /usr/sbin/groupadd -g 80 -r -f amanda
195 if [ -n "`/bin/id -u amanda 2>/dev/null`" ]; then
196 if [ "`/bin/id -u amanda`" != "80" ]; then
197 echo "Error: user amanda doesn't have uid=80. Correct this before installing amanda-libs." 1>&2
201 /usr/sbin/useradd -u 80 -G disk -r -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda 1>&2
204 %post libs -p /sbin/ldconfig
208 if [ "$1" = "0" ]; then
209 /usr/sbin/userdel amanda
210 /usr/sbin/groupdel amanda
215 if [ -f /var/lock/subsys/rc-inetd ]; then
216 /etc/rc.d/init.d/rc-inetd restart 1>&2
218 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server." 1>&2
223 if [ -f /var/lock/subsys/rc-inetd ]; then
224 /etc/rc.d/init.d/rc-inetd restart
229 if [ -f /var/lock/subsys/rc-inetd ]; then
230 /etc/rc.d/init.d/rc-inetd restart 1>&2
232 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server." 1>&2
234 echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
238 if [ -f /var/lock/subsys/rc-inetd ]; then
239 /etc/rc.d/init.d/rc-inetd restart
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_libdir}/libamanda*.so
245 %attr(755,root,root) %{_libdir}/libamtape*.so
246 %attr(770,root,amanda) %dir %{_libexecdir}
247 %attr(770,root,amanda) %dir %{_localstatedir}/amanda
250 %defattr(644,root,root,755)
252 %config(noreplace) /etc/sysconfig/rc-inetd/amidxtape
253 %config(noreplace) /etc/sysconfig/rc-inetd/amandaidx
255 %attr(750,amanda,amanda) %dir %{_sysconfdir}/amanda
256 %config(noreplace) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/*
258 %attr(664,amanda,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) %{_libexecdir}/amindexd
264 %attr(755,root,root) %{_libexecdir}/amtrmidx
265 %attr(755,root,root) %{_libexecdir}/driver
266 %attr(4754,root,amanda) %{_libexecdir}/dumper
267 %attr(4754,root,amanda) %{_libexecdir}/planner
268 %attr(755,root,root) %{_libexecdir}/amcat.awk
269 %attr(755,root,root) %{_libexecdir}/amcleanupdisk
270 %attr(755,root,root) %{_libexecdir}/amidxtaped
271 %attr(755,root,root) %{_libexecdir}/amlogroll
272 %attr(755,root,root) %{_libexecdir}/amplot.awk
273 %attr(755,root,root) %{_libexecdir}/amplot.g
274 %attr(755,root,root) %{_libexecdir}/amplot.gp
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-juke
279 %attr(755,root,root) %{_libexecdir}/chg-manual
280 %attr(755,root,root) %{_libexecdir}/chg-mtx
281 %attr(755,root,root) %{_libexecdir}/chg-multi
282 %attr(755,root,root) %{_libexecdir}/chg-rait
283 %attr(755,root,root) %{_libexecdir}/chg-rth
284 %attr(755,root,root) %{_libexecdir}/chg-scsi
285 %attr(755,root,root) %{_libexecdir}/chg-zd-mtx
286 %attr(755,root,root) %{_libexecdir}/taper
287 %attr(755,root,root) %{_sbindir}/amadmin
288 %attr(4754,root,amanda) %{_sbindir}/amcheck
289 %attr(755,root,root) %{_sbindir}/amcheckdb
290 %attr(755,root,root) %{_sbindir}/amcleanup
291 %attr(755,root,root) %{_sbindir}/amdump
292 %attr(755,root,root) %{_sbindir}/amflush
293 %attr(755,root,root) %{_sbindir}/amgetconf
294 %attr(755,root,root) %{_sbindir}/amlabel
295 %attr(755,root,root) %{_sbindir}/amoverview
296 %attr(755,root,root) %{_sbindir}/amplot
297 %attr(755,root,root) %{_sbindir}/amreport
298 %attr(755,root,root) %{_sbindir}/amrmtape
299 %attr(755,root,root) %{_sbindir}/amstatus
300 %attr(755,root,root) %{_sbindir}/amtape
301 %attr(755,root,root) %{_sbindir}/amtapetype
302 %attr(755,root,root) %{_sbindir}/amtoc
303 %attr(755,root,root) %{_sbindir}/amverify
304 %attr(755,root,root) %{_sbindir}/amverifyrun
305 %{_mandir}/man8/amadmin.8*
306 %{_mandir}/man8/amanda.8*
307 %{_mandir}/man8/amcheck.8*
308 %{_mandir}/man8/amcheckdb.8*
309 %{_mandir}/man8/amcleanup.8*
310 %{_mandir}/man8/amdump.8*
311 %{_mandir}/man8/amflush.8*
312 %{_mandir}/man8/amgetconf.8*
313 %{_mandir}/man8/amlabel.8*
314 %{_mandir}/man8/amoverview.8*
315 %{_mandir}/man8/amplot.8*
316 %{_mandir}/man8/amreport.8*
317 %{_mandir}/man8/amrmtape.8*
318 %{_mandir}/man8/amstatus.8*
319 %{_mandir}/man8/amtape.8*
320 %{_mandir}/man8/amtapetype.8*
321 %{_mandir}/man8/amtoc.8*
322 %{_mandir}/man8/amverify.8*
323 %{_mandir}/man8/amverifyrun.8*
326 %defattr(644,root,root,755)
327 %config(noreplace) /etc/sysconfig/rc-inetd/amanda
328 %attr(664,root,amanda) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/amandates
329 %attr(755,root,root) %{_libdir}/libamclient*.so
330 %attr(755,root,root) %{_libexecdir}/versionsuffix
331 %attr(755,root,root) %{_libexecdir}/amandad
332 %attr(4754,root,amanda) %{_libexecdir}/calcsize
333 %attr(4754,root,amanda) %{_libexecdir}/rundump
334 %attr(4754,root,amanda) %{_libexecdir}/runtar
335 %attr(4754,root,amanda) %{_libexecdir}/selfcheck
336 %attr(755,root,root) %{_libexecdir}/sendbackup
337 %attr(755,root,root) %{_libexecdir}/sendsize
338 %attr(755,root,root) %{_libexecdir}/patch-system
339 %attr(4754,root,amanda) %{_libexecdir}/killpgrp
340 %attr(755,root,root) %{_sbindir}/amdd
341 %attr(755,root,root) %{_sbindir}/ammt
342 %attr(755,root,root) %{_sbindir}/amrecover
343 %attr(755,root,root) %{_sbindir}/amrestore
344 %attr(770,amanda,amanda) %dir %{_localstatedir}/amanda/gnutar-lists
345 %{_mandir}/man8/amdd.8*
346 %{_mandir}/man8/ammt.8*
347 %{_mandir}/man8/amrecover.8*
348 %{_mandir}/man8/amrestore.8*