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