1 Summary: A network-capable tape backup solution
2 Summary(pl): Sieciowo zorientowany system tworzenia kopii zapasowych
6 Copyright: distributable
7 Group: Networking/Utilities
8 Group(pl): Sieciowe/Narzêdzia
9 Source0: ftp://ftp.amanda.org/pub/amanda/%{name}-%{version}.tar.gz
10 Source1: amanda-srv.crontab
12 Source3: amandaidx.inetd
13 Source4: amidxtape.inetd
15 Patch: amanda-DESTDIR.patch
20 BuildRequires: ncurses-devel >= 5.0
21 BuildRequires: readline-devel
22 Prereq: /sbin/ldconfig
23 URL: http://www.amanda.org/
24 BuildRoot: /tmp/%{name}-%{version}-root
26 %define _sysconfdir /etc
27 %define _localstatedir /var
28 %define _libexecdir %{_libdir}/amanda
31 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup
32 system that allows the administrator of a LAN to set up a single master
33 backup server to back up multiple hosts to a single large capacity tape
34 drive. AMANDA uses native dump and/or GNU tar facilities and can back up a
35 large number of workstations running multiple versions of Unix. Newer
36 versions of AMANDA (including this version) can use SAMBA to back up
37 Microsoft(TM) Windows95/NT hosts. The amanda package contains the core
38 AMANDA programs and will need to be installed on both AMANDA clients and
39 AMANDA servers. Note that you will have to install the amanda-client and
40 amanda-server packages as well.
43 AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
44 zapasowych. Umo¿liwia administratorowi sieci tworzenie
45 kopii z wilku hostów na jednej maszynie wyposa¿onej w pojemny
46 dysk lub streamer. Nowsze wersje programu umo¿liwiaj± zabezpieczanie
47 zasobów Microsoft Windows 95/98/NT/2000 przy u¿yciu protoko³u Samba.
48 Ten pakiet zawiera podstawowe pliki programu i powinien byæ zainstalowany
49 zarówno na serwerze jak i na kliencie. Pamiêtaj tak¿e o instalacji
50 pakietów amanda-client i amanda-server!
53 Summary: Amanda shared libraries
54 Summary(pl): Biblioteki wspó³dzielone pakietu amanda
55 Group: Networking/Utilities
56 Group(pl): Sieciowe/Narzêdzia
59 Amanda shared libraries.
61 %description -l pl libs
62 Biblioteki wspó³dzielone pakietu amanda.
65 Summary: The client side of Amanda
66 Summary(pl): Klient Amandy
67 Group: Networking/Utilities
68 Group(pl): Sieciowe/Narzêdzia
69 Prereq: /sbin/ldconfig
70 Prereq: %{name}-libs = %{version}
73 The Amanda-client package should be installed on any machine that will be
74 backed up by AMANDA (including the server if it also needs to be backed up).
75 You will also need to install the amanda package to each AMANDA client.
77 %description -l pl client
78 Ten pakiet powinien byæ zainstalowany ma maszynach, z których
79 zawarto¶ci bêd± tworzone kopie zapasowe.
82 Summary: The server side of Amanda
83 Summary(pl): Serwer Amandy
84 Group: Networking/Utilities
85 Group(pl): Sieciowe/Narzêdzia
87 Prereq: /sbin/ldconfig
94 Prereq: %{name}-libs = %{version}
97 The amanda-server package should be installed on the AMANDA server, the
98 machine attached to the device (such as a tape drive) where backups will be
99 written. You will also need to install the amanda package to the AMANDA
100 server. And, if the server is also to be backed up, the server also needs to
101 have the amanda-client package installed.
103 %description -l pl server
104 Ten pakiet powinien byæ zainstalowanych na maszynach, na których
105 bêd± magazynowane kopie zapasowe (lub do których podpiête s±
106 urz±dzenia typu streamer).
115 LDFLAGS="-s"; export LDFLAGS
118 --with-index-server=localhost \
120 --with-group=amanda \
121 --with-samba-user=amanda \
122 --with-tape-device=/dev/null \
123 --with-ftape-rawdevice=/dev/null \
124 --with-changer-device=/dev/null \
126 --with-smbclient=%{_bindir}/smbclient \
127 --with-bsd-security \
128 --with-buffered-dump \
130 --with-debugging=%{_localstatedir}/amanda/debug
135 rm -rf $RPM_BUILD_ROOT
136 install -d $RPM_BUILD_ROOT/etc/{amanda,cron.d,sysconfig/rc-inetd} \
137 $RPM_BUILD_ROOT%{_localstatedir}/state/amanda
140 DESTDIR=$RPM_BUILD_ROOT \
143 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
144 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
145 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
146 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
148 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/amanda
149 install example/*.ps $RPM_BUILD_ROOT%{_localstatedir}/state/amanda
151 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
153 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man8/*
156 rm -rf $RPM_BUILD_ROOT
159 /usr/sbin/groupadd -g 80 -r -f amanda
160 /usr/sbin/useradd -u 80 -r -d /var/state/amanda -s /bin/false -c "Amanda Backup user" -g amanda amanda
162 %post libs -p /sbin/ldconfig
166 if [ "$1" = "0" ]; then
167 /usr/sbin/groupdel amanda
168 /usr/sbin/userdel mananda
173 if [ -f /var/lock/subsys/rc-inetd ]; then
174 /etc/rc.d/init.d/rc-inetd restart 1>&2
176 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
181 if [ -f /var/lock/subsys/rc-inetd ]; then
182 /etc/rc.d/init.d/rc-inetd restart
187 if [ -f /var/lock/subsys/rc-inetd ]; then
188 /etc/rc.d/init.d/rc-inetd restart 1>&2
190 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
195 if [ -f /var/lock/subsys/rc-inetd ]; then
196 /etc/rc.d/init.d/rc-inetd restart
200 %defattr(644,root,root,755)
201 %attr(755,root,root) %{_libdir}/libamanda*.so.*.*
202 %attr(755,root,root) %{_libdir}/libamtape*.so.*.*
203 %attr(770,root,amanda) %dir %{_libexecdir}
206 %defattr(644,root,root,755)
207 %config(noreplace) /etc/sysconfig/rc-inetd/amidxtape
208 %config(noreplace) /etc/sysconfig/rc-inetd/amandaidx
209 %attr(755,root,root) %{_libexecdir}/amidxtaped
211 %dir %{_sysconfdir}/amanda
212 %attr(640,root,amanda) %{_sysconfdir}/amanda/*
214 %attr(660,amanda,amanda) %dir %{_localstatedir}/state/amanda
215 %{_localstatedir}/state/amanda/*
217 %attr(640,root,root) /etc/cron.d/amanda-srv
219 %attr(755,root,root) %{_libdir}/libamserver*.so.*.*
220 %attr(755,root,root) %{_libexecdir}/amindexd
221 %attr(755,root,root) %{_libexecdir}/amtrmidx
222 %attr(755,root,root) %{_libexecdir}/driver
223 %attr(4754,root,amanda) %{_libexecdir}/dumper
224 %attr(755,root,root) %{_libexecdir}/getconf
225 %attr(4754,root,amanda) %{_libexecdir}/planner
226 %attr(755,root,root) %{_libexecdir}/taper
227 %attr(755,root,root) %{_libexecdir}/chg-chio
228 %attr(755,root,root) %{_libexecdir}/chg-manual
229 %attr(755,root,root) %{_libexecdir}/chg-multi
230 %attr(755,root,root) %{_libexecdir}/chg-mtx
231 %attr(755,root,root) %{_libexecdir}/chg-rth
232 %attr(755,root,root) %{_libexecdir}/chg-chs
233 %attr(755,root,root) %{_sbindir}/amadmin
234 %attr(755,root,root) %{_sbindir}/amcheck
235 %attr(755,root,root) %{_sbindir}/amflush
236 %attr(755,root,root) %{_sbindir}/amlabel
237 %attr(755,root,root) %{_sbindir}/amtape
238 %attr(755,root,root) %{_sbindir}/amcheckdb
239 %attr(755,root,root) %{_sbindir}/amcleanup
240 %attr(755,root,root) %{_sbindir}/amdump
241 %attr(755,root,root) %{_sbindir}/amoverview
242 %attr(755,root,root) %{_sbindir}/amrmtape
243 %attr(755,root,root) %{_sbindir}/amtoc
244 %attr(755,root,root) %{_sbindir}/amverify
245 #%attr(755,root,root) %{_sbindir}/amplot
246 %attr(755,root,root) %{_sbindir}/amreport
247 %attr(755,root,root) %{_sbindir}/amstatus
248 %{_mandir}/man8/amadmin.8*
249 %{_mandir}/man8/amrmtape.8*
250 %{_mandir}/man8/amtape.8*
251 %{_mandir}/man8/amtoc.8*
252 %{_mandir}/man8/amanda.8*
253 %{_mandir}/man8/amcheck.8*
254 %{_mandir}/man8/amcleanup.8*
255 %{_mandir}/man8/amdump.8*
256 %{_mandir}/man8/amflush.8*
257 %{_mandir}/man8/amlabel.8*
258 %{_mandir}/man8/amplot.8*
259 %{_mandir}/man8/amreport.8*
260 %{_mandir}/man8/amstatus.8*
263 %defattr(644,root,root,755)
264 %config(noreplace) /etc/sysconfig/rc-inetd/amanda
266 %attr(755,root,root) %{_libdir}/libamclient*.so.*.*
267 %attr(755,root,root) %{_libexecdir}/versionsuffix
268 %attr(755,root,root) %{_libexecdir}/amandad
269 %attr(4754,root,amanda) %{_libexecdir}/calcsize
270 %attr(755,root,root) %{_libexecdir}/rundump
271 %attr(4754,root,amanda) %{_libexecdir}/runtar
272 %attr(4754,root,amanda) %{_libexecdir}/selfcheck
273 %attr(755,root,root) %{_libexecdir}/sendbackup
274 %attr(755,root,root) %{_libexecdir}/sendsize
275 %attr(755,root,root) %{_libexecdir}/patch-system
276 %attr(4754,root,amanda) %{_libexecdir}/killpgrp
277 %attr(755,root,root) %{_sbindir}/amrecover
278 %attr(755,root,root) %{_sbindir}/amrestore
279 %{_mandir}/man8/amrecover.8*
280 %{_mandir}/man8/amrestore.8*