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: 1960b7875424e412d042bc92a1548d7f
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}-ac25x.patch
21 Patch2: %{name}-chg-zd-mtx-sh.patch
22 Patch3: %{name}-tar.patch
23 URL: http://www.amanda.org/
24 BuildRequires: autoconf >= 2.53
25 BuildRequires: automake
29 BuildRequires: libtool
30 BuildRequires: readline-devel >= 4.2
31 BuildRequires: rpmbuild(macros) >= 1.202
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(postun): /sbin/ldconfig
67 Requires(postun): /usr/sbin/groupdel
68 Requires(postun): /usr/sbin/userdel
69 Requires(pre): /bin/id
70 Requires(pre): /usr/bin/getgid
71 Requires(pre): /usr/sbin/groupadd
72 Requires(pre): /usr/sbin/useradd
73 Provides: group(amanda)
74 Provides: user(amanda)
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 Requires(post,postun): /sbin/ldconfig
87 Requires: %{name}-libs = %{version}-%{release}
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 Requires(post,postun): /sbin/ldconfig
107 Requires: %{name}-libs = %{version}-%{release}
108 Requires: /etc/cron.d
117 The amanda-server package should be installed on the AMANDA server,
118 the machine attached to the device (such as a tape drive) where
119 backups will be written. You will also need to install the amanda
120 package to the AMANDA server. And, if the server is also to be backed
121 up, the server also needs to have the amanda-client package installed.
123 %description server -l pl
124 Ten pakiet powinien byæ zainstalowany na maszynach, na których bêd±
125 magazynowane kopie zapasowe (lub do których podpiête s± urz±dzenia
135 # kill libtool.m4 copy
136 head -n 1039 acinclude.m4 > acinc.tmp
137 mv -f acinc.tmp acinclude.m4
145 GNUPLOT=/usr/bin/gnuplot \
148 --with-index-server=localhost \
150 --with-group=amanda \
151 --with-tape-device=/dev/null \
152 --with-ftape-rawdevice=/dev/null \
153 --with-changer-device=/dev/null \
155 --with-smbclient=%{_bindir}/smbclient \
156 --with-bsd-security \
157 --with-buffered-dump \
159 --with-debugging=%{_localstatedir}/amanda/debug \
160 --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \
161 --with-tmpdir=/var/tmp
166 rm -rf $RPM_BUILD_ROOT
167 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
168 $RPM_BUILD_ROOT%{_localstatedir}/amanda/gnutar-lists \
169 $RPM_BUILD_ROOT%{_mandir}/man1
172 DESTDIR=$RPM_BUILD_ROOT \
175 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
176 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE2} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
177 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
178 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE4} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
180 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/amanda
181 install example/*.ps $RPM_BUILD_ROOT%{_localstatedir}/amanda
182 touch $RPM_BUILD_ROOT%{_localstatedir}/amanda/.amandahosts
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 %groupadd -P %{name}-libs -g 80 amanda
197 %useradd -P %{name}-libs -u 80 -G disk -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda
199 %post libs -p /sbin/ldconfig
203 if [ "$1" = "0" ]; then
210 if [ -f /var/lock/subsys/rc-inetd ]; then
211 /etc/rc.d/init.d/rc-inetd restart 1>&2
213 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server." 1>&2
218 if [ -f /var/lock/subsys/rc-inetd ]; then
219 /etc/rc.d/init.d/rc-inetd restart
224 if [ -f /var/lock/subsys/rc-inetd ]; then
225 /etc/rc.d/init.d/rc-inetd restart 1>&2
227 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server." 1>&2
229 if [ "$1" = "1" ]; then
230 echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
235 if [ -f /var/lock/subsys/rc-inetd ]; then
236 /etc/rc.d/init.d/rc-inetd restart
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/libamanda*.so
242 %attr(755,root,root) %{_libdir}/libamtape*.so
244 %attr(770,root,amanda) %dir %{_localstatedir}/amanda
245 %attr(640,root,amanda) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/amanda/.amandahosts
248 %defattr(644,root,root,755)
250 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amidxtape
251 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amandaidx
253 %attr(750,root,amanda) %dir %{_sysconfdir}/amanda
254 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,amanda) %{_sysconfdir}/amanda/*
256 %attr(664,root,amanda) %{_localstatedir}/amanda/*.ps
258 %config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv
260 %attr(755,root,root) %{_libdir}/libamserver*.so
261 %attr(755,root,root) %{_libexecdir}/amindexd
262 %attr(755,root,root) %{_libexecdir}/amtrmidx
263 %attr(755,root,root) %{_libexecdir}/driver
264 %attr(4754,root,amanda) %{_libexecdir}/dumper
265 %attr(4754,root,amanda) %{_libexecdir}/planner
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}/amlogroll
270 %attr(755,root,root) %{_libexecdir}/amplot.awk
271 %attr(755,root,root) %{_libexecdir}/amplot.g
272 %attr(755,root,root) %{_libexecdir}/amplot.gp
273 %attr(755,root,root) %{_libexecdir}/amtrmlog
274 %attr(755,root,root) %{_libexecdir}/chg-chio
275 %attr(755,root,root) %{_libexecdir}/chg-chs
276 %attr(755,root,root) %{_libexecdir}/chg-disk
277 %attr(755,root,root) %{_libexecdir}/chg-iomega
278 %attr(755,root,root) %{_libexecdir}/chg-juke
279 %attr(755,root,root) %{_libexecdir}/chg-manual
280 %attr(755,root,root) %{_libexecdir}/chg-mcutil
281 %attr(755,root,root) %{_libexecdir}/chg-mtx
282 %attr(755,root,root) %{_libexecdir}/chg-multi
283 %attr(755,root,root) %{_libexecdir}/chg-null
284 %attr(755,root,root) %{_libexecdir}/chg-rait
285 %attr(755,root,root) %{_libexecdir}/chg-rth
286 %attr(755,root,root) %{_libexecdir}/chg-scsi
287 %attr(755,root,root) %{_libexecdir}/chg-zd-mtx
288 %attr(755,root,root) %{_libexecdir}/taper
289 %attr(755,root,root) %{_sbindir}/amadmin
290 %attr(4754,root,amanda) %{_sbindir}/amcheck
291 %attr(755,root,root) %{_sbindir}/amcheckdb
292 %attr(755,root,root) %{_sbindir}/amcleanup
293 %attr(755,root,root) %{_sbindir}/amdump
294 %attr(755,root,root) %{_sbindir}/amflush
295 %attr(755,root,root) %{_sbindir}/amgetconf
296 %attr(755,root,root) %{_sbindir}/amlabel
297 %attr(755,root,root) %{_sbindir}/amoverview
298 %attr(755,root,root) %{_sbindir}/amplot
299 %attr(755,root,root) %{_sbindir}/amreport
300 %attr(755,root,root) %{_sbindir}/amrmtape
301 %attr(755,root,root) %{_sbindir}/amstatus
302 %attr(755,root,root) %{_sbindir}/amtape
303 %attr(755,root,root) %{_sbindir}/amtapetype
304 %attr(755,root,root) %{_sbindir}/amtoc
305 %attr(755,root,root) %{_sbindir}/amverify
306 %attr(755,root,root) %{_sbindir}/amverifyrun
307 %{_mandir}/man8/amadmin.8*
308 %{_mandir}/man8/amanda.8*
309 %{_mandir}/man8/amcheck.8*
310 %{_mandir}/man8/amcheckdb.8*
311 %{_mandir}/man8/amcleanup.8*
312 %{_mandir}/man8/amdump.8*
313 %{_mandir}/man8/amflush.8*
314 %{_mandir}/man8/amgetconf.8*
315 %{_mandir}/man8/amlabel.8*
316 %{_mandir}/man8/amoverview.8*
317 %{_mandir}/man8/amplot.8*
318 %{_mandir}/man8/amreport.8*
319 %{_mandir}/man8/amrmtape.8*
320 %{_mandir}/man8/amstatus.8*
321 %{_mandir}/man8/amtape.8*
322 %{_mandir}/man8/amtapetype.8*
323 %{_mandir}/man8/amtoc.8*
324 %{_mandir}/man8/amverify.8*
325 %{_mandir}/man8/amverifyrun.8*
328 %defattr(644,root,root,755)
329 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amanda
330 %attr(664,root,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/amandates
331 %attr(755,root,root) %{_libdir}/libamclient*.so
332 %attr(755,root,root) %{_libexecdir}/versionsuffix
333 %attr(755,root,root) %{_libexecdir}/amandad
334 %attr(4754,root,amanda) %{_libexecdir}/amqde
335 %attr(4754,root,amanda) %{_libexecdir}/calcsize
336 %attr(4754,root,amanda) %{_libexecdir}/killpgrp
337 %attr(755,root,root) %{_libexecdir}/patch-system
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) %{_sbindir}/amdd
344 %attr(755,root,root) %{_sbindir}/ammt
345 %attr(755,root,root) %{_sbindir}/amrecover
346 %attr(755,root,root) %{_sbindir}/amrestore
347 %attr(770,root,amanda) %dir %{_localstatedir}/amanda/gnutar-lists
348 %{_mandir}/man8/amdd.8*
349 %{_mandir}/man8/ammt.8*
350 %{_mandir}/man8/amrecover.8*
351 %{_mandir}/man8/amrestore.8*