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