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