]> git.pld-linux.org Git - packages/amanda.git/blob - amanda.spec
- modyfications for using neew rpm automation.
[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 %configure \
129         --disable-static \
130         --with-index-server=localhost \
131         --with-user=amanda \
132         --with-group=amanda \
133         --with-samba-user=amanda \
134         --with-tape-device=/dev/null \
135         --with-ftape-rawdevice=/dev/null \
136         --with-changer-device=/dev/null \
137         --with-fqdn \
138         --with-smbclient=%{_bindir}/smbclient \
139         --with-bsd-security \
140         --with-buffered-dump \
141         --with-amandahosts \
142         --with-debugging=%{_localstatedir}/lib/amanda/debug
143
144 %{__make}
145
146 %install
147 rm -rf $RPM_BUILD_ROOT
148 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
149         $RPM_BUILD_ROOT%{_localstatedir}/lib/amanda
150
151 %{__make} install \
152         DESTDIR=$RPM_BUILD_ROOT \
153         SETUID_GROUP=`id -g`
154
155 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
156 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
157 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
158 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
159
160 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/amanda
161 install example/*.ps $RPM_BUILD_ROOT%{_localstatedir}/lib/amanda
162
163 %clean
164 rm -rf $RPM_BUILD_ROOT
165
166 %pre libs
167 /usr/sbin/groupadd -g 80 -r -f amanda
168 /usr/sbin/useradd -u 80 -r -d /var/lib/amanda -s /bin/false -c "Amanda Backup user" -g amanda amanda
169
170 %post   libs -p /sbin/ldconfig
171
172 %preun libs
173 /sbin/ldconfig
174 if [ "$1" = "0" ]; then
175         /usr/sbin/groupdel amanda
176         /usr/sbin/userdel amanda
177 fi
178
179 %post client
180 /sbin/ldconfig
181 if [ -f /var/lock/subsys/rc-inetd ]; then
182         /etc/rc.d/init.d/rc-inetd restart 1>&2
183 else
184         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
185 fi
186
187 %postun client
188 /sbin/ldconfig
189 if [ -f /var/lock/subsys/rc-inetd ]; then
190         /etc/rc.d/init.d/rc-inetd restart
191 fi
192
193 %post server
194 /sbin/ldconfig
195 if [ -f /var/lock/subsys/rc-inetd ]; then
196         /etc/rc.d/init.d/rc-inetd restart 1>&2
197 else
198         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
199 fi
200
201 %postun server
202 /sbin/ldconfig
203 if [ -f /var/lock/subsys/rc-inetd ]; then
204         /etc/rc.d/init.d/rc-inetd restart
205 fi
206
207 %files libs
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_libdir}/libamanda*.so.*.*
210 %attr(755,root,root) %{_libdir}/libamtape*.so.*.*
211 %attr(770,root,amanda) %dir %{_libexecdir}
212
213 %files server
214 %defattr(644,root,root,755)
215 %config(noreplace) /etc/sysconfig/rc-inetd/amidxtape
216 %config(noreplace) /etc/sysconfig/rc-inetd/amandaidx
217 %attr(755,root,root) %{_libexecdir}/amidxtaped
218
219 %dir %{_sysconfdir}/amanda
220 %attr(640,root,amanda) %{_sysconfdir}/amanda/*
221
222 %attr(660,amanda,amanda) %dir %{_localstatedir}/lib/amanda
223 %{_localstatedir}/lib/amanda/*
224
225 %attr(640,root,root) /etc/cron.d/amanda-srv
226
227 %attr(755,root,root) %{_libdir}/libamserver*.so.*.*
228 %attr(755,root,root) %{_libexecdir}/amindexd
229 %attr(755,root,root) %{_libexecdir}/amtrmidx
230 %attr(755,root,root) %{_libexecdir}/driver
231 %attr(4754,root,amanda) %{_libexecdir}/dumper
232 %attr(755,root,root) %{_libexecdir}/getconf
233 %attr(4754,root,amanda) %{_libexecdir}/planner
234 %attr(755,root,root) %{_libexecdir}/taper
235 %attr(755,root,root) %{_libexecdir}/chg-chio
236 %attr(755,root,root) %{_libexecdir}/chg-manual
237 %attr(755,root,root) %{_libexecdir}/chg-multi
238 %attr(755,root,root) %{_libexecdir}/chg-mtx
239 %attr(755,root,root) %{_libexecdir}/chg-rth
240 %attr(755,root,root) %{_libexecdir}/chg-chs
241 %attr(755,root,root) %{_sbindir}/amadmin
242 %attr(4754,root,amanda) %{_sbindir}/amcheck
243 %attr(755,root,root) %{_sbindir}/amflush
244 %attr(755,root,root) %{_sbindir}/amlabel
245 %attr(755,root,root) %{_sbindir}/amtape
246 %attr(755,root,root) %{_sbindir}/amcheckdb
247 %attr(755,root,root) %{_sbindir}/amcleanup
248 %attr(755,root,root) %{_sbindir}/amdump
249 %attr(755,root,root) %{_sbindir}/amoverview
250 %attr(755,root,root) %{_sbindir}/amrmtape
251 %attr(755,root,root) %{_sbindir}/amtoc
252 %attr(755,root,root) %{_sbindir}/amverify
253 #%attr(755,root,root) %{_sbindir}/amplot
254 %attr(755,root,root) %{_sbindir}/amreport
255 %attr(755,root,root) %{_sbindir}/amstatus
256 %{_mandir}/man8/amadmin.8*
257 %{_mandir}/man8/amrmtape.8*
258 %{_mandir}/man8/amtape.8*
259 %{_mandir}/man8/amtoc.8*
260 %{_mandir}/man8/amanda.8*
261 %{_mandir}/man8/amcheck.8*
262 %{_mandir}/man8/amcleanup.8*
263 %{_mandir}/man8/amdump.8*
264 %{_mandir}/man8/amflush.8*
265 %{_mandir}/man8/amlabel.8*
266 %{_mandir}/man8/amplot.8*
267 %{_mandir}/man8/amreport.8*
268 %{_mandir}/man8/amstatus.8*
269
270 %files client
271 %defattr(644,root,root,755)
272 %config(noreplace) /etc/sysconfig/rc-inetd/amanda
273
274 %attr(755,root,root) %{_libdir}/libamclient*.so.*.*
275 %attr(755,root,root) %{_libexecdir}/versionsuffix
276 %attr(755,root,root) %{_libexecdir}/amandad
277 %attr(4754,root,amanda) %{_libexecdir}/calcsize
278 %attr(4754,root,amanda) %{_libexecdir}/rundump
279 %attr(4754,root,amanda) %{_libexecdir}/runtar
280 %attr(4754,root,amanda) %{_libexecdir}/selfcheck
281 %attr(755,root,root) %{_libexecdir}/sendbackup
282 %attr(755,root,root) %{_libexecdir}/sendsize
283 %attr(755,root,root) %{_libexecdir}/patch-system
284 %attr(4754,root,amanda) %{_libexecdir}/killpgrp
285 %attr(755,root,root) %{_sbindir}/amrecover
286 %attr(755,root,root) %{_sbindir}/amrestore
287 %{_mandir}/man8/amrecover.8*
288 %{_mandir}/man8/amrestore.8*
This page took 0.070555 seconds and 3 git commands to generate.