]> git.pld-linux.org Git - packages/amanda.git/blame - amanda.spec
- more bashizm fixed
[packages/amanda.git] / amanda.spec
CommitLineData
277a8aa8 1#
6f4fa4cc 2# Conditional build:
d9653125 3%bcond_without xfs # without (possible) support for xfsdump
7ba1ec44 4%bcond_without samba # without smbclient support
a9736a51
JR
5%bcond_without client # without client package
6%bcond_without server # without server package
856a76de 7#
83e7acbd 8Summary: A network-capable tape backup solution
9720936a 9Summary(pl.UTF-8): Sieciowo zorientowany system tworzenia kopii zapasowych
83e7acbd 10Name: amanda
c8cba693 11Version: 2.6.0
c3701baf 12Release: 3
8ae81366 13License: BSD
241d28fd 14Group: Networking/Utilities
0b2b22ac 15Source0: http://dl.sourceforge.net/amanda/%{name}-%{version}.tar.gz
c8cba693 16# Source0-md5: c347c1e573c33018f234750ac6435156
b95f206b 17Source1: %{name}-srv.crontab
18Source2: %{name}.inetd
19Source3: %{name}idx.inetd
b083e9f8 20Source4: amidxtape.inetd
8ae81366 21Patch0: %{name}-no_libnsl.patch
c8cba693
JR
22Patch1: %{name}-chg-zd-mtx-sh.patch
23Patch2: %{name}-tar.patch
24Patch3: %{name}-bashizm.patch
05b023d3 25Patch4: %{name}-as_needed.patch
d4c615c9
JR
26Patch5: %{name}-tapetypes.patch
27Patch6: %{name}-FHS.patch
7d023072 28Patch7: %{name}-no-buildtime-ipv6.patch
e3dd0b48 29Patch8: %{name}-heimdal.patch
5dbc26fb 30URL: http://www.amanda.org/
a188c172 31BuildRequires: autoconf >= 2.53
7bb8ef98 32BuildRequires: automake
106e7764 33BuildRequires: curl-devel >= 7.10.0
b083e9f8 34BuildRequires: dump
47d7a19a 35BuildRequires: flex
c8cba693
JR
36BuildRequires: glib2-devel
37# curl is broken, see curl-config --libs
38BuildRequires: keyutils-devel
eba98501 39BuildRequires: krb5-devel >= 1.6-4
47d7a19a 40BuildRequires: libtool
c8cba693
JR
41BuildRequires: libxslt-progs
42BuildRequires: ncurses-devel
43BuildRequires: openssh-clients
44BuildRequires: openssl-devel
106e7764 45BuildRequires: perl-devel >= 5.6.0
4b36a6fa 46BuildRequires: pkgconfig
e271841a 47BuildRequires: readline-devel >= 4.2
35efb826 48BuildRequires: rpmbuild(macros) >= 1.268
7ba1ec44 49%{?with_samba:BuildRequires: samba-client}
c8cba693 50BuildRequires: swig
856a76de 51%{?with_xfs:BuildRequires: xfsdump}
c9fdcd61
JR
52Conflicts: shadow < 1:4.0.4.1-4
53Conflicts: pwdutils < 3.1.2-2
316f81cd 54BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64e6fb7c 55
aa667a14
JR
56%define _ulibdir %{_prefix}/lib
57
864ae446 58%description
a895e21d 59AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
60backup system that allows the administrator of a LAN to set up a
61single master backup server to back up multiple hosts to a single
62large capacity tape drive. AMANDA uses native dump and/or GNU tar
63facilities and can back up a large number of workstations running
64multiple versions of Unix. Newer versions of AMANDA (including this
65version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
66The amanda package contains the core AMANDA programs and will need to
67be installed on both AMANDA clients and AMANDA servers. Note that you
68will have to install the amanda-client and amanda-server packages as
69well.
64e6fb7c 70
4b4f6542 71%description -l pl.UTF-8
9fa4a022 72AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
4b4f6542
JR
73zapasowych. Umożliwia administratorowi sieci tworzenie kopii z kilku
74hostów na jednej maszynie wyposażonej w pojemny dysk lub streamer.
75Nowsze wersje programu umożliwiają zabezpieczanie zasobów Microsoft
76Windows 95/98/NT/2000 przy użyciu protokołu Samba. Ten pakiet zawiera
77podstawowe pliki programu i powinien być zainstalowany zarówno na
78serwerze jak i na kliencie. Pamiętaj także o instalacji pakietów
a895e21d 79amanda-client i amanda-server!
32595315 80
e48f92a2 81%package libs
82Summary: Amanda shared libraries
9720936a 83Summary(pl.UTF-8): Biblioteki współdzielone pakietu amanda
e48f92a2 84Group: Networking/Utilities
0e3510b6
ER
85Requires(postun): /usr/sbin/groupdel
86Requires(postun): /usr/sbin/userdel
0da854c3 87Requires(pre): /bin/id
e0651f2a 88Requires(pre): /usr/bin/chsh
934dc2b1 89Requires(pre): /usr/bin/getgid
0da854c3 90Requires(pre): /usr/sbin/groupadd
91Requires(pre): /usr/sbin/useradd
934dc2b1 92Provides: group(amanda)
93Provides: user(amanda)
e48f92a2 94
95%description libs
96Amanda shared libraries.
97
4b4f6542
JR
98%description libs -l pl.UTF-8
99Biblioteki współdzielone pakietu amanda.
e48f92a2 100
64e6fb7c 101%package client
83e7acbd 102Summary: The client side of Amanda
9720936a 103Summary(pl.UTF-8): Klient Amandy
83e7acbd 104Group: Networking/Utilities
aa667a14
JR
105Requires(post): /bin/hostname
106Requires(post): /usr/bin/ssh-keygen
0e3510b6
ER
107Requires: %{name}-libs = %{version}-%{release}
108Requires: rc-inetd
106e7764
JR
109Suggests: openssh-clients
110Suggests: openssh-server
111Suggests: tar
112Suggests: gzip
113Suggests: star
114Conflicts: tar < 1.15
64e6fb7c 115
116%description client
a895e21d 117The Amanda-client package should be installed on any machine that will
118be backed up by AMANDA (including the server if it also needs to be
119backed up). You will also need to install the amanda package to each
ff131879 120AMANDA client. It requires at least one of dump and GNU tar installed.
64e6fb7c 121
4b4f6542
JR
122%description client -l pl.UTF-8
123Ten pakiet powinien być zainstalowany ma maszynach, z których
124zawartości będą tworzone kopie zapasowe. Wymaga zainstalowanego co
125najmniej jednego z pakietów dump i GNU tar.
32595315 126
64e6fb7c 127%package server
83e7acbd 128Summary: The server side of Amanda
9720936a 129Summary(pl.UTF-8): Serwer Amandy
83e7acbd 130Group: Networking/Utilities
aa667a14
JR
131Requires(post): /bin/hostname
132Requires(post): /usr/bin/ssh-keygen
0e3510b6 133Requires: %{name}-libs = %{version}-%{release}
b083e9f8 134Requires: /etc/cron.d
0e3510b6
ER
135Requires: crondaemon
136Requires: gnuplot
4af804ab
JR
137Requires: mt-st
138Requires: mtx
0e3510b6 139Requires: rc-inetd
106e7764
JR
140Suggests: openssh-clients
141Suggests: openssh-server
caae9f77 142Obsoletes: amanda
64e6fb7c 143
144%description server
a895e21d 145The amanda-server package should be installed on the AMANDA server,
146the machine attached to the device (such as a tape drive) where
147backups will be written. You will also need to install the amanda
148package to the AMANDA server. And, if the server is also to be backed
149up, the server also needs to have the amanda-client package installed.
64e6fb7c 150
4b4f6542
JR
151%description server -l pl.UTF-8
152Ten pakiet powinien być zainstalowany na maszynach, na których będą
153magazynowane kopie zapasowe (lub do których podpięte są urządzenia
a895e21d 154typu streamer).
32595315 155
c8cba693 156%package perl
5c0ffaf3
JR
157Summary: Perl bindings for amanda
158Summary(pl.UTF-8): Wiązania perla dla Amandy
c8cba693
JR
159Group: Networking/Utilities
160Requires: %{name}-libs = %{version}-%{release}
161
162%description perl
5c0ffaf3 163Perl bindings for amanda.
c8cba693
JR
164
165%description perl -l pl.UTF-8
5c0ffaf3 166Wiązania perla dla Amandy.
c8cba693
JR
167
168%package perl-server
5c0ffaf3
JR
169Summary: Perl bindings for amanda server
170Summary(pl.UTF-8): Wiązania perla dla serwera Amandy
c8cba693
JR
171Group: Networking/Utilities
172Requires: %{name}-perl = %{version}-%{release}
173Requires: %{name}-server = %{version}-%{release}
174
175%description perl-server
5c0ffaf3 176Perl bindings for amanda server.
c8cba693
JR
177
178%description perl-server -l pl.UTF-8
5c0ffaf3 179Wiązania perla dla serwera Amandy.
c8cba693 180
64e6fb7c 181%prep
182%setup -q
7bb8ef98 183%patch0 -p1
184%patch1 -p1
c8cba693 185%patch2 -p1
47d7a19a 186%patch3 -p1
05b023d3 187%patch4 -p1
d4c615c9
JR
188%patch5 -p1
189%patch6 -p1
7d023072 190%patch7 -p1
e3dd0b48 191%patch8 -p1
64e6fb7c 192
193%build
a4b3f4c7 194%{__libtoolize}
c8cba693 195%{__aclocal} -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive
5154d365 196%{__autoconf}
5154d365 197%{__automake}
b083e9f8 198%configure \
5c0ffaf3 199 DUMP=/sbin/dump \
c01c2959 200 GNUPLOT=/usr/bin/gnuplot \
5c0ffaf3 201 GZIP=/bin/gzip \
67f09374 202 MAILER=/bin/mail \
5c0ffaf3
JR
203 MT=/bin/mt \
204 MTX=/usr/sbin/mtx \
67f09374 205 PRINT=/usr/bin/lpr \
67f09374 206 RESTORE=/sbin/restore \
5c0ffaf3 207 STAR=/usr/bin/star \
a9736a51
JR
208 %{?with_xfs:XFSDUMP=/sbin/xfsdump} \
209 %{?with_xfs:XFSRESTORE=/sbin/xfsrestore} \
fa26b3d0 210 --disable-static \
8ae81366 211 --enable-shared \
a9736a51
JR
212 %{!?with_server:--without-server} \
213 %{!?with_client:--without-client} \
64e6fb7c 214 --with-index-server=localhost \
fa26b3d0 215 --with-user=amanda \
216 --with-group=amanda \
fa26b3d0 217 --with-tape-device=/dev/null \
218 --with-ftape-rawdevice=/dev/null \
219 --with-changer-device=/dev/null \
220 --with-fqdn \
7ba1ec44 221 %{?with_samba:--with-smbclient=%{_bindir}/smbclient} \
fa26b3d0 222 --with-bsd-security \
a9736a51 223 --with-ssh-security \
b2b905b0
JR
224 --with-krb5-security \
225 --without-krb4-security \
fa26b3d0 226 --with-buffered-dump \
83e7acbd 227 --with-amandahosts \
d4c615c9 228 --with-configdir=%{_sysconfdir}/amanda \
c8f2ee48 229 --with-gnutar-listdir=%{_sharedstatedir}/amanda/gnutar-lists \
c8cba693
JR
230 --with-amandates=%{_sharedstatedir}/amanda/amandates \
231 --with-debugging=%{_sharedstatedir}/amanda/debug \
232 --with-tmpdir=/var/tmp \
233 --with-amperldir=%{perl_vendorarch} \
7d023072 234 --with-ipv6 \
c8cba693 235 --disable-installperms
fa26b3d0 236
f8165eb1 237%{__make}
64e6fb7c 238
239%install
240rm -rf $RPM_BUILD_ROOT
a895e21d 241install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
106e7764 242 $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/{.gnupg,.ssh,gnutar-lists} \
5c0ffaf3 243 $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/debug/{amandad,client,server}
b083e9f8 244
15ce42ff 245%{__make} install \
c8cba693 246 DESTDIR=$RPM_BUILD_ROOT
fa26b3d0 247
b083e9f8 248install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
4b4b52b8
JR
249sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE2} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
250sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
251sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE4} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
b083e9f8 252
c8cba693 253install example/amanda.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
5c0ffaf3 254install example/amanda-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
c8cba693 255touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.amandahosts
ff131879 256
106e7764
JR
257touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/{,client_}authorized_keys
258touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amdump{,.pub}
259touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover{,.pub}
260
c8cba693
JR
261> $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/amandates
262
aa667a14
JR
263# Amanda tools generate ssh keys with embeded commands pointing to /usr/lib
264# Tools can't be "fixed" because keys generated on server are to be used on client
265if [ "%{_lib}" != "lib" ] ; then
266 install -d $RPM_BUILD_ROOT%{_ulibdir}
267 ln -s %{_libdir}/amanda $RPM_BUILD_ROOT%{_ulibdir}/amanda
268fi
269
c8cba693 270find $RPM_BUILD_ROOT -name \*.la | xargs rm -f
b083e9f8 271
fa26b3d0 272%clean
64e6fb7c 273rm -rf $RPM_BUILD_ROOT
274
e28e7d88
JR
275%triggerpostun libs -- %{name}-libs < 2.5.1p2-1
276echo "Adding amanda to disk and backup groups"
a9736a51 277/usr/sbin/usermod -G disk,backup amanda
e28e7d88
JR
278echo "Setting amanda shell to /bin/sh"
279/usr/bin/chsh -s /bin/sh amanda
c8cba693
JR
280if [ -f %{_sharedstatedir}/amanda/.amandahosts ]; then
281 echo "Fixing permissions of %{_sharedstatedir}/amanda/.amandahosts file"
282 chown amanda:amanda %{_sharedstatedir}/amanda/.amandahosts
283 chmod 600 %{_sharedstatedir}/amanda/.amandahosts
a148ef70 284fi
611427b2 285
0da854c3 286%pre libs
edb8d306 287%groupadd -P %{name}-libs -g 80 amanda
a9736a51 288%useradd -P %{name}-libs -u 80 -G disk,backup -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda
0da854c3 289
277a8aa8 290%postun libs
0da854c3 291if [ "$1" = "0" ]; then
934dc2b1 292 %userremove amanda
293 %groupremove amanda
0da854c3 294fi
295
b083e9f8 296%post client
35efb826 297%service -q rc-inetd reload
aa667a14
JR
298if [ ! -e /var/lib/amanda/.ssh/id_rsa_amrecover ] ; then
299 HOST="`/bin/hostname`"
c3701baf 300 FQDNHOST="`/bin/hostname -f`"
106e7764
JR
301 if [ -z "$HOST" ] ; then
302 COMMENT="root@client"
303 else
304 COMMENT="root@$HOST"
305 fi
306 /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amrecover -N "" || :
307 chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || :
308 chmod 600 /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || :
c3701baf
JR
309 if [ -n "$FQDNHOST" ]; then
310 echo -n "from=\"$FQDNHOST\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command=\"%{_ulibdir}/amanda/amandad -auth=ssh amindexd amidxtaped\" " >/var/lib/amanda/.ssh/server_authorized_keys
311 cat /var/lib/amanda/.ssh/id_rsa_amrecover.pub >>/var/lib/amanda/.ssh/server_authorized_keys
312
313 echo "Remember to copy the contents of /var/lib/amanda/.ssh/server_authorized_keys to"
314 echo "/var/lib/amanda/.ssh/authorized_keys on amanda server"
315 fi
106e7764 316fi
b083e9f8 317
318%postun client
35efb826
ER
319if [ "$1" = 0 ]; then
320 %service -q rc-inetd reload
47123b2c 321fi
b083e9f8 322
323%post server
35efb826 324%service -q rc-inetd reload
aa667a14
JR
325if [ ! -e /var/lib/amanda/.ssh/id_rsa_amdump ] ; then
326 HOST="`/bin/hostname`"
106e7764
JR
327 if [ -z "$HOST" ] ; then
328 COMMENT="amanda@server"
329 else
330 COMMENT="amanda@$HOST"
331 fi
332 /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amdump -N "" || :
333 chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || :
334 chmod 600 /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || :
335fi
856a76de
JB
336if [ "$1" = "1" ]; then
337 echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
338fi
b083e9f8 339
340%postun server
35efb826
ER
341if [ "$1" = 0 ]; then
342 %service -q rc-inetd reload
47123b2c 343fi
64e6fb7c 344
e48f92a2 345%files libs
83e7acbd 346%defattr(644,root,root,755)
c8cba693
JR
347%doc AUTHORS COPYRIGHT ChangeLog NEWS README ReleaseNotes UPGRADING
348%attr(755,root,root) %{_libdir}/amanda/libamanda*.so
f85baaef 349%attr(750,amanda,amanda) %dir %{_sysconfdir}/amanda
c8cba693 350%dir %{_libdir}/amanda
aa667a14
JR
351%if %{_lib} != "lib"
352%{_ulibdir}/amanda
353%endif
d4c615c9 354%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda
106e7764
JR
355%attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.ssh
356%attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.gnupg
d4c615c9
JR
357%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug
358%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/amandad
c8cba693 359%attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.amandahosts
411e3665
JR
360# Commented out so it won't get removed on uninstall
361#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/authorized_keys
370a4eb3 362
a9736a51 363%if %{with server}
64e6fb7c 364%files server
b083e9f8 365%defattr(644,root,root,755)
a7b1b223 366%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amidxtape
367%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amandaidx
b083e9f8 368
d4c615c9 369%config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/amanda.conf
b083e9f8 370
411e3665
JR
371# Commented out so it won't get removed on uninstall
372#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/client_authorized_keys
373#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amdump*
106e7764 374
d4c615c9
JR
375%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/example
376%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/example/label-templates
377%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/template.d
378%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/server
379%attr(640,amanda,amanda) %{_sharedstatedir}/amanda/example/*amanda*
380%attr(640,amanda,amanda) %{_sharedstatedir}/amanda/example/label-templates/*.ps
381%attr(640,amanda,amanda) %{_sharedstatedir}/amanda/template.d/*
b083e9f8 382
a04af4fe 383%config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv
b083e9f8 384
c8cba693
JR
385%attr(755,root,root) %{_libdir}/amanda/libamdevice*.so
386%attr(755,root,root) %{_libdir}/amanda/libamserver*.so
387%attr(755,root,root) %{_libdir}/amanda/libamtape*.so
388%attr(755,root,root) %{_libdir}/amanda/librestore*.so
389
5c0ffaf3 390%{_libdir}/amanda/amanda-sh-lib.sh
c8cba693
JR
391%attr(755,root,root) %{_libdir}/amanda/amcat.awk
392%attr(755,root,root) %{_libdir}/amanda/amcleanupdisk
393%attr(755,root,root) %{_libdir}/amanda/amidxtaped
394%attr(755,root,root) %{_libdir}/amanda/amindexd
395%attr(755,root,root) %{_libdir}/amanda/amlogroll
396%attr(755,root,root) %{_libdir}/amanda/amplot.awk
397%attr(755,root,root) %{_libdir}/amanda/amplot.g
398%attr(755,root,root) %{_libdir}/amanda/amplot.gp
399%attr(755,root,root) %{_libdir}/amanda/amtrmidx
400%attr(755,root,root) %{_libdir}/amanda/amtrmlog
401%attr(755,root,root) %{_libdir}/amanda/chg-chio
402%attr(755,root,root) %{_libdir}/amanda/chg-chs
403%attr(755,root,root) %{_libdir}/amanda/chg-disk
404%attr(755,root,root) %{_libdir}/amanda/chg-iomega
405%attr(755,root,root) %{_libdir}/amanda/chg-juke
406%attr(755,root,root) %{_libdir}/amanda/chg-lib.sh
407%attr(755,root,root) %{_libdir}/amanda/chg-manual
408%attr(755,root,root) %{_libdir}/amanda/chg-mcutil
409%attr(755,root,root) %{_libdir}/amanda/chg-mtx
410%attr(755,root,root) %{_libdir}/amanda/chg-multi
411%attr(755,root,root) %{_libdir}/amanda/chg-null
412%attr(755,root,root) %{_libdir}/amanda/chg-rait
413%attr(755,root,root) %{_libdir}/amanda/chg-rth
414%attr(755,root,root) %{_libdir}/amanda/chg-scsi
415%attr(755,root,root) %{_libdir}/amanda/chg-zd-mtx
416%attr(755,root,root) %{_libdir}/amanda/chunker
417%attr(755,root,root) %{_libdir}/amanda/driver
418%attr(4750,root,amanda) %{_libdir}/amanda/dumper
5c0ffaf3 419%attr(755,root,root) %{_libdir}/amanda/patch-system
c8cba693
JR
420%attr(4750,root,amanda) %{_libdir}/amanda/planner
421%attr(755,root,root) %{_libdir}/amanda/taper
5e5c6257 422
5c0ffaf3 423%attr(755,root,root) %{_sbindir}/amaddclient
b083e9f8 424%attr(755,root,root) %{_sbindir}/amadmin
5e5c6257 425%attr(755,root,root) %{_sbindir}/amaespipe
c8cba693 426%attr(4750,root,amanda) %{_sbindir}/amcheck
b083e9f8 427%attr(755,root,root) %{_sbindir}/amcheckdb
5c0ffaf3 428%attr(755,root,root) %{_sbindir}/amcheckdump
b083e9f8 429%attr(755,root,root) %{_sbindir}/amcleanup
5e5c6257
JR
430%attr(755,root,root) %{_sbindir}/amcrypt*
431%attr(755,root,root) %{_sbindir}/amdd
5c0ffaf3 432%attr(755,root,root) %{_sbindir}/amdevcheck
b083e9f8 433%attr(755,root,root) %{_sbindir}/amdump
5e5c6257 434%attr(755,root,root) %{_sbindir}/amfetchdump
8ae81366 435%attr(755,root,root) %{_sbindir}/amflush
436%attr(755,root,root) %{_sbindir}/amgetconf
5c0ffaf3 437%attr(755,root,root) %{_sbindir}/amgpgcrypt
8ae81366 438%attr(755,root,root) %{_sbindir}/amlabel
5e5c6257 439%attr(755,root,root) %{_sbindir}/ammt
b083e9f8 440%attr(755,root,root) %{_sbindir}/amoverview
8ae81366 441%attr(755,root,root) %{_sbindir}/amplot
b083e9f8 442%attr(755,root,root) %{_sbindir}/amreport
5e5c6257 443%attr(755,root,root) %{_sbindir}/amrestore
eb87556b 444%attr(755,root,root) %{_sbindir}/amrmtape
5c0ffaf3 445%attr(755,root,root) %{_sbindir}/amserverconfig
b083e9f8 446%attr(755,root,root) %{_sbindir}/amstatus
8ae81366 447%attr(755,root,root) %{_sbindir}/amtape
eb87556b 448%attr(755,root,root) %{_sbindir}/amtapetype
8ae81366 449%attr(755,root,root) %{_sbindir}/amtoc
450%attr(755,root,root) %{_sbindir}/amverify
eb87556b 451%attr(755,root,root) %{_sbindir}/amverifyrun
5e5c6257 452%{_mandir}/man5/amanda.conf.5*
5c0ffaf3 453%{_mandir}/man8/amaddclient.8*
a72f9c08 454%{_mandir}/man8/amadmin.8*
5e5c6257 455%{_mandir}/man8/amaespipe.8*
a72f9c08 456%{_mandir}/man8/amanda.8*
457%{_mandir}/man8/amcheck.8*
a188c172 458%{_mandir}/man8/amcheckdb.8*
5c0ffaf3 459%{_mandir}/man8/amcheckdump.8*
a72f9c08 460%{_mandir}/man8/amcleanup.8*
5e5c6257
JR
461%{_mandir}/man8/amcrypt*.8*
462%{_mandir}/man8/amdd.8*
5c0ffaf3 463%{_mandir}/man8/amdevcheck.8*
a72f9c08 464%{_mandir}/man8/amdump.8*
5e5c6257 465%{_mandir}/man8/amfetchdump.8*
a72f9c08 466%{_mandir}/man8/amflush.8*
a188c172 467%{_mandir}/man8/amgetconf.8*
5c0ffaf3 468%{_mandir}/man8/amgpgcrypt.8*
a72f9c08 469%{_mandir}/man8/amlabel.8*
5e5c6257 470%{_mandir}/man8/ammt.8*
a188c172 471%{_mandir}/man8/amoverview.8*
a72f9c08 472%{_mandir}/man8/amplot.8*
473%{_mandir}/man8/amreport.8*
5e5c6257 474%{_mandir}/man8/amrestore.8*
a188c172 475%{_mandir}/man8/amrmtape.8*
5c0ffaf3 476%{_mandir}/man8/amserverconfig.8*
a72f9c08 477%{_mandir}/man8/amstatus.8*
a188c172 478%{_mandir}/man8/amtape.8*
eb87556b 479%{_mandir}/man8/amtapetype.8*
a188c172
JB
480%{_mandir}/man8/amtoc.8*
481%{_mandir}/man8/amverify.8*
eb87556b 482%{_mandir}/man8/amverifyrun.8*
a9736a51 483%endif
64e6fb7c 484
a9736a51 485%if %{with client}
64e6fb7c 486%files client
b083e9f8 487%defattr(644,root,root,755)
a7b1b223 488%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amanda
5c0ffaf3 489%config(noreplace) %verify(not md5 mtime size) %attr(640,root,amanda) %{_sysconfdir}/amanda/amanda-client.conf
411e3665
JR
490# Commented out so it won't get removed on uninstall
491#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover*
d4c615c9 492%attr(640,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/amandates
8e94b37c
JR
493
494%dir %{_libdir}/amanda/application
495%attr(755,root,root) %{_libdir}/amanda/application/amgtar
496%attr(644,root,root) %{_libdir}/amanda/application/generic-dumper
497
c8cba693
JR
498%attr(755,root,root) %{_libdir}/amanda/libamclient*.so
499%attr(755,root,root) %{_libdir}/amanda/amandad
500%attr(755,root,root) %{_libdir}/amanda/noop
c8cba693
JR
501%attr(755,root,root) %{_libdir}/amanda/sendbackup
502%attr(755,root,root) %{_libdir}/amanda/sendsize
503%attr(755,root,root) %{_libdir}/amanda/versionsuffix
504%attr(4750,root,amanda) %{_libdir}/amanda/calcsize
505%attr(4750,root,amanda) %{_libdir}/amanda/killpgrp
506%attr(4750,root,amanda) %{_libdir}/amanda/rundump
507%attr(4750,root,amanda) %{_libdir}/amanda/runtar
508%attr(755,root,root) %{_libdir}/amanda/selfcheck
5e5c6257 509%attr(755,root,root) %{_sbindir}/amoldrecover
b083e9f8 510%attr(755,root,root) %{_sbindir}/amrecover
d4c615c9
JR
511%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/gnutar-lists
512%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/client
5e5c6257 513%{_mandir}/man5/amanda-client.conf.5*
a72f9c08 514%{_mandir}/man8/amrecover.8*
a9736a51 515%endif
c8cba693
JR
516
517%files perl
518%defattr(644,root,root,755)
519%attr(755,root,root) %{_libdir}/amanda/libamglue*.so
520%dir %{perl_vendorarch}/Amanda
521%{perl_vendorarch}/Amanda/Config.pm
522%{perl_vendorarch}/Amanda/Debug.pm
523%{perl_vendorarch}/Amanda/Paths.pm
524%{perl_vendorarch}/Amanda/Types.pm
525%{perl_vendorarch}/Amanda/Util.pm
526%dir %{perl_vendorarch}/auto/Amanda
527%dir %{perl_vendorarch}/auto/Amanda/Config
528%dir %{perl_vendorarch}/auto/Amanda/Debug
529%dir %{perl_vendorarch}/auto/Amanda/Types
530%dir %{perl_vendorarch}/auto/Amanda/Util
531%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Config/*.so
532%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Debug/*.so
533%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Types/*.so
534%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Util/*.so
535
536%files perl-server
537%defattr(644,root,root,755)
538%{perl_vendorarch}/Amanda/Changer.pm
539%{perl_vendorarch}/Amanda/Cmdline.pm
540%{perl_vendorarch}/Amanda/Device.pm
541%{perl_vendorarch}/Amanda/Logfile.pm
542%{perl_vendorarch}/Amanda/Tapefile.pm
543%dir %{perl_vendorarch}/auto/Amanda/Cmdline
544%dir %{perl_vendorarch}/auto/Amanda/Device
545%dir %{perl_vendorarch}/auto/Amanda/Logfile
546%dir %{perl_vendorarch}/auto/Amanda/Tapefile
547%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Cmdline/*.so
548%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Device/*.so
549%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Logfile/*.so
550%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Tapefile/*.so
This page took 0.124861 seconds and 4 git commands to generate.