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