]> git.pld-linux.org Git - packages/amanda.git/blob - amanda.spec
- release 9
[packages/amanda.git] / amanda.spec
1 Summary:        A network-capable tape backup solution
2 Summary(pl):    Sieciowo zorientowany system tworzenia kopii zapasowych
3 Name:           amanda
4 Version:        2.4.2p2
5 Release:        9
6 License:        BSD
7 Group:          Networking/Utilities
8 Group(de):      Netzwerkwesen/Werkzeuge
9 Group(es):      Red/Utilitarios
10 Group(pl):      Sieciowe/Narzêdzia
11 Group(pt_BR):   Rede/Utilitários
12 Source0:        http://prdownloads.sourceforge.net/amanda/%{name}-%{version}.tar.gz
13 Source1:        %{name}-srv.crontab
14 Source2:        %{name}.inetd
15 Source3:        %{name}idx.inetd
16 Source4:        amidxtape.inetd
17 Source5:        %{name}.conf
18 Patch0:         %{name}-no_libnsl.patch
19 Patch1:         %{name}-am_fixes.patch
20 Patch2:         %{name}-bug18322.patch
21 Patch3:         %{name}-build_tapetype.patch
22 Patch4:         %{name}-no_private_libtool.m4.patch
23 Patch5:         %{name}-ac25x.patch
24 URL:            http://www.amanda.org/
25 BuildRequires:  autoconf
26 BuildRequires:  automake
27 BuildRequires:  cpio
28 BuildRequires:  dump
29 BuildRequires:  flex
30 BuildRequires:  gnuplot
31 BuildRequires:  libtool
32 BuildRequires:  readline-devel >= 4.2
33 BuildRequires:  tar
34 Prereq:         /sbin/ldconfig
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %define         _sysconfdir     /etc
38 %define         _localstatedir  /var/lib
39 %define         _libexecdir     %{_libdir}/amanda
40
41 %description 
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
52 well.
53
54 %description -l pl
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!
63
64 %package libs
65 Summary:        Amanda shared libraries
66 Summary(pl):    Biblioteki wspó³dzielone pakietu amanda
67 Group:          Networking/Utilities
68 Group(de):      Netzwerkwesen/Werkzeuge
69 Group(es):      Red/Utilitarios
70 Group(pl):      Sieciowe/Narzêdzia
71 Group(pt_BR):   Rede/Utilitários
72 Prereq:         /usr/bin/getgid
73 Prereq:         /bin/id
74 Prereq:         /usr/sbin/groupadd
75 Prereq:         /usr/sbin/useradd
76 Prereq:         /usr/sbin/groupdel
77 Prereq:         /usr/sbin/userdel
78
79 %description libs
80 Amanda shared libraries.
81
82 %description libs -l pl
83 Biblioteki wspó³dzielone pakietu amanda.
84
85 %package client
86 Summary:        The client side of Amanda
87 Summary(pl):    Klient Amandy
88 Group:          Networking/Utilities
89 Group(de):      Netzwerkwesen/Werkzeuge
90 Group(es):      Red/Utilitarios
91 Group(pl):      Sieciowe/Narzêdzia
92 Group(pt_BR):   Rede/Utilitários
93 Prereq:         /sbin/ldconfig
94 Prereq:         rc-inetd
95 Prereq:         %{name}-libs = %{version}
96
97 %description client
98 The Amanda-client package should be installed on any machine that will
99 be backed up by AMANDA (including the server if it also needs to be
100 backed up). You will also need to install the amanda package to each
101 AMANDA client. It requires at least one of dump and GNU tar installed.
102
103 %description client -l pl
104 Ten pakiet powinien byæ zainstalowany ma maszynach, z których
105 zawarto¶ci bêd± tworzone kopie zapasowe. Wymaga zainstalowanego co
106 najmniej jednego z pakietów dump i GNU tar.
107
108 %package server
109 Summary:        The server side of Amanda
110 Summary(pl):    Serwer Amandy
111 Group:          Networking/Utilities
112 Group(de):      Netzwerkwesen/Werkzeuge
113 Group(es):      Red/Utilitarios
114 Group(pl):      Sieciowe/Narzêdzia
115 Group(pt_BR):   Rede/Utilitários
116 Prereq:         rc-inetd
117 Prereq:         /sbin/ldconfig
118 Requires:       gnuplot
119 Requires:       crondaemon
120 Requires:       /etc/cron.d
121 Prereq:         rc-inetd
122 Prereq:         %{name}-libs = %{version}
123
124 %description server
125 The amanda-server package should be installed on the AMANDA server,
126 the machine attached to the device (such as a tape drive) where
127 backups will be written. You will also need to install the amanda
128 package to the AMANDA server. And, if the server is also to be backed
129 up, the server also needs to have the amanda-client package installed.
130
131 %description server -l pl
132 Ten pakiet powinien byæ zainstalowanych na maszynach, na których bêd±
133 magazynowane kopie zapasowe (lub do których podpiête s± urz±dzenia
134 typu streamer).
135
136 %prep
137 %setup -q
138 %patch0 -p1
139 %patch1 -p1
140 %patch2 -p1
141 %patch3 -p1
142 %patch4 -p1
143 %patch5 -p1
144
145 %build
146 libtoolize --copy --force
147 aclocal
148 autoconf
149 touch COPYING
150 rm -f missing
151 automake -a -c
152 %configure \
153         --disable-static \
154         --enable-shared \
155         --with-index-server=localhost \
156         --with-user=amanda \
157         --with-group=amanda \
158         --with-tape-device=/dev/null \
159         --with-ftape-rawdevice=/dev/null \
160         --with-changer-device=/dev/null \
161         --with-fqdn \
162         --with-smbclient=%{_bindir}/smbclient \
163         --with-bsd-security \
164         --with-buffered-dump \
165         --with-amandahosts \
166         --with-debugging=%{_localstatedir}/amanda/debug \
167         --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \
168         --with-tmpdir=/var/tmp
169
170 %{__make}
171
172 %install
173 rm -rf $RPM_BUILD_ROOT
174 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
175         $RPM_BUILD_ROOT%{_localstatedir}/amanda
176
177 %{__make} install \
178         DESTDIR=$RPM_BUILD_ROOT \
179         SETUID_GROUP=`id -g`
180
181 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
182 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
183 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
184 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
185
186 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/amanda
187 install example/*.ps $RPM_BUILD_ROOT%{_localstatedir}/amanda
188
189 > $RPM_BUILD_ROOT%{_sysconfdir}/amandates
190
191 gzip -9nf docs/*
192
193 %clean
194 rm -rf $RPM_BUILD_ROOT
195
196 %triggerpostun -- amanda-libs < 2.4.2p2-3
197 /usr/sbin/chsh -s /bin/sh amanda
198
199 %pre libs
200 if [ -n "`/usr/bin/getgid amanda`" ]; then
201         if [ "`getgid amanda`" != "80" ]; then
202                 echo "Warning: group amanda haven't gid=80. Correct this before installing amanda-libs" 1>&2
203                 exit 1
204         fi
205 else
206         /usr/sbin/groupadd -g 80 -r -f amanda
207 fi
208 if [ -n "`/bin/id -u amanda 2>/dev/null`" ]; then
209         if [ "`/bin/id -u amanda`" != "80" ]; then
210                 echo "Warning: user amanda haven't uid=80. Correct this before installing amanda-libs" 1>&2
211                 exit 1
212         fi
213 else
214         /usr/sbin/useradd -u 80 -r -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda 1>&2
215 fi
216
217 %post libs -p /sbin/ldconfig
218
219 %postun libs
220 /sbin/ldconfig
221 if [ "$1" = "0" ]; then
222         /usr/sbin/groupdel amanda
223         /usr/sbin/userdel amanda
224 fi
225
226 %post client
227 /sbin/ldconfig
228 if [ -f /var/lock/subsys/rc-inetd ]; then
229         /etc/rc.d/init.d/rc-inetd restart 1>&2
230 else
231         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
232 fi
233
234 %postun client
235 /sbin/ldconfig
236 if [ -f /var/lock/subsys/rc-inetd ]; then
237         /etc/rc.d/init.d/rc-inetd restart
238 fi
239
240 %post server
241 /sbin/ldconfig
242 if [ -f /var/lock/subsys/rc-inetd ]; then
243         /etc/rc.d/init.d/rc-inetd restart 1>&2
244 else
245         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
246 fi
247
248 %postun server
249 /sbin/ldconfig
250 if [ -f /var/lock/subsys/rc-inetd ]; then
251         /etc/rc.d/init.d/rc-inetd restart
252 fi
253
254 %files libs
255 %defattr(644,root,root,755)
256 %attr(755,root,root) %{_libdir}/libamanda*.so
257 %attr(755,root,root) %{_libdir}/libamtape*.so
258 %attr(770,root,amanda) %dir %{_libexecdir}
259 %attr(770,root,amanda) %dir %{_localstatedir}/amanda
260
261 %files server
262 %defattr(644,root,root,755)
263 %doc docs/*.gz
264 %config(noreplace) /etc/sysconfig/rc-inetd/amidxtape
265 %config(noreplace) /etc/sysconfig/rc-inetd/amandaidx
266
267 %attr(750,root,amanda) %dir %{_sysconfdir}/amanda
268 %config(noreplace) %attr(640,root,amanda) %{_sysconfdir}/amanda/*
269
270 %attr(664,amanda,amanda) %{_localstatedir}/amanda/*
271
272 %attr(640,root,root) /etc/cron.d/amanda-srv
273
274 %attr(755,root,root) %{_libdir}/libamserver*.so
275 %attr(755,root,root) %{_libexecdir}/amindexd
276 %attr(755,root,root) %{_libexecdir}/amtrmidx
277 %attr(755,root,root) %{_libexecdir}/driver
278 %attr(4754,root,amanda) %{_libexecdir}/dumper
279 %attr(4754,root,amanda) %{_libexecdir}/planner
280 %attr(755,root,root) %{_libexecdir}/amcat.awk
281 %attr(755,root,root) %{_libexecdir}/amcleanupdisk
282 %attr(755,root,root) %{_libexecdir}/amidxtaped
283 %attr(755,root,root) %{_libexecdir}/amlogroll
284 %attr(755,root,root) %{_libexecdir}/amplot.awk
285 %attr(755,root,root) %{_libexecdir}/amplot.g
286 %attr(755,root,root) %{_libexecdir}/amplot.gp
287 %attr(755,root,root) %{_libexecdir}/amtrmlog
288 %attr(755,root,root) %{_libexecdir}/chg-chio
289 %attr(755,root,root) %{_libexecdir}/chg-chs
290 %attr(755,root,root) %{_libexecdir}/chg-manual
291 %attr(755,root,root) %{_libexecdir}/chg-mtx
292 %attr(755,root,root) %{_libexecdir}/chg-multi
293 %attr(755,root,root) %{_libexecdir}/chg-rth
294 %attr(755,root,root) %{_libexecdir}/chg-scsi
295 %attr(755,root,root) %{_libexecdir}/chg-zd-mtx
296 %attr(755,root,root) %{_libexecdir}/selfcheck
297 %attr(755,root,root) %{_libexecdir}/taper
298 %attr(755,root,root) %{_sbindir}/amadmin
299 %attr(4754,root,amanda) %{_sbindir}/amcheck
300 %attr(755,root,root) %{_sbindir}/amcheckdb
301 %attr(755,root,root) %{_sbindir}/amcleanup
302 %attr(755,root,root) %{_sbindir}/amdump
303 %attr(755,root,root) %{_sbindir}/amflush
304 %attr(755,root,root) %{_sbindir}/amgetconf
305 %attr(755,root,root) %{_sbindir}/amlabel
306 %attr(755,root,root) %{_sbindir}/amoverview
307 %attr(755,root,root) %{_sbindir}/amplot
308 %attr(755,root,root) %{_sbindir}/amrmtape
309 %attr(755,root,root) %{_sbindir}/amreport
310 %attr(755,root,root) %{_sbindir}/amstatus
311 %attr(755,root,root) %{_sbindir}/amtape
312 %attr(755,root,root) %{_sbindir}/amtoc
313 %attr(755,root,root) %{_sbindir}/amverify
314 %attr(755,root,root) %{_sbindir}/tapetype
315 %{_mandir}/man8/amadmin.8*
316 %{_mandir}/man8/amrmtape.8*
317 %{_mandir}/man8/amtape.8*
318 %{_mandir}/man8/amtoc.8*
319 %{_mandir}/man8/amanda.8*
320 %{_mandir}/man8/amcheck.8*
321 %{_mandir}/man8/amcleanup.8*
322 %{_mandir}/man8/amdump.8*
323 %{_mandir}/man8/amflush.8*
324 %{_mandir}/man8/amlabel.8*
325 %{_mandir}/man8/amplot.8*
326 %{_mandir}/man8/amreport.8*
327 %{_mandir}/man8/amstatus.8*
328
329 %files client
330 %defattr(644,root,root,755)
331 %config(noreplace) /etc/sysconfig/rc-inetd/amanda
332 %attr(664,root,amanda) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/amandates
333 %attr(755,root,root) %{_libdir}/libamclient*.so
334 %attr(755,root,root) %{_libexecdir}/versionsuffix
335 %attr(755,root,root) %{_libexecdir}/amandad
336 %attr(4754,root,amanda) %{_libexecdir}/calcsize
337 %attr(4754,root,amanda) %{_libexecdir}/rundump
338 %attr(4754,root,amanda) %{_libexecdir}/runtar
339 %attr(4754,root,amanda) %{_libexecdir}/selfcheck
340 %attr(755,root,root) %{_libexecdir}/sendbackup
341 %attr(755,root,root) %{_libexecdir}/sendsize
342 %attr(755,root,root) %{_libexecdir}/patch-system
343 %attr(4754,root,amanda) %{_libexecdir}/killpgrp
344 %attr(755,root,root) %{_sbindir}/amrecover
345 %attr(755,root,root) %{_sbindir}/amrestore
346 %{_mandir}/man8/amrecover.8*
347 %{_mandir}/man8/amrestore.8*
This page took 0.159356 seconds and 4 git commands to generate.