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