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