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