]> git.pld-linux.org Git - packages/amanda.git/blob - amanda.spec
- fixed perms to /var/lib/amanda (770 not 660), release 8, STBR
[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:        8
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/lib
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 Prereq:         /usr/bin/getgid
69 Prereq:         /bin/id
70 Prereq:         /usr/sbin/groupadd
71 Prereq:         /usr/sbin/useradd
72 Prereq:         /usr/sbin/groupdel
73 Prereq:         /usr/sbin/userdel
74
75 %description libs
76 Amanda shared libraries.
77
78 %description libs -l pl
79 Biblioteki wspó³dzielone pakietu amanda.
80
81 %package client
82 Summary:        The client side of Amanda
83 Summary(pl):    Klient Amandy
84 Group:          Networking/Utilities
85 Group(de):      Netzwerkwesen/Werkzeuge
86 Group(pl):      Sieciowe/Narzêdzia
87 Prereq:         /sbin/ldconfig
88 Prereq:         rc-inetd
89 Prereq:         %{name}-libs = %{version}
90
91 %description client
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.
96
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.
101
102 %package server
103 Summary:        The server side of Amanda
104 Summary(pl):    Serwer Amandy
105 Group:          Networking/Utilities
106 Group(de):      Netzwerkwesen/Werkzeuge
107 Group(pl):      Sieciowe/Narzêdzia
108 Prereq:         rc-inetd
109 Prereq:         /sbin/ldconfig
110 Requires:       gnuplot
111 Requires:       crondaemon
112 Requires:       /etc/cron.d
113 Prereq:         rc-inetd
114 Prereq:         %{name}-libs = %{version}
115
116 %description server
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.
122
123 %description server -l pl
124 Ten pakiet powinien byæ zainstalowanych na maszynach, na których bêd±
125 magazynowane kopie zapasowe (lub do których podpiête s± urz±dzenia
126 typu streamer).
127
128 %prep
129 %setup -q
130 %patch0 -p1
131 %patch1 -p1
132 %patch2 -p1
133 %patch3 -p1
134 %patch4 -p1
135 %patch5 -p1
136
137 %build
138 libtoolize --copy --force
139 aclocal
140 autoconf
141 touch COPYING
142 rm -f missing
143 automake -a -c
144 %configure \
145         --disable-static \
146         --enable-shared \
147         --with-index-server=localhost \
148         --with-user=amanda \
149         --with-group=amanda \
150         --with-tape-device=/dev/null \
151         --with-ftape-rawdevice=/dev/null \
152         --with-changer-device=/dev/null \
153         --with-fqdn \
154         --with-smbclient=%{_bindir}/smbclient \
155         --with-bsd-security \
156         --with-buffered-dump \
157         --with-amandahosts \
158         --with-debugging=%{_localstatedir}/amanda/debug \
159         --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \
160         --with-tmpdir=/var/tmp
161
162 %{__make}
163
164 %install
165 rm -rf $RPM_BUILD_ROOT
166 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
167         $RPM_BUILD_ROOT%{_localstatedir}/amanda
168
169 %{__make} install \
170         DESTDIR=$RPM_BUILD_ROOT \
171         SETUID_GROUP=`id -g`
172
173 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
174 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
175 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
176 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
177
178 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/amanda
179 install example/*.ps $RPM_BUILD_ROOT%{_localstatedir}/amanda
180
181 > $RPM_BUILD_ROOT%{_sysconfdir}/amandates
182
183 gzip -9nf docs/*
184
185 %clean
186 rm -rf $RPM_BUILD_ROOT
187
188 %triggerpostun -- amanda-libs < 2.4.2p2-3
189 /usr/sbin/chsh -s /bin/sh amanda
190
191 %pre libs
192 if [ -n "`/usr/bin/getgid amanda`" ]; then
193         if [ "`getgid amanda`" != "80" ]; then
194                 echo "Warning: group amanda haven't gid=80. Correct this before installing amanda-libs" 1>&2
195                 exit 1
196         fi
197 else
198         /usr/sbin/groupadd -g 80 -r -f amanda
199 fi
200 if [ -n "`/bin/id -u amanda 2>/dev/null`" ]; then
201         if [ "`/bin/id -u amanda`" != "80" ]; then
202                 echo "Warning: user amanda haven't uid=80. Correct this before installing amanda-libs" 1>&2
203                 exit 1
204         fi
205 else
206         /usr/sbin/useradd -u 80 -r -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda 1>&2
207 fi
208
209 %post libs -p /sbin/ldconfig
210
211 %postun libs
212 /sbin/ldconfig
213 if [ "$1" = "0" ]; then
214         /usr/sbin/groupdel amanda
215         /usr/sbin/userdel amanda
216 fi
217
218 %post client
219 /sbin/ldconfig
220 if [ -f /var/lock/subsys/rc-inetd ]; then
221         /etc/rc.d/init.d/rc-inetd restart 1>&2
222 else
223         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
224 fi
225
226 %postun client
227 /sbin/ldconfig
228 if [ -f /var/lock/subsys/rc-inetd ]; then
229         /etc/rc.d/init.d/rc-inetd restart
230 fi
231
232 %post server
233 /sbin/ldconfig
234 if [ -f /var/lock/subsys/rc-inetd ]; then
235         /etc/rc.d/init.d/rc-inetd restart 1>&2
236 else
237         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
238 fi
239
240 %postun server
241 /sbin/ldconfig
242 if [ -f /var/lock/subsys/rc-inetd ]; then
243         /etc/rc.d/init.d/rc-inetd restart
244 fi
245
246 %files libs
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/libamanda*.so
249 %attr(755,root,root) %{_libdir}/libamtape*.so
250 %attr(770,root,amanda) %dir %{_libexecdir}
251 %attr(770,root,amanda) %dir %{_localstatedir}/amanda
252
253 %files server
254 %defattr(644,root,root,755)
255 %doc docs/*.gz
256 %config(noreplace) /etc/sysconfig/rc-inetd/amidxtape
257 %config(noreplace) /etc/sysconfig/rc-inetd/amandaidx
258
259 %attr(750,root,amanda) %dir %{_sysconfdir}/amanda
260 %attr(640,root,amanda) %{_sysconfdir}/amanda/*
261
262 %attr(664,amanda,amanda) %{_localstatedir}/amanda/*
263
264 %attr(640,root,root) /etc/cron.d/amanda-srv
265
266 %attr(755,root,root) %{_libdir}/libamserver*.so
267 %attr(755,root,root) %{_libexecdir}/amindexd
268 %attr(755,root,root) %{_libexecdir}/amtrmidx
269 %attr(755,root,root) %{_libexecdir}/driver
270 %attr(4754,root,amanda) %{_libexecdir}/dumper
271 %attr(4754,root,amanda) %{_libexecdir}/planner
272 %attr(755,root,root) %{_libexecdir}/amcat.awk
273 %attr(755,root,root) %{_libexecdir}/amcleanupdisk
274 %attr(755,root,root) %{_libexecdir}/amidxtaped
275 %attr(755,root,root) %{_libexecdir}/amlogroll
276 %attr(755,root,root) %{_libexecdir}/amplot.awk
277 %attr(755,root,root) %{_libexecdir}/amplot.g
278 %attr(755,root,root) %{_libexecdir}/amplot.gp
279 %attr(755,root,root) %{_libexecdir}/amtrmlog
280 %attr(755,root,root) %{_libexecdir}/chg-chio
281 %attr(755,root,root) %{_libexecdir}/chg-chs
282 %attr(755,root,root) %{_libexecdir}/chg-manual
283 %attr(755,root,root) %{_libexecdir}/chg-mtx
284 %attr(755,root,root) %{_libexecdir}/chg-multi
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}/selfcheck
289 %attr(755,root,root) %{_libexecdir}/taper
290 %attr(755,root,root) %{_sbindir}/amadmin
291 %attr(4754,root,amanda) %{_sbindir}/amcheck
292 %attr(755,root,root) %{_sbindir}/amcheckdb
293 %attr(755,root,root) %{_sbindir}/amcleanup
294 %attr(755,root,root) %{_sbindir}/amdump
295 %attr(755,root,root) %{_sbindir}/amflush
296 %attr(755,root,root) %{_sbindir}/amgetconf
297 %attr(755,root,root) %{_sbindir}/amlabel
298 %attr(755,root,root) %{_sbindir}/amoverview
299 %attr(755,root,root) %{_sbindir}/amplot
300 %attr(755,root,root) %{_sbindir}/amrmtape
301 %attr(755,root,root) %{_sbindir}/amreport
302 %attr(755,root,root) %{_sbindir}/amstatus
303 %attr(755,root,root) %{_sbindir}/amtape
304 %attr(755,root,root) %{_sbindir}/amtoc
305 %attr(755,root,root) %{_sbindir}/amverify
306 %attr(755,root,root) %{_sbindir}/tapetype
307 %{_mandir}/man8/amadmin.8*
308 %{_mandir}/man8/amrmtape.8*
309 %{_mandir}/man8/amtape.8*
310 %{_mandir}/man8/amtoc.8*
311 %{_mandir}/man8/amanda.8*
312 %{_mandir}/man8/amcheck.8*
313 %{_mandir}/man8/amcleanup.8*
314 %{_mandir}/man8/amdump.8*
315 %{_mandir}/man8/amflush.8*
316 %{_mandir}/man8/amlabel.8*
317 %{_mandir}/man8/amplot.8*
318 %{_mandir}/man8/amreport.8*
319 %{_mandir}/man8/amstatus.8*
320
321 %files client
322 %defattr(644,root,root,755)
323 %config(noreplace) /etc/sysconfig/rc-inetd/amanda
324 %attr(664,root,amanda) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/amandates
325 %attr(755,root,root) %{_libdir}/libamclient*.so
326 %attr(755,root,root) %{_libexecdir}/versionsuffix
327 %attr(755,root,root) %{_libexecdir}/amandad
328 %attr(4754,root,amanda) %{_libexecdir}/calcsize
329 %attr(4754,root,amanda) %{_libexecdir}/rundump
330 %attr(4754,root,amanda) %{_libexecdir}/runtar
331 %attr(4754,root,amanda) %{_libexecdir}/selfcheck
332 %attr(755,root,root) %{_libexecdir}/sendbackup
333 %attr(755,root,root) %{_libexecdir}/sendsize
334 %attr(755,root,root) %{_libexecdir}/patch-system
335 %attr(4754,root,amanda) %{_libexecdir}/killpgrp
336 %attr(755,root,root) %{_sbindir}/amrecover
337 %attr(755,root,root) %{_sbindir}/amrestore
338 %{_mandir}/man8/amrecover.8*
339 %{_mandir}/man8/amrestore.8*
This page took 0.078386 seconds and 3 git commands to generate.