]> git.pld-linux.org Git - packages/amanda.git/blame_incremental - amanda.spec
- amanda works with IPv6
[packages/amanda.git] / amanda.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_without xfs # without (possible) support for xfsdump
4%bcond_without samba # without smbclient support
5%bcond_without client # without client package
6%bcond_without server # without server package
7#
8Summary: A network-capable tape backup solution
9Summary(pl.UTF-8): Sieciowo zorientowany system tworzenia kopii zapasowych
10Name: amanda
11Version: 2.6.0
12Release: 0.1
13License: BSD
14Group: Networking/Utilities
15Source0: http://dl.sourceforge.net/amanda/%{name}-%{version}.tar.gz
16# Source0-md5: c347c1e573c33018f234750ac6435156
17Source1: %{name}-srv.crontab
18Source2: %{name}.inetd
19Source3: %{name}idx.inetd
20Source4: amidxtape.inetd
21Patch0: %{name}-no_libnsl.patch
22Patch1: %{name}-chg-zd-mtx-sh.patch
23Patch2: %{name}-tar.patch
24Patch3: %{name}-bashizm.patch
25Patch4: %{name}-as_needed.patch
26URL: http://www.amanda.org/
27BuildRequires: autoconf >= 2.53
28BuildRequires: automake
29BuildRequires: curl-devel
30BuildRequires: dump
31BuildRequires: flex
32BuildRequires: glib2-devel
33# curl is broken, see curl-config --libs
34BuildRequires: keyutils-devel
35BuildRequires: krb5-devel >= 1.6-4
36BuildRequires: libtool
37BuildRequires: libxslt-progs
38BuildRequires: ncurses-devel
39BuildRequires: openssh-clients
40BuildRequires: openssl-devel
41BuildRequires: perl-devel
42BuildRequires: readline-devel >= 4.2
43BuildRequires: rpmbuild(macros) >= 1.268
44%{?with_samba:BuildRequires: samba-client}
45BuildRequires: swig
46%{?with_xfs:BuildRequires: xfsdump}
47Conflicts: shadow < 1:4.0.4.1-4
48Conflicts: pwdutils < 3.1.2-2
49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51%description
52AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
53backup system that allows the administrator of a LAN to set up a
54single master backup server to back up multiple hosts to a single
55large capacity tape drive. AMANDA uses native dump and/or GNU tar
56facilities and can back up a large number of workstations running
57multiple versions of Unix. Newer versions of AMANDA (including this
58version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
59The amanda package contains the core AMANDA programs and will need to
60be installed on both AMANDA clients and AMANDA servers. Note that you
61will have to install the amanda-client and amanda-server packages as
62well.
63
64%description -l pl.UTF-8
65AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
66zapasowych. Umożliwia administratorowi sieci tworzenie kopii z kilku
67hostów na jednej maszynie wyposażonej w pojemny dysk lub streamer.
68Nowsze wersje programu umożliwiają zabezpieczanie zasobów Microsoft
69Windows 95/98/NT/2000 przy użyciu protokołu Samba. Ten pakiet zawiera
70podstawowe pliki programu i powinien być zainstalowany zarówno na
71serwerze jak i na kliencie. Pamiętaj także o instalacji pakietów
72amanda-client i amanda-server!
73
74%package libs
75Summary: Amanda shared libraries
76Summary(pl.UTF-8): Biblioteki współdzielone pakietu amanda
77Group: Networking/Utilities
78Requires(postun): /usr/sbin/groupdel
79Requires(postun): /usr/sbin/userdel
80Requires(pre): /bin/id
81Requires(pre): /usr/bin/chsh
82Requires(pre): /usr/bin/getgid
83Requires(pre): /usr/sbin/groupadd
84Requires(pre): /usr/sbin/useradd
85Provides: group(amanda)
86Provides: user(amanda)
87
88%description libs
89Amanda shared libraries.
90
91%description libs -l pl.UTF-8
92Biblioteki współdzielone pakietu amanda.
93
94%package client
95Summary: The client side of Amanda
96Summary(pl.UTF-8): Klient Amandy
97Group: Networking/Utilities
98Requires: %{name}-libs = %{version}-%{release}
99Requires: rc-inetd
100Conflicts: tar < 1.13
101
102%description client
103The Amanda-client package should be installed on any machine that will
104be backed up by AMANDA (including the server if it also needs to be
105backed up). You will also need to install the amanda package to each
106AMANDA client. It requires at least one of dump and GNU tar installed.
107
108%description client -l pl.UTF-8
109Ten pakiet powinien być zainstalowany ma maszynach, z których
110zawartości będą tworzone kopie zapasowe. Wymaga zainstalowanego co
111najmniej jednego z pakietów dump i GNU tar.
112
113%package server
114Summary: The server side of Amanda
115Summary(pl.UTF-8): Serwer Amandy
116Group: Networking/Utilities
117Requires: %{name}-libs = %{version}-%{release}
118Requires: /etc/cron.d
119Requires: crondaemon
120Requires: gnuplot
121Requires: mt-st
122Requires: mtx
123Requires: rc-inetd
124Obsoletes: amanda
125
126%description server
127The amanda-server package should be installed on the AMANDA server,
128the machine attached to the device (such as a tape drive) where
129backups will be written. You will also need to install the amanda
130package to the AMANDA server. And, if the server is also to be backed
131up, the server also needs to have the amanda-client package installed.
132
133%description server -l pl.UTF-8
134Ten pakiet powinien być zainstalowany na maszynach, na których będą
135magazynowane kopie zapasowe (lub do których podpięte są urządzenia
136typu streamer).
137
138%package perl
139Summary: Perl stuff
140Summary(pl.UTF-8): Serwer Amandy
141Group: Networking/Utilities
142Requires: %{name}-libs = %{version}-%{release}
143
144%description perl
145
146%description perl -l pl.UTF-8
147
148%package perl-server
149Summary: Perl stuff
150Summary(pl.UTF-8): Serwer Amandy
151Group: Networking/Utilities
152Requires: %{name}-perl = %{version}-%{release}
153Requires: %{name}-server = %{version}-%{release}
154
155%description perl-server
156
157%description perl-server -l pl.UTF-8
158
159%prep
160%setup -q
161%patch0 -p1
162%patch1 -p1
163%patch2 -p1
164%patch3 -p1
165%patch4 -p1
166
167%build
168%{__libtoolize}
169%{__aclocal} -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive
170%{__autoconf}
171%{__automake}
172%configure \
173 MT=/bin/mt \
174 MTX=/usr/sbin/mtx \
175 GNUPLOT=/usr/bin/gnuplot \
176 MAILER=/bin/mail \
177 PRINT=/usr/bin/lpr \
178 DUMP=/sbin/dump \
179 RESTORE=/sbin/restore \
180 %{?with_xfs:XFSDUMP=/sbin/xfsdump} \
181 %{?with_xfs:XFSRESTORE=/sbin/xfsrestore} \
182 --disable-static \
183 --enable-shared \
184 %{!?with_server:--without-server} \
185 %{!?with_client:--without-client} \
186 --with-index-server=localhost \
187 --with-user=amanda \
188 --with-group=amanda \
189 --with-tape-device=/dev/null \
190 --with-ftape-rawdevice=/dev/null \
191 --with-changer-device=/dev/null \
192 --with-fqdn \
193 %{?with_samba:--with-smbclient=%{_bindir}/smbclient} \
194 --with-bsd-security \
195 --with-ssh-security \
196 --with-krb5-security \
197 --without-krb4-security \
198 --with-buffered-dump \
199 --with-amandahosts \
200 --with-gnutar-listdir=%{_sharedstatedir}/gnutar-lists \
201 --with-amandates=%{_sharedstatedir}/amanda/amandates \
202 --with-debugging=%{_sharedstatedir}/amanda/debug \
203 --with-tmpdir=/var/tmp \
204 --with-amperldir=%{perl_vendorarch} \
205 --disable-installperms
206
207%{__make}
208
209%install
210rm -rf $RPM_BUILD_ROOT
211install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
212 $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/gnutar-lists
213
214%{__make} install \
215 DESTDIR=$RPM_BUILD_ROOT
216
217install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
218sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE2} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
219sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
220sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE4} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
221
222install example/amanda.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
223touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.amandahosts
224
225> $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/amandates
226
227find $RPM_BUILD_ROOT -name \*.la | xargs rm -f
228
229%clean
230rm -rf $RPM_BUILD_ROOT
231
232%triggerpostun libs -- %{name}-libs < 2.5.1p2-1
233echo "Adding amanda to disk and backup groups"
234/usr/sbin/usermod -G disk,backup amanda
235echo "Setting amanda shell to /bin/sh"
236/usr/bin/chsh -s /bin/sh amanda
237if [ -f %{_sharedstatedir}/amanda/.amandahosts ]; then
238 echo "Fixing permissions of %{_sharedstatedir}/amanda/.amandahosts file"
239 chown amanda:amanda %{_sharedstatedir}/amanda/.amandahosts
240 chmod 600 %{_sharedstatedir}/amanda/.amandahosts
241fi
242
243%pre libs
244%groupadd -P %{name}-libs -g 80 amanda
245%useradd -P %{name}-libs -u 80 -G disk,backup -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda
246
247%postun libs
248if [ "$1" = "0" ]; then
249 %userremove amanda
250 %groupremove amanda
251fi
252
253%post client
254%service -q rc-inetd reload
255
256%postun client
257if [ "$1" = 0 ]; then
258 %service -q rc-inetd reload
259fi
260
261%post server
262%service -q rc-inetd reload
263if [ "$1" = "1" ]; then
264 echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
265fi
266
267%postun server
268if [ "$1" = 0 ]; then
269 %service -q rc-inetd reload
270fi
271
272%files libs
273%defattr(644,root,root,755)
274%doc AUTHORS COPYRIGHT ChangeLog NEWS README ReleaseNotes UPGRADING
275%attr(755,root,root) %{_libdir}/amanda/libamanda*.so
276%dir %{_libdir}/amanda
277%attr(770,root,amanda) %dir %{_sharedstatedir}/amanda
278%attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.amandahosts
279
280%if %{with server}
281%files server
282%defattr(644,root,root,755)
283%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amidxtape
284%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amandaidx
285
286%attr(750,root,amanda) %dir %{_sysconfdir}/amanda
287%config(noreplace) %verify(not md5 mtime size) %attr(640,root,amanda) %{_sysconfdir}/amanda/*
288
289#%attr(664,root,amanda) %{_sharedstatedir}/amanda/*.ps
290%{_sharedstatedir}/amanda/example
291%{_sharedstatedir}/amanda/template.d
292
293%config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv
294
295%dir %{_libdir}/amanda/application
296%attr(755,root,root) %{_libdir}/amanda/application/amgtar
297%attr(644,root,root) %{_libdir}/amanda/application/generic-dumper
298
299%attr(755,root,root) %{_libdir}/amanda/libamdevice*.so
300%attr(755,root,root) %{_libdir}/amanda/libamserver*.so
301%attr(755,root,root) %{_libdir}/amanda/libamtape*.so
302%attr(755,root,root) %{_libdir}/amanda/librestore*.so
303
304%attr(755,root,root) %{_libdir}/amanda/amcat.awk
305%attr(755,root,root) %{_libdir}/amanda/amcleanupdisk
306%attr(755,root,root) %{_libdir}/amanda/amidxtaped
307%attr(755,root,root) %{_libdir}/amanda/amindexd
308%attr(755,root,root) %{_libdir}/amanda/amlogroll
309%attr(755,root,root) %{_libdir}/amanda/amplot.awk
310%attr(755,root,root) %{_libdir}/amanda/amplot.g
311%attr(755,root,root) %{_libdir}/amanda/amplot.gp
312%attr(755,root,root) %{_libdir}/amanda/amtrmidx
313%attr(755,root,root) %{_libdir}/amanda/amtrmlog
314%attr(755,root,root) %{_libdir}/amanda/chg-chio
315%attr(755,root,root) %{_libdir}/amanda/chg-chs
316%attr(755,root,root) %{_libdir}/amanda/chg-disk
317%attr(755,root,root) %{_libdir}/amanda/chg-iomega
318%attr(755,root,root) %{_libdir}/amanda/chg-juke
319%attr(755,root,root) %{_libdir}/amanda/chg-lib.sh
320%attr(755,root,root) %{_libdir}/amanda/chg-manual
321%attr(755,root,root) %{_libdir}/amanda/chg-mcutil
322%attr(755,root,root) %{_libdir}/amanda/chg-mtx
323%attr(755,root,root) %{_libdir}/amanda/chg-multi
324%attr(755,root,root) %{_libdir}/amanda/chg-null
325%attr(755,root,root) %{_libdir}/amanda/chg-rait
326%attr(755,root,root) %{_libdir}/amanda/chg-rth
327%attr(755,root,root) %{_libdir}/amanda/chg-scsi
328%attr(755,root,root) %{_libdir}/amanda/chg-zd-mtx
329%attr(755,root,root) %{_libdir}/amanda/chunker
330%attr(755,root,root) %{_libdir}/amanda/driver
331%attr(4750,root,amanda) %{_libdir}/amanda/dumper
332%attr(4750,root,amanda) %{_libdir}/amanda/planner
333%attr(755,root,root) %{_libdir}/amanda/taper
334
335%attr(755,root,root) %{_sbindir}/amadmin
336%attr(755,root,root) %{_sbindir}/amaespipe
337%attr(4750,root,amanda) %{_sbindir}/amcheck
338%attr(755,root,root) %{_sbindir}/amcheckdb
339%attr(755,root,root) %{_sbindir}/amcleanup
340%attr(755,root,root) %{_sbindir}/amcrypt*
341%attr(755,root,root) %{_sbindir}/amdd
342%attr(755,root,root) %{_sbindir}/amdump
343%attr(755,root,root) %{_sbindir}/amfetchdump
344%attr(755,root,root) %{_sbindir}/amflush
345%attr(755,root,root) %{_sbindir}/amgetconf
346%attr(755,root,root) %{_sbindir}/amlabel
347%attr(755,root,root) %{_sbindir}/ammt
348%attr(755,root,root) %{_sbindir}/amoverview
349%attr(755,root,root) %{_sbindir}/amplot
350%attr(755,root,root) %{_sbindir}/amreport
351%attr(755,root,root) %{_sbindir}/amrestore
352%attr(755,root,root) %{_sbindir}/amrmtape
353%attr(755,root,root) %{_sbindir}/amstatus
354%attr(755,root,root) %{_sbindir}/amtape
355%attr(755,root,root) %{_sbindir}/amtapetype
356%attr(755,root,root) %{_sbindir}/amtoc
357%attr(755,root,root) %{_sbindir}/amverify
358%attr(755,root,root) %{_sbindir}/amverifyrun
359%{_mandir}/man5/amanda.conf.5*
360%{_mandir}/man8/amadmin.8*
361%{_mandir}/man8/amaespipe.8*
362%{_mandir}/man8/amanda.8*
363%{_mandir}/man8/amcheck.8*
364%{_mandir}/man8/amcheckdb.8*
365%{_mandir}/man8/amcleanup.8*
366%{_mandir}/man8/amcrypt*.8*
367%{_mandir}/man8/amdd.8*
368%{_mandir}/man8/amdump.8*
369%{_mandir}/man8/amfetchdump.8*
370%{_mandir}/man8/amflush.8*
371%{_mandir}/man8/amgetconf.8*
372%{_mandir}/man8/amlabel.8*
373%{_mandir}/man8/ammt.8*
374%{_mandir}/man8/amoverview.8*
375%{_mandir}/man8/amplot.8*
376%{_mandir}/man8/amreport.8*
377%{_mandir}/man8/amrestore.8*
378%{_mandir}/man8/amrmtape.8*
379%{_mandir}/man8/amstatus.8*
380%{_mandir}/man8/amtape.8*
381%{_mandir}/man8/amtapetype.8*
382%{_mandir}/man8/amtoc.8*
383%{_mandir}/man8/amverify.8*
384%{_mandir}/man8/amverifyrun.8*
385%endif
386
387%if %{with client}
388%files client
389%defattr(644,root,root,755)
390%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amanda
391%attr(664,root,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/amandates
392%attr(755,root,root) %{_libdir}/amanda/libamclient*.so
393%attr(755,root,root) %{_libdir}/amanda/amandad
394%attr(755,root,root) %{_libdir}/amanda/noop
395%attr(755,root,root) %{_libdir}/amanda/patch-system
396%attr(755,root,root) %{_libdir}/amanda/sendbackup
397%attr(755,root,root) %{_libdir}/amanda/sendsize
398%attr(755,root,root) %{_libdir}/amanda/versionsuffix
399%attr(4750,root,amanda) %{_libdir}/amanda/calcsize
400%attr(4750,root,amanda) %{_libdir}/amanda/killpgrp
401%attr(4750,root,amanda) %{_libdir}/amanda/rundump
402%attr(4750,root,amanda) %{_libdir}/amanda/runtar
403%attr(755,root,root) %{_libdir}/amanda/selfcheck
404%attr(755,root,root) %{_sbindir}/amoldrecover
405%attr(755,root,root) %{_sbindir}/amrecover
406%attr(770,root,amanda) %dir %{_sharedstatedir}/amanda/gnutar-lists
407%{_mandir}/man5/amanda-client.conf.5*
408%{_mandir}/man8/amrecover.8*
409%endif
410
411%files perl
412%defattr(644,root,root,755)
413%attr(755,root,root) %{_libdir}/amanda/libamglue*.so
414%dir %{perl_vendorarch}/Amanda
415%{perl_vendorarch}/Amanda/Config.pm
416%{perl_vendorarch}/Amanda/Debug.pm
417%{perl_vendorarch}/Amanda/Paths.pm
418%{perl_vendorarch}/Amanda/Types.pm
419%{perl_vendorarch}/Amanda/Util.pm
420%dir %{perl_vendorarch}/auto/Amanda
421%dir %{perl_vendorarch}/auto/Amanda/Config
422%dir %{perl_vendorarch}/auto/Amanda/Debug
423%dir %{perl_vendorarch}/auto/Amanda/Types
424%dir %{perl_vendorarch}/auto/Amanda/Util
425%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Config/*.so
426%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Debug/*.so
427%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Types/*.so
428%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Util/*.so
429
430%files perl-server
431%defattr(644,root,root,755)
432%{perl_vendorarch}/Amanda/Changer.pm
433%{perl_vendorarch}/Amanda/Cmdline.pm
434%{perl_vendorarch}/Amanda/Device.pm
435%{perl_vendorarch}/Amanda/Logfile.pm
436%{perl_vendorarch}/Amanda/Tapefile.pm
437%dir %{perl_vendorarch}/auto/Amanda/Cmdline
438%dir %{perl_vendorarch}/auto/Amanda/Device
439%dir %{perl_vendorarch}/auto/Amanda/Logfile
440%dir %{perl_vendorarch}/auto/Amanda/Tapefile
441%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Cmdline/*.so
442%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Device/*.so
443%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Logfile/*.so
444%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Tapefile/*.so
This page took 0.33815 seconds and 4 git commands to generate.