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