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