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