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