]> git.pld-linux.org Git - packages/amanda.git/blame - amanda.spec
- converted to UTF-8
[packages/amanda.git] / amanda.spec
CommitLineData
277a8aa8 1#
6f4fa4cc 2# Conditional build:
d9653125 3%bcond_without xfs # without (possible) support for xfsdump
a9736a51
JR
4%bcond_without client # without client package
5%bcond_without server # without server package
856a76de 6#
83e7acbd 7Summary: A network-capable tape backup solution
4b4f6542 8Summary(pl.UTF-8): Sieciowo zorientowany system tworzenia kopii zapasowych
83e7acbd 9Name: amanda
0b2b22ac 10Version: 2.5.1p2
d9653125 11Release: 0.8
8ae81366 12License: BSD
241d28fd 13Group: Networking/Utilities
0b2b22ac
JR
14Source0: http://dl.sourceforge.net/amanda/%{name}-%{version}.tar.gz
15# Source0-md5: 6811f8a296650a6c0f64766b6e6abbe1
b95f206b 16Source1: %{name}-srv.crontab
17Source2: %{name}.inetd
18Source3: %{name}idx.inetd
b083e9f8 19Source4: amidxtape.inetd
b95f206b 20Source5: %{name}.conf
8ae81366 21Patch0: %{name}-no_libnsl.patch
c99cbcb3
JB
22Patch1: %{name}-ac25x.patch
23Patch2: %{name}-chg-zd-mtx-sh.patch
24Patch3: %{name}-tar.patch
5dbc26fb 25URL: http://www.amanda.org/
a188c172 26BuildRequires: autoconf >= 2.53
7bb8ef98 27BuildRequires: automake
b083e9f8 28BuildRequires: dump
47d7a19a 29BuildRequires: flex
a9736a51 30BuildRequires: libxslt-progs
47d7a19a 31BuildRequires: libtool
e271841a 32BuildRequires: readline-devel >= 4.2
35efb826 33BuildRequires: rpmbuild(macros) >= 1.268
856a76de 34%{?with_xfs:BuildRequires: xfsdump}
c9fdcd61
JR
35Conflicts: shadow < 1:4.0.4.1-4
36Conflicts: pwdutils < 3.1.2-2
316f81cd 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64e6fb7c 38
ff131879 39%define _localstatedir /var/lib
b083e9f8 40%define _libexecdir %{_libdir}/amanda
41
864ae446 42%description
a895e21d 43AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
44backup system that allows the administrator of a LAN to set up a
45single master backup server to back up multiple hosts to a single
46large capacity tape drive. AMANDA uses native dump and/or GNU tar
47facilities and can back up a large number of workstations running
48multiple versions of Unix. Newer versions of AMANDA (including this
49version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
50The amanda package contains the core AMANDA programs and will need to
51be installed on both AMANDA clients and AMANDA servers. Note that you
52will have to install the amanda-client and amanda-server packages as
53well.
64e6fb7c 54
4b4f6542 55%description -l pl.UTF-8
9fa4a022 56AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
4b4f6542
JR
57zapasowych. Umożliwia administratorowi sieci tworzenie kopii z kilku
58hostów na jednej maszynie wyposażonej w pojemny dysk lub streamer.
59Nowsze wersje programu umożliwiają zabezpieczanie zasobów Microsoft
60Windows 95/98/NT/2000 przy użyciu protokołu Samba. Ten pakiet zawiera
61podstawowe pliki programu i powinien być zainstalowany zarówno na
62serwerze jak i na kliencie. Pamiętaj także o instalacji pakietów
a895e21d 63amanda-client i amanda-server!
32595315 64
e48f92a2 65%package libs
66Summary: Amanda shared libraries
4b4f6542 67Summary(pl.UTF-8): Biblioteki współdzielone pakietu amanda
e48f92a2 68Group: Networking/Utilities
0e3510b6
ER
69Requires(postun): /sbin/ldconfig
70Requires(postun): /usr/sbin/groupdel
71Requires(postun): /usr/sbin/userdel
0da854c3 72Requires(pre): /bin/id
e0651f2a 73Requires(pre): /usr/bin/chsh
934dc2b1 74Requires(pre): /usr/bin/getgid
0da854c3 75Requires(pre): /usr/sbin/groupadd
76Requires(pre): /usr/sbin/useradd
934dc2b1 77Provides: group(amanda)
78Provides: user(amanda)
e48f92a2 79
80%description libs
81Amanda shared libraries.
82
4b4f6542
JR
83%description libs -l pl.UTF-8
84Biblioteki współdzielone pakietu amanda.
e48f92a2 85
64e6fb7c 86%package client
83e7acbd 87Summary: The client side of Amanda
4b4f6542 88Summary(pl.UTF-8): Klient Amandy
83e7acbd 89Group: Networking/Utilities
2427c166 90Requires(post,postun): /sbin/ldconfig
0e3510b6
ER
91Requires: %{name}-libs = %{version}-%{release}
92Requires: rc-inetd
491e8ea2 93Conflicts: tar < 1.13
64e6fb7c 94
95%description client
a895e21d 96The Amanda-client package should be installed on any machine that will
97be backed up by AMANDA (including the server if it also needs to be
98backed up). You will also need to install the amanda package to each
ff131879 99AMANDA client. It requires at least one of dump and GNU tar installed.
64e6fb7c 100
4b4f6542
JR
101%description client -l pl.UTF-8
102Ten pakiet powinien być zainstalowany ma maszynach, z których
103zawartości będą tworzone kopie zapasowe. Wymaga zainstalowanego co
104najmniej jednego z pakietów dump i GNU tar.
32595315 105
64e6fb7c 106%package server
83e7acbd 107Summary: The server side of Amanda
4b4f6542 108Summary(pl.UTF-8): Serwer Amandy
83e7acbd 109Group: Networking/Utilities
2427c166 110Requires(post,postun): /sbin/ldconfig
0e3510b6 111Requires: %{name}-libs = %{version}-%{release}
b083e9f8 112Requires: /etc/cron.d
0e3510b6
ER
113Requires: crondaemon
114Requires: gnuplot
4af804ab
JR
115Requires: mt-st
116Requires: mtx
0e3510b6 117Requires: rc-inetd
caae9f77 118Obsoletes: amanda
64e6fb7c 119
120%description server
a895e21d 121The amanda-server package should be installed on the AMANDA server,
122the machine attached to the device (such as a tape drive) where
123backups will be written. You will also need to install the amanda
124package to the AMANDA server. And, if the server is also to be backed
125up, the server also needs to have the amanda-client package installed.
64e6fb7c 126
4b4f6542
JR
127%description server -l pl.UTF-8
128Ten pakiet powinien być zainstalowany na maszynach, na których będą
129magazynowane kopie zapasowe (lub do których podpięte są urządzenia
a895e21d 130typu streamer).
32595315 131
64e6fb7c 132%prep
133%setup -q
7bb8ef98 134%patch0 -p1
135%patch1 -p1
e271841a 136%patch2 -p1
47d7a19a 137%patch3 -p1
c99cbcb3
JB
138
139# kill libtool.m4 copy
c5076e42 140head -n 1147 acinclude.m4 > acinc.tmp
c99cbcb3 141mv -f acinc.tmp acinclude.m4
64e6fb7c 142
143%build
a4b3f4c7 144%{__libtoolize}
20e7e1cf 145%{__aclocal}
5154d365 146%{__autoconf}
5154d365 147%{__automake}
b083e9f8 148%configure \
c01c2959 149 GNUPLOT=/usr/bin/gnuplot \
67f09374
JB
150 MAILER=/bin/mail \
151 PRINT=/usr/bin/lpr \
152 DUMP=/sbin/dump \
153 RESTORE=/sbin/restore \
a9736a51
JR
154 %{?with_xfs:XFSDUMP=/sbin/xfsdump} \
155 %{?with_xfs:XFSRESTORE=/sbin/xfsrestore} \
fa26b3d0 156 --disable-static \
8ae81366 157 --enable-shared \
a9736a51
JR
158 %{!?with_server:--without-server} \
159 %{!?with_client:--without-client} \
64e6fb7c 160 --with-index-server=localhost \
fa26b3d0 161 --with-user=amanda \
162 --with-group=amanda \
fa26b3d0 163 --with-tape-device=/dev/null \
164 --with-ftape-rawdevice=/dev/null \
165 --with-changer-device=/dev/null \
166 --with-fqdn \
6fc16d00 167 --with-smbclient=%{_bindir}/smbclient \
fa26b3d0 168 --with-bsd-security \
a9736a51 169 --with-ssh-security \
fa26b3d0 170 --with-buffered-dump \
83e7acbd 171 --with-amandahosts \
66496ded 172 --with-debugging=%{_localstatedir}/amanda/debug \
ff131879 173 --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \
d519fb96 174 --with-tmpdir=/var/tmp
fa26b3d0 175
f8165eb1 176%{__make}
64e6fb7c 177
178%install
179rm -rf $RPM_BUILD_ROOT
a895e21d 180install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
c0406759 181 $RPM_BUILD_ROOT%{_localstatedir}/amanda/gnutar-lists \
182 $RPM_BUILD_ROOT%{_mandir}/man1
b083e9f8 183
15ce42ff 184%{__make} install \
b083e9f8 185 DESTDIR=$RPM_BUILD_ROOT \
fa26b3d0 186 SETUID_GROUP=`id -g`
187
b083e9f8 188install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
4b4b52b8
JR
189sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE2} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
190sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
191sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE4} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
b083e9f8 192
1a0c2171 193install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/amanda
ff131879 194install example/*.ps $RPM_BUILD_ROOT%{_localstatedir}/amanda
e7b6054e 195touch $RPM_BUILD_ROOT%{_localstatedir}/amanda/.amandahosts
ff131879
JB
196
197> $RPM_BUILD_ROOT%{_sysconfdir}/amandates
b083e9f8 198
fa26b3d0 199%clean
64e6fb7c 200rm -rf $RPM_BUILD_ROOT
201
e28e7d88
JR
202%triggerpostun libs -- %{name}-libs < 2.5.1p2-1
203echo "Adding amanda to disk and backup groups"
a9736a51 204/usr/sbin/usermod -G disk,backup amanda
e28e7d88
JR
205echo "Setting amanda shell to /bin/sh"
206/usr/bin/chsh -s /bin/sh amanda
a148ef70
JR
207if [ -f %{_localstatedir}/amanda/.amandahosts ]; then
208 echo "Fixing permissions of %{_localstatedir}/amanda/.amandahosts file"
2fcd18b8 209 chown amanda:amanda %{_localstatedir}/amanda/.amandahosts
a148ef70
JR
210 chmod 600 %{_localstatedir}/amanda/.amandahosts
211fi
611427b2 212
0da854c3 213%pre libs
edb8d306 214%groupadd -P %{name}-libs -g 80 amanda
a9736a51 215%useradd -P %{name}-libs -u 80 -G disk,backup -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda
0da854c3 216
66496ded 217%post libs -p /sbin/ldconfig
b083e9f8 218
277a8aa8
JB
219%postun libs
220/sbin/ldconfig
0da854c3 221if [ "$1" = "0" ]; then
934dc2b1 222 %userremove amanda
223 %groupremove amanda
0da854c3 224fi
225
b083e9f8 226%post client
227/sbin/ldconfig
35efb826 228%service -q rc-inetd reload
b083e9f8 229
230%postun client
231/sbin/ldconfig
35efb826
ER
232if [ "$1" = 0 ]; then
233 %service -q rc-inetd reload
47123b2c 234fi
b083e9f8 235
236%post server
237/sbin/ldconfig
35efb826 238%service -q rc-inetd reload
856a76de
JB
239if [ "$1" = "1" ]; then
240 echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
241fi
b083e9f8 242
243%postun server
244/sbin/ldconfig
35efb826
ER
245if [ "$1" = 0 ]; then
246 %service -q rc-inetd reload
47123b2c 247fi
64e6fb7c 248
e48f92a2 249%files libs
83e7acbd 250%defattr(644,root,root,755)
8ae81366 251%attr(755,root,root) %{_libdir}/libamanda*.so
5f0d47e3 252%dir %{_libexecdir}
e7b6054e 253%attr(770,root,amanda) %dir %{_localstatedir}/amanda
a9736a51 254%attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/amanda/.amandahosts
370a4eb3 255
a9736a51 256%if %{with server}
64e6fb7c 257%files server
b083e9f8 258%defattr(644,root,root,755)
c42c18c1 259%doc docs/*
a7b1b223 260%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amidxtape
261%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amandaidx
b083e9f8 262
e7b6054e 263%attr(750,root,amanda) %dir %{_sysconfdir}/amanda
264%config(noreplace) %verify(not md5 mtime size) %attr(640,root,amanda) %{_sysconfdir}/amanda/*
b083e9f8 265
e7b6054e 266%attr(664,root,amanda) %{_localstatedir}/amanda/*.ps
b083e9f8 267
a04af4fe 268%config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv
b083e9f8 269
8ae81366 270%attr(755,root,root) %{_libdir}/libamserver*.so
5e5c6257
JR
271%attr(755,root,root) %{_libdir}/libamtape*.so
272%attr(755,root,root) %{_libdir}/librestore*.so
273
8ae81366 274%attr(755,root,root) %{_libexecdir}/amcat.awk
275%attr(755,root,root) %{_libexecdir}/amcleanupdisk
276%attr(755,root,root) %{_libexecdir}/amidxtaped
5e5c6257 277%attr(755,root,root) %{_libexecdir}/amindexd
8ae81366 278%attr(755,root,root) %{_libexecdir}/amlogroll
279%attr(755,root,root) %{_libexecdir}/amplot.awk
280%attr(755,root,root) %{_libexecdir}/amplot.g
281%attr(755,root,root) %{_libexecdir}/amplot.gp
5e5c6257 282%attr(755,root,root) %{_libexecdir}/amtrmidx
8ae81366 283%attr(755,root,root) %{_libexecdir}/amtrmlog
b083e9f8 284%attr(755,root,root) %{_libexecdir}/chg-chio
8ae81366 285%attr(755,root,root) %{_libexecdir}/chg-chs
c99cbcb3
JB
286%attr(755,root,root) %{_libexecdir}/chg-disk
287%attr(755,root,root) %{_libexecdir}/chg-iomega
eb87556b 288%attr(755,root,root) %{_libexecdir}/chg-juke
b083e9f8 289%attr(755,root,root) %{_libexecdir}/chg-manual
c99cbcb3 290%attr(755,root,root) %{_libexecdir}/chg-mcutil
b083e9f8 291%attr(755,root,root) %{_libexecdir}/chg-mtx
8ae81366 292%attr(755,root,root) %{_libexecdir}/chg-multi
c99cbcb3 293%attr(755,root,root) %{_libexecdir}/chg-null
eb87556b 294%attr(755,root,root) %{_libexecdir}/chg-rait
b083e9f8 295%attr(755,root,root) %{_libexecdir}/chg-rth
8ae81366 296%attr(755,root,root) %{_libexecdir}/chg-scsi
297%attr(755,root,root) %{_libexecdir}/chg-zd-mtx
5e5c6257
JR
298%attr(755,root,root) %{_libexecdir}/chunker
299%attr(755,root,root) %{_libexecdir}/driver
300%attr(4754,root,amanda) %{_libexecdir}/dumper
301%attr(4754,root,amanda) %{_libexecdir}/planner
8ae81366 302%attr(755,root,root) %{_libexecdir}/taper
5e5c6257 303
b083e9f8 304%attr(755,root,root) %{_sbindir}/amadmin
5e5c6257 305%attr(755,root,root) %{_sbindir}/amaespipe
7bb8ef98 306%attr(4754,root,amanda) %{_sbindir}/amcheck
b083e9f8 307%attr(755,root,root) %{_sbindir}/amcheckdb
308%attr(755,root,root) %{_sbindir}/amcleanup
5e5c6257
JR
309%attr(755,root,root) %{_sbindir}/amcrypt*
310%attr(755,root,root) %{_sbindir}/amdd
b083e9f8 311%attr(755,root,root) %{_sbindir}/amdump
5e5c6257 312%attr(755,root,root) %{_sbindir}/amfetchdump
8ae81366 313%attr(755,root,root) %{_sbindir}/amflush
314%attr(755,root,root) %{_sbindir}/amgetconf
315%attr(755,root,root) %{_sbindir}/amlabel
5e5c6257 316%attr(755,root,root) %{_sbindir}/ammt
b083e9f8 317%attr(755,root,root) %{_sbindir}/amoverview
8ae81366 318%attr(755,root,root) %{_sbindir}/amplot
b083e9f8 319%attr(755,root,root) %{_sbindir}/amreport
5e5c6257 320%attr(755,root,root) %{_sbindir}/amrestore
eb87556b 321%attr(755,root,root) %{_sbindir}/amrmtape
b083e9f8 322%attr(755,root,root) %{_sbindir}/amstatus
8ae81366 323%attr(755,root,root) %{_sbindir}/amtape
eb87556b 324%attr(755,root,root) %{_sbindir}/amtapetype
8ae81366 325%attr(755,root,root) %{_sbindir}/amtoc
326%attr(755,root,root) %{_sbindir}/amverify
eb87556b 327%attr(755,root,root) %{_sbindir}/amverifyrun
5e5c6257 328%{_mandir}/man5/amanda.conf.5*
a72f9c08 329%{_mandir}/man8/amadmin.8*
5e5c6257 330%{_mandir}/man8/amaespipe.8*
a72f9c08 331%{_mandir}/man8/amanda.8*
332%{_mandir}/man8/amcheck.8*
a188c172 333%{_mandir}/man8/amcheckdb.8*
a72f9c08 334%{_mandir}/man8/amcleanup.8*
5e5c6257
JR
335%{_mandir}/man8/amcrypt*.8*
336%{_mandir}/man8/amdd.8*
a72f9c08 337%{_mandir}/man8/amdump.8*
5e5c6257 338%{_mandir}/man8/amfetchdump.8*
a72f9c08 339%{_mandir}/man8/amflush.8*
a188c172 340%{_mandir}/man8/amgetconf.8*
a72f9c08 341%{_mandir}/man8/amlabel.8*
5e5c6257 342%{_mandir}/man8/ammt.8*
a188c172 343%{_mandir}/man8/amoverview.8*
a72f9c08 344%{_mandir}/man8/amplot.8*
345%{_mandir}/man8/amreport.8*
5e5c6257 346%{_mandir}/man8/amrestore.8*
a188c172 347%{_mandir}/man8/amrmtape.8*
a72f9c08 348%{_mandir}/man8/amstatus.8*
a188c172 349%{_mandir}/man8/amtape.8*
eb87556b 350%{_mandir}/man8/amtapetype.8*
a188c172
JB
351%{_mandir}/man8/amtoc.8*
352%{_mandir}/man8/amverify.8*
eb87556b 353%{_mandir}/man8/amverifyrun.8*
a9736a51 354%endif
64e6fb7c 355
a9736a51 356%if %{with client}
64e6fb7c 357%files client
b083e9f8 358%defattr(644,root,root,755)
a7b1b223 359%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amanda
28099f06 360%attr(664,root,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/amandates
8ae81366 361%attr(755,root,root) %{_libdir}/libamclient*.so
b083e9f8 362%attr(755,root,root) %{_libexecdir}/amandad
5e5c6257
JR
363%attr(755,root,root) %{_libexecdir}/noop
364%attr(755,root,root) %{_libexecdir}/patch-system
365%attr(755,root,root) %{_libexecdir}/sendbackup
366%attr(755,root,root) %{_libexecdir}/sendsize
367%attr(755,root,root) %{_libexecdir}/versionsuffix
354ce508 368%attr(4754,root,amanda) %{_libexecdir}/calcsize
73d9be9d 369%attr(4754,root,amanda) %{_libexecdir}/killpgrp
7a7fb145 370%attr(4754,root,amanda) %{_libexecdir}/rundump
354ce508 371%attr(4754,root,amanda) %{_libexecdir}/runtar
372%attr(4754,root,amanda) %{_libexecdir}/selfcheck
5e5c6257 373%attr(755,root,root) %{_sbindir}/amoldrecover
b083e9f8 374%attr(755,root,root) %{_sbindir}/amrecover
e7b6054e 375%attr(770,root,amanda) %dir %{_localstatedir}/amanda/gnutar-lists
5e5c6257 376%{_mandir}/man5/amanda-client.conf.5*
a72f9c08 377%{_mandir}/man8/amrecover.8*
a9736a51 378%endif
This page took 0.104726 seconds and 4 git commands to generate.