]> git.pld-linux.org Git - packages/amanda.git/blame - amanda.spec
- libffi rebuild
[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
31fd601a 7
c5b0ce89 8%include /usr/lib/rpm/macros.perl
83e7acbd 9Summary: A network-capable tape backup solution
9720936a 10Summary(pl.UTF-8): Sieciowo zorientowany system tworzenia kopii zapasowych
83e7acbd 11Name: amanda
253b3911 12Version: 3.3.6
40d672b2 13Release: 2
8ae81366 14License: BSD
241d28fd 15Group: Networking/Utilities
45255b39 16Source0: http://downloads.sourceforge.net/amanda/%{name}-%{version}.tar.gz
253b3911 17# Source0-md5: 99559bd84b358701cf943fcc347d8914
b95f206b 18Source1: %{name}-srv.crontab
19Source2: %{name}.inetd
20Source3: %{name}idx.inetd
b083e9f8 21Source4: amidxtape.inetd
75783156 22Source5: k5%{name}.inet
824da05b 23# http://amanda.svn.sourceforge.net/viewvc/amanda/amanda/branches/3_2/contrib/convert-zd-mtx-to-robot.sh
e4d1512f 24Source6: convert-zd-mtx-to-robot.sh
66f68fd8 25Source7: %{name}-ssh_config
072637cc
JR
26# https://github.com/janekr/amlvm-snapshot
27Source8: amlvm-snapshot.conf
28Source9: amlvm-snapshot.pl
29Source10: amlvm-snapshot.README
8ae81366 30Patch0: %{name}-no_libnsl.patch
c8cba693
JR
31Patch1: %{name}-chg-zd-mtx-sh.patch
32Patch2: %{name}-tar.patch
824da05b 33Patch3: %{name}-common.patch
05b023d3 34Patch4: %{name}-as_needed.patch
d4c615c9
JR
35Patch5: %{name}-tapetypes.patch
36Patch6: %{name}-FHS.patch
7d023072 37Patch7: %{name}-no-buildtime-ipv6.patch
e3dd0b48 38Patch8: %{name}-heimdal.patch
824da05b 39Patch9: %{name}-ac.patch
25012ceb
JR
40Patch11: %{name}-amstar-exclude-fix.patch
41Patch12: %{name}-krb5-auth.patch
67942b4c 42Patch13: %{name}-amstar-device.patch
5dbc26fb 43URL: http://www.amanda.org/
a278cf9e 44%{?with_samba:BuildRequires: /usr/bin/smbclient}
a188c172 45BuildRequires: autoconf >= 2.53
7bb8ef98 46BuildRequires: automake
106e7764 47BuildRequires: curl-devel >= 7.10.0
b083e9f8 48BuildRequires: dump
47d7a19a 49BuildRequires: flex
c8cba693 50BuildRequires: glib2-devel
5c693887 51BuildRequires: gnuplot
686209a5 52BuildRequires: heimdal-devel
a278cf9e
ER
53BuildRequires: rpmbuild(macros) >= 1.654
54# curl is broken, see curl-config --libs (c8cba693)
31fd601a 55BuildRequires: keyutils-devel
47d7a19a 56BuildRequires: libtool
c8cba693
JR
57BuildRequires: libxslt-progs
58BuildRequires: ncurses-devel
59BuildRequires: openssh-clients
60BuildRequires: openssl-devel
106e7764 61BuildRequires: perl-devel >= 5.6.0
4b36a6fa 62BuildRequires: pkgconfig
e271841a 63BuildRequires: readline-devel >= 4.2
5c693887 64BuildRequires: rpm-perlprov
31fd601a 65BuildRequires: rpmbuild(macros) >= 1.654
c8cba693 66BuildRequires: swig
856a76de 67%{?with_xfs:BuildRequires: xfsdump}
c9fdcd61 68Conflicts: pwdutils < 3.1.2-2
31fd601a 69Conflicts: shadow < 1:4.0.4.1-4
316f81cd 70BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64e6fb7c 71
db958f9a 72# for some unknown reason those get detected in R but not in P (Tie::StdHash comes from perl)
31fd601a 73%define _noautoreq_perl Tie::StdHash Amanda::Recovery::Clerk::Feedback Amanda::Taper::Scribe::Feedback
db958f9a 74
aa667a14
JR
75%define _ulibdir %{_prefix}/lib
76
864ae446 77%description
a895e21d 78AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
79backup system that allows the administrator of a LAN to set up a
80single master backup server to back up multiple hosts to a single
81large capacity tape drive. AMANDA uses native dump and/or GNU tar
82facilities and can back up a large number of workstations running
83multiple versions of Unix. Newer versions of AMANDA (including this
84version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
85The amanda package contains the core AMANDA programs and will need to
86be installed on both AMANDA clients and AMANDA servers. Note that you
87will have to install the amanda-client and amanda-server packages as
88well.
64e6fb7c 89
4b4f6542 90%description -l pl.UTF-8
9fa4a022 91AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
4b4f6542
JR
92zapasowych. Umożliwia administratorowi sieci tworzenie kopii z kilku
93hostów na jednej maszynie wyposażonej w pojemny dysk lub streamer.
94Nowsze wersje programu umożliwiają zabezpieczanie zasobów Microsoft
95Windows 95/98/NT/2000 przy użyciu protokołu Samba. Ten pakiet zawiera
96podstawowe pliki programu i powinien być zainstalowany zarówno na
97serwerze jak i na kliencie. Pamiętaj także o instalacji pakietów
a895e21d 98amanda-client i amanda-server!
32595315 99
5c693887
JR
100%package common
101Summary: Amanda common files
102Summary(pl.UTF-8): Wspólne pliki pakietu amanda
e48f92a2 103Group: Networking/Utilities
0e3510b6
ER
104Requires(postun): /usr/sbin/groupdel
105Requires(postun): /usr/sbin/userdel
0da854c3 106Requires(pre): /bin/id
e0651f2a 107Requires(pre): /usr/bin/chsh
934dc2b1 108Requires(pre): /usr/bin/getgid
0da854c3 109Requires(pre): /usr/sbin/groupadd
110Requires(pre): /usr/sbin/useradd
a278cf9e 111%requires_ge glib2
5f9ce2ec 112Requires: setup >= 2.6.1-1
934dc2b1 113Provides: group(amanda)
114Provides: user(amanda)
5c693887
JR
115Obsoletes: amanda-libs
116Obsoletes: amanda-perl
e48f92a2 117
5c693887
JR
118%description common
119AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
120backup system that allows the administrator of a LAN to set up a
121single master backup server to back up multiple hosts to a single
122large capacity tape drive. AMANDA uses native dump and/or GNU tar
123facilities and can back up a large number of workstations running
124multiple versions of Unix. Newer versions of AMANDA (including this
125version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
126The amanda package contains the core AMANDA programs and will need to
127be installed on both AMANDA clients and AMANDA servers. Note that you
128will have to install the amanda-client and amanda-server packages as
129well.
e48f92a2 130
5c693887
JR
131Amanda common files.
132
133%description common -l pl.UTF-8
134AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
135zapasowych. Umożliwia administratorowi sieci tworzenie kopii z kilku
136hostów na jednej maszynie wyposażonej w pojemny dysk lub streamer.
137Nowsze wersje programu umożliwiają zabezpieczanie zasobów Microsoft
138Windows 95/98/NT/2000 przy użyciu protokołu Samba. Ten pakiet zawiera
139podstawowe pliki programu i powinien być zainstalowany zarówno na
140serwerze jak i na kliencie. Pamiętaj także o instalacji pakietów
141amanda-client i amanda-server!
142
143Wspólne pliki pakietu amanda.
e48f92a2 144
64e6fb7c 145%package client
83e7acbd 146Summary: The client side of Amanda
9720936a 147Summary(pl.UTF-8): Klient Amandy
83e7acbd 148Group: Networking/Utilities
aa667a14
JR
149Requires(post): /bin/hostname
150Requires(post): /usr/bin/ssh-keygen
5c693887 151Requires: %{name}-common = %{version}-%{release}
0e3510b6 152Requires: rc-inetd
31fd601a 153Suggests: gzip
106e7764
JR
154Suggests: openssh-clients
155Suggests: openssh-server
106e7764 156Suggests: star
31fd601a 157Suggests: tar
106e7764 158Conflicts: tar < 1.15
64e6fb7c 159
160%description client
a895e21d 161The Amanda-client package should be installed on any machine that will
162be backed up by AMANDA (including the server if it also needs to be
163backed up). You will also need to install the amanda package to each
ff131879 164AMANDA client. It requires at least one of dump and GNU tar installed.
64e6fb7c 165
4b4f6542
JR
166%description client -l pl.UTF-8
167Ten pakiet powinien być zainstalowany ma maszynach, z których
168zawartości będą tworzone kopie zapasowe. Wymaga zainstalowanego co
169najmniej jednego z pakietów dump i GNU tar.
32595315 170
64e6fb7c 171%package server
83e7acbd 172Summary: The server side of Amanda
9720936a 173Summary(pl.UTF-8): Serwer Amandy
83e7acbd 174Group: Networking/Utilities
aa667a14
JR
175Requires(post): /bin/hostname
176Requires(post): /usr/bin/ssh-keygen
5c693887 177Requires: %{name}-common = %{version}-%{release}
b083e9f8 178Requires: /etc/cron.d
0e3510b6
ER
179Requires: crondaemon
180Requires: gnuplot
4af804ab
JR
181Requires: mt-st
182Requires: mtx
0e3510b6 183Requires: rc-inetd
106e7764
JR
184Suggests: openssh-clients
185Suggests: openssh-server
caae9f77 186Obsoletes: amanda
bc488149 187Obsoletes: amanda-perl-server
64e6fb7c 188
189%description server
a895e21d 190The amanda-server package should be installed on the AMANDA server,
191the machine attached to the device (such as a tape drive) where
192backups will be written. You will also need to install the amanda
193package to the AMANDA server. And, if the server is also to be backed
194up, the server also needs to have the amanda-client package installed.
64e6fb7c 195
4b4f6542
JR
196%description server -l pl.UTF-8
197Ten pakiet powinien być zainstalowany na maszynach, na których będą
198magazynowane kopie zapasowe (lub do których podpięte są urządzenia
a895e21d 199typu streamer).
32595315 200
64e6fb7c 201%prep
202%setup -q
7bb8ef98 203%patch0 -p1
204%patch1 -p1
c8cba693 205%patch2 -p1
47d7a19a 206%patch3 -p1
05b023d3 207%patch4 -p1
d4c615c9
JR
208%patch5 -p1
209%patch6 -p1
7d023072 210%patch7 -p1
e3dd0b48 211%patch8 -p1
824da05b 212%patch9 -p1
25012ceb
JR
213%patch11 -p1
214%patch12 -p1
158a8a0c 215%patch13 -p1
072637cc 216cp -a %{SOURCE10} .
64e6fb7c 217
253b3911
JR
218find perl/ -name '*.swg' -print0 | xargs -0 touch
219
64e6fb7c 220%build
c8cba693 221%{__aclocal} -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive
5154d365 222%{__autoconf}
5154d365 223%{__automake}
b083e9f8 224%configure \
5c0ffaf3 225 DUMP=/sbin/dump \
5c0ffaf3 226 GZIP=/bin/gzip \
67f09374 227 MAILER=/bin/mail \
5c0ffaf3
JR
228 MT=/bin/mt \
229 MTX=/usr/sbin/mtx \
67f09374 230 PRINT=/usr/bin/lpr \
67f09374 231 RESTORE=/sbin/restore \
a9736a51
JR
232 %{?with_xfs:XFSDUMP=/sbin/xfsdump} \
233 %{?with_xfs:XFSRESTORE=/sbin/xfsrestore} \
fa26b3d0 234 --disable-static \
8ae81366 235 --enable-shared \
a9736a51
JR
236 %{!?with_server:--without-server} \
237 %{!?with_client:--without-client} \
64e6fb7c 238 --with-index-server=localhost \
fa26b3d0 239 --with-user=amanda \
240 --with-group=amanda \
fa26b3d0 241 --with-tape-device=/dev/null \
fa26b3d0 242 --with-fqdn \
7ba1ec44 243 %{?with_samba:--with-smbclient=%{_bindir}/smbclient} \
824da05b
JR
244 --with-star=%{_bindir}/star \
245 --with-gnuplot=%{_bindir}/gnuplot \
fa26b3d0 246 --with-bsd-security \
a4070aee 247 --with-bsdtcp-security \
a9736a51 248 --with-ssh-security \
b2b905b0 249 --with-krb5-security \
fa26b3d0 250 --with-buffered-dump \
83e7acbd 251 --with-amandahosts \
d4c615c9 252 --with-configdir=%{_sysconfdir}/amanda \
c8f2ee48 253 --with-gnutar-listdir=%{_sharedstatedir}/amanda/gnutar-lists \
c8cba693
JR
254 --with-amandates=%{_sharedstatedir}/amanda/amandates \
255 --with-debugging=%{_sharedstatedir}/amanda/debug \
824da05b 256 --with-tmpdir=/var/tmp/amanda \
c8cba693 257 --with-amperldir=%{perl_vendorarch} \
7d023072 258 --with-ipv6 \
824da05b 259 --with-readline \
c8cba693 260 --disable-installperms
fa26b3d0 261
f8165eb1 262%{__make}
64e6fb7c 263
264%install
265rm -rf $RPM_BUILD_ROOT
a895e21d 266install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
106e7764 267 $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/{.gnupg,.ssh,gnutar-lists} \
5c0ffaf3 268 $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/debug/{amandad,client,server}
b083e9f8 269
15ce42ff 270%{__make} install \
c8cba693 271 DESTDIR=$RPM_BUILD_ROOT
fa26b3d0 272
a278cf9e 273cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
4b4b52b8
JR
274sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE2} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
275sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
276sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE4} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
e4d1512f 277sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE5} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/k5amanda
b083e9f8 278
a278cf9e
ER
279cp -p example/amanda.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
280cp -p example/amanda-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
c8cba693 281touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.amandahosts
ff131879 282
a278cf9e 283install -p %{SOURCE6} $RPM_BUILD_ROOT%{_sbindir}/amconvert-zd-mtx-to-robot.sh
824da05b 284
a278cf9e 285cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/config
106e7764
JR
286touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/{,client_}authorized_keys
287touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amdump{,.pub}
288touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover{,.pub}
289
c29a68ef 290%if %{with server}
a278cf9e 291cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/amanda/lvm-snapshot.conf
c29a68ef
JR
292%endif
293
294%if %{with client}
072637cc 295sed -e 's|@@PERL_VENDORARCH@@|%{perl_vendorarch}|' %{SOURCE9} >$RPM_BUILD_ROOT%{_libdir}/amanda/application/amlvm-snapshot
c29a68ef 296%endif
072637cc 297
c8cba693
JR
298> $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/amandates
299
aa667a14
JR
300# Amanda tools generate ssh keys with embeded commands pointing to /usr/lib
301# Tools can't be "fixed" because keys generated on server are to be used on client
302if [ "%{_lib}" != "lib" ] ; then
303 install -d $RPM_BUILD_ROOT%{_ulibdir}
304 ln -s %{_libdir}/amanda $RPM_BUILD_ROOT%{_ulibdir}/amanda
305fi
306
c8cba693 307find $RPM_BUILD_ROOT -name \*.la | xargs rm -f
b083e9f8 308
824da05b
JR
309%{__rm} $RPM_BUILD_ROOT%{_datadir}/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes}
310%{__rm} $RPM_BUILD_ROOT%{_datadir}/amanda/example/{chg-multi,chg-scsi}.conf
311
fa26b3d0 312%clean
64e6fb7c 313rm -rf $RPM_BUILD_ROOT
314
5c693887 315%triggerpostun common -- amanda-libs < 2.6.0p2-3
5f9ce2ec
JR
316echo "Adding amanda to disk and tape groups"
317/usr/sbin/usermod -G disk,tape amanda
e28e7d88
JR
318echo "Setting amanda shell to /bin/sh"
319/usr/bin/chsh -s /bin/sh amanda
c8cba693
JR
320if [ -f %{_sharedstatedir}/amanda/.amandahosts ]; then
321 echo "Fixing permissions of %{_sharedstatedir}/amanda/.amandahosts file"
322 chown amanda:amanda %{_sharedstatedir}/amanda/.amandahosts
323 chmod 600 %{_sharedstatedir}/amanda/.amandahosts
a148ef70 324fi
611427b2 325
c29a68ef
JR
326%triggerpostun common -- amanda-common < 3.3
327%banner %{name}-common -e << EOF
328In amanda 3.3 the default auth has changed to "bsdtcp",
329if you are using the default "bsd" then you must add it
330to your configuration:
331
332 * in amanda.conf
333 * in amanda-client.conf
334 * in dumptype/disklist
335 * in inetd (if no '-auth' argument to amandad)
336EOF
31fd601a 337
5c693887
JR
338%pre common
339%groupadd -P %{name}-common -g 80 amanda
340%useradd -P %{name}-common -u 80 -G disk,tape -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda
0da854c3 341
5c693887 342%postun common
0da854c3 343if [ "$1" = "0" ]; then
934dc2b1 344 %userremove amanda
345 %groupremove amanda
0da854c3 346fi
347
b083e9f8 348%post client
35efb826 349%service -q rc-inetd reload
aa667a14
JR
350if [ ! -e /var/lib/amanda/.ssh/id_rsa_amrecover ] ; then
351 HOST="`/bin/hostname`"
c3701baf 352 FQDNHOST="`/bin/hostname -f`"
106e7764
JR
353 if [ -z "$HOST" ] ; then
354 COMMENT="root@client"
355 else
356 COMMENT="root@$HOST"
357 fi
358 /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amrecover -N "" || :
359 chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || :
360 chmod 600 /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || :
c3701baf
JR
361 if [ -n "$FQDNHOST" ]; then
362 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
363 cat /var/lib/amanda/.ssh/id_rsa_amrecover.pub >>/var/lib/amanda/.ssh/server_authorized_keys
364
365 echo "Remember to copy the contents of /var/lib/amanda/.ssh/server_authorized_keys to"
366 echo "/var/lib/amanda/.ssh/authorized_keys on amanda server"
367 fi
106e7764 368fi
b083e9f8 369
370%postun client
35efb826
ER
371if [ "$1" = 0 ]; then
372 %service -q rc-inetd reload
47123b2c 373fi
b083e9f8 374
375%post server
35efb826 376%service -q rc-inetd reload
aa667a14
JR
377if [ ! -e /var/lib/amanda/.ssh/id_rsa_amdump ] ; then
378 HOST="`/bin/hostname`"
106e7764
JR
379 if [ -z "$HOST" ] ; then
380 COMMENT="amanda@server"
381 else
382 COMMENT="amanda@$HOST"
383 fi
384 /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amdump -N "" || :
385 chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || :
386 chmod 600 /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || :
387fi
856a76de
JB
388if [ "$1" = "1" ]; then
389 echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
390fi
9a3836ba
JR
391
392%postun server
393if [ "$1" = 0 ]; then
394 %service -q rc-inetd reload
395fi
396
397%triggerpostun server -- amanda-server < 3.2.0
e02d5d4c
JR
398%banner %{name} -e << EOF
399Warning: Tape changer configuration has chaged, please read
400%{_docdir}/%{name}-server-%{version}/ReleaseNotes.gz
401and %{_docdir}/%{name}-server-%{version}/NEWS.gz for details.
402You can use %{_sbindir}/amconvert-zd-mtx-to-robot.sh script
403to upgrade to chg-robot.
404EOF
b083e9f8 405
5c693887 406%files common
83e7acbd 407%defattr(644,root,root,755)
072637cc 408%doc AUTHORS COPYRIGHT ChangeLog NEWS README ReleaseNotes UPGRADING amlvm-snapshot.README
c8cba693 409%attr(755,root,root) %{_libdir}/amanda/libamanda*.so
5c693887 410%attr(755,root,root) %{_libdir}/amanda/libamar*.so
824da05b 411%attr(755,root,root) %{_libdir}/amanda/libamxfer*.so
5c693887 412%attr(755,root,root) %{_libdir}/amanda/libamglue*.so
824da05b
JR
413%attr(755,root,root) %{_libdir}/amanda/libndmjob*.so
414%attr(755,root,root) %{_libdir}/amanda/libndmlib*.so
415%attr(755,root,root) %{_libdir}/amanda/amndmjob
416%attr(755,root,root) %{_libdir}/amanda/ndmjob
f85baaef 417%attr(750,amanda,amanda) %dir %{_sysconfdir}/amanda
c8cba693 418%dir %{_libdir}/amanda
aa667a14
JR
419%if %{_lib} != "lib"
420%{_ulibdir}/amanda
421%endif
824da05b
JR
422%{_libdir}/amanda/amanda-sh-lib.sh
423%attr(755,root,root) %{_sbindir}/amaespipe
5c693887 424%attr(755,root,root) %{_sbindir}/amarchiver
824da05b
JR
425%attr(755,root,root) %{_sbindir}/amcrypt*
426%attr(755,root,root) %{_sbindir}/amgetconf
427%attr(755,root,root) %{_sbindir}/amgpgcrypt
5c693887
JR
428%attr(750,amanda,amanda) %dir %{_datadir}/amanda
429%attr(750,amanda,amanda) %dir %{_datadir}/amanda/example
430%attr(750,amanda,amanda) %dir %{_datadir}/amanda/example/label-templates
431%attr(640,amanda,amanda) %{_datadir}/amanda/example/*amanda*
824da05b 432%attr(640,amanda,amanda) %{_datadir}/amanda/example/disklist
5c693887
JR
433%attr(640,amanda,amanda) %{_datadir}/amanda/example/label-templates/*.ps
434%attr(750,amanda,amanda) %dir %{_datadir}/amanda/template.d
435%attr(640,amanda,amanda) %{_datadir}/amanda/template.d/*
d4c615c9 436%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda
106e7764
JR
437%attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.ssh
438%attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.gnupg
d4c615c9
JR
439%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug
440%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/amandad
c8cba693 441%attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.amandahosts
66f68fd8 442%attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.ssh/config
411e3665
JR
443# Commented out so it won't get removed on uninstall
444#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/authorized_keys
5c693887
JR
445%{_mandir}/man5/amanda-archive-format.5*
446%{_mandir}/man7/amanda-auth.7*
824da05b 447%{_mandir}/man7/amanda-match.7*
5c693887 448%{_mandir}/man7/amanda-scripts.7*
824da05b
JR
449%{_mandir}/man8/amaespipe.8*
450%{_mandir}/man8/amanda.8*
5c693887 451%{_mandir}/man8/amarchiver.8*
824da05b
JR
452%{_mandir}/man8/amcrypt*.8*
453%{_mandir}/man8/amgetconf.8*
454%{_mandir}/man8/amgpgcrypt.8*
455%{_mandir}/man8/script-email.8*
5c693887
JR
456
457%dir %{perl_vendorarch}/Amanda
824da05b
JR
458%dir %{perl_vendorarch}/Amanda/Config
459%dir %{perl_vendorarch}/Amanda/IPC
5c693887
JR
460%{perl_vendorarch}/Amanda/Archive.pm
461%{perl_vendorarch}/Amanda/BigIntCompat.pm
824da05b 462%{perl_vendorarch}/Amanda/ClientService.pm
5c693887 463%{perl_vendorarch}/Amanda/Config.pm
824da05b 464%{perl_vendorarch}/Amanda/Config/FoldingHash.pm
5c693887
JR
465%{perl_vendorarch}/Amanda/Constants.pm
466%{perl_vendorarch}/Amanda/Debug.pm
824da05b
JR
467%{perl_vendorarch}/Amanda/Feature.pm
468%{perl_vendorarch}/Amanda/Header.pm
469%{perl_vendorarch}/Amanda/IPC/Binary.pm
470%{perl_vendorarch}/Amanda/IPC/LineProtocol.pm
5c693887 471%{perl_vendorarch}/Amanda/MainLoop.pm
824da05b 472%{perl_vendorarch}/Amanda/NDMP.pm
5c693887 473%{perl_vendorarch}/Amanda/Paths.pm
824da05b 474%{perl_vendorarch}/Amanda/Process.pm
5c693887
JR
475%{perl_vendorarch}/Amanda/Script.pm
476%{perl_vendorarch}/Amanda/Script_App.pm
477%{perl_vendorarch}/Amanda/Tests.pm
5c693887 478%{perl_vendorarch}/Amanda/Util.pm
824da05b 479%{perl_vendorarch}/Amanda/Xfer.pm
5c693887
JR
480%dir %{perl_vendorarch}/auto/Amanda
481%dir %{perl_vendorarch}/auto/Amanda/Archive
482%dir %{perl_vendorarch}/auto/Amanda/Config
483%dir %{perl_vendorarch}/auto/Amanda/Debug
824da05b
JR
484%dir %{perl_vendorarch}/auto/Amanda/Feature
485%dir %{perl_vendorarch}/auto/Amanda/Header
486%dir %{perl_vendorarch}/auto/Amanda/IPC
487%dir %{perl_vendorarch}/auto/Amanda/IPC/Binary
5c693887 488%dir %{perl_vendorarch}/auto/Amanda/MainLoop
824da05b 489%dir %{perl_vendorarch}/auto/Amanda/NDMP
5c693887 490%dir %{perl_vendorarch}/auto/Amanda/Tests
5c693887 491%dir %{perl_vendorarch}/auto/Amanda/Util
824da05b 492%dir %{perl_vendorarch}/auto/Amanda/Xfer
5c693887
JR
493%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Archive/*.so
494%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Config/*.so
824da05b
JR
495%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Feature/*.so
496%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Header/*.so
497%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/IPC/Binary/*.so
5c693887
JR
498%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Debug/*.so
499%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/MainLoop/*.so
824da05b 500%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/NDMP/*.so
5c693887 501%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Tests/*.so
5c693887 502%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Util/*.so
824da05b 503%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Xfer/*.so
370a4eb3 504
a9736a51 505%if %{with server}
64e6fb7c 506%files server
b083e9f8 507%defattr(644,root,root,755)
a7b1b223 508%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amidxtape
509%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amandaidx
b083e9f8 510
d4c615c9 511%config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/amanda.conf
072637cc 512%config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/lvm-snapshot.conf
b083e9f8 513
411e3665
JR
514# Commented out so it won't get removed on uninstall
515#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/client_authorized_keys
516#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amdump*
106e7764 517
d4c615c9 518%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/server
b083e9f8 519
a04af4fe 520%config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv
b083e9f8 521
c8cba693
JR
522%attr(755,root,root) %{_libdir}/amanda/libamdevice*.so
523%attr(755,root,root) %{_libdir}/amanda/libamserver*.so
c8cba693
JR
524
525%attr(755,root,root) %{_libdir}/amanda/amcat.awk
824da05b 526%attr(755,root,root) %{_libdir}/amanda/amcheck-device
c29a68ef 527%attr(755,root,root) %{_libdir}/amanda/amdumpd
c8cba693
JR
528%attr(755,root,root) %{_libdir}/amanda/amidxtaped
529%attr(755,root,root) %{_libdir}/amanda/amindexd
530%attr(755,root,root) %{_libdir}/amanda/amlogroll
531%attr(755,root,root) %{_libdir}/amanda/amplot.awk
532%attr(755,root,root) %{_libdir}/amanda/amplot.g
533%attr(755,root,root) %{_libdir}/amanda/amplot.gp
534%attr(755,root,root) %{_libdir}/amanda/amtrmidx
535%attr(755,root,root) %{_libdir}/amanda/amtrmlog
c8cba693 536%attr(755,root,root) %{_libdir}/amanda/chg-disk
c8cba693
JR
537%attr(755,root,root) %{_libdir}/amanda/chg-lib.sh
538%attr(755,root,root) %{_libdir}/amanda/chg-manual
c8cba693 539%attr(755,root,root) %{_libdir}/amanda/chg-multi
c8cba693
JR
540%attr(755,root,root) %{_libdir}/amanda/chg-zd-mtx
541%attr(755,root,root) %{_libdir}/amanda/chunker
542%attr(755,root,root) %{_libdir}/amanda/driver
543%attr(4750,root,amanda) %{_libdir}/amanda/dumper
544%attr(4750,root,amanda) %{_libdir}/amanda/planner
545%attr(755,root,root) %{_libdir}/amanda/taper
5e5c6257 546
5c693887 547%attr(755,root,root) %{_sbindir}/activate-devpay
5c0ffaf3 548%attr(755,root,root) %{_sbindir}/amaddclient
b083e9f8 549%attr(755,root,root) %{_sbindir}/amadmin
c8cba693 550%attr(4750,root,amanda) %{_sbindir}/amcheck
b083e9f8 551%attr(755,root,root) %{_sbindir}/amcheckdb
5c0ffaf3 552%attr(755,root,root) %{_sbindir}/amcheckdump
b083e9f8 553%attr(755,root,root) %{_sbindir}/amcleanup
c29a68ef 554%attr(755,root,root) %{_sbindir}/amcleanupdisk
824da05b 555%attr(755,root,root) %{_sbindir}/amconvert-zd-mtx-to-robot.sh
5c0ffaf3 556%attr(755,root,root) %{_sbindir}/amdevcheck
b083e9f8 557%attr(755,root,root) %{_sbindir}/amdump
5e5c6257 558%attr(755,root,root) %{_sbindir}/amfetchdump
8ae81366 559%attr(755,root,root) %{_sbindir}/amflush
8ae81366 560%attr(755,root,root) %{_sbindir}/amlabel
b083e9f8 561%attr(755,root,root) %{_sbindir}/amoverview
8ae81366 562%attr(755,root,root) %{_sbindir}/amplot
b083e9f8 563%attr(755,root,root) %{_sbindir}/amreport
5e5c6257 564%attr(755,root,root) %{_sbindir}/amrestore
eb87556b 565%attr(755,root,root) %{_sbindir}/amrmtape
5c0ffaf3 566%attr(755,root,root) %{_sbindir}/amserverconfig
5c693887 567%attr(755,root,root) %{_sbindir}/amservice
b083e9f8 568%attr(755,root,root) %{_sbindir}/amstatus
8ae81366 569%attr(755,root,root) %{_sbindir}/amtape
eb87556b 570%attr(755,root,root) %{_sbindir}/amtapetype
8ae81366 571%attr(755,root,root) %{_sbindir}/amtoc
5c693887 572%attr(755,root,root) %{_sbindir}/amvault
5e5c6257 573%{_mandir}/man5/amanda.conf.5*
5c693887
JR
574%{_mandir}/man5/disklist.5*
575%{_mandir}/man5/tapelist.5*
576%{_mandir}/man7/amanda-changers.7*
824da05b 577%{_mandir}/man7/amanda-compatibility.7*
5c693887 578%{_mandir}/man7/amanda-devices.7*
c29a68ef 579%{_mandir}/man7/amanda-interactivity.7*
824da05b 580%{_mandir}/man7/amanda-taperscan.7*
5c0ffaf3 581%{_mandir}/man8/amaddclient.8*
a72f9c08 582%{_mandir}/man8/amadmin.8*
a72f9c08 583%{_mandir}/man8/amcheck.8*
a188c172 584%{_mandir}/man8/amcheckdb.8*
5c0ffaf3 585%{_mandir}/man8/amcheckdump.8*
a72f9c08 586%{_mandir}/man8/amcleanup.8*
c29a68ef 587%{_mandir}/man8/amcleanupdisk.8*
5c0ffaf3 588%{_mandir}/man8/amdevcheck.8*
a72f9c08 589%{_mandir}/man8/amdump.8*
5e5c6257 590%{_mandir}/man8/amfetchdump.8*
a72f9c08 591%{_mandir}/man8/amflush.8*
592%{_mandir}/man8/amlabel.8*
a188c172 593%{_mandir}/man8/amoverview.8*
a72f9c08 594%{_mandir}/man8/amplot.8*
595%{_mandir}/man8/amreport.8*
5e5c6257 596%{_mandir}/man8/amrestore.8*
a188c172 597%{_mandir}/man8/amrmtape.8*
5c0ffaf3 598%{_mandir}/man8/amserverconfig.8*
5c693887 599%{_mandir}/man8/amservice.8*
a72f9c08 600%{_mandir}/man8/amstatus.8*
a188c172 601%{_mandir}/man8/amtape.8*
eb87556b 602%{_mandir}/man8/amtapetype.8*
a188c172 603%{_mandir}/man8/amtoc.8*
5c693887 604%{_mandir}/man8/amvault.8*
86893c3a
JR
605
606%{perl_vendorarch}/Amanda/Changer.pm
5c693887
JR
607%dir %{perl_vendorarch}/Amanda/Changer
608%{perl_vendorarch}/Amanda/Changer/*.pm
86893c3a 609%{perl_vendorarch}/Amanda/Cmdline.pm
824da05b
JR
610%{perl_vendorarch}/Amanda/Curinfo.pm
611%dir %{perl_vendorarch}/Amanda/Curinfo
612%{perl_vendorarch}/Amanda/Curinfo/*.pm
5c693887
JR
613%dir %{perl_vendorarch}/Amanda/DB
614%{perl_vendorarch}/Amanda/DB/*.pm
86893c3a 615%{perl_vendorarch}/Amanda/Device.pm
67942b4c 616%{perl_vendorarch}/Amanda/Extract.pm
824da05b
JR
617%{perl_vendorarch}/Amanda/Disklist.pm
618%{perl_vendorarch}/Amanda/Holding.pm
c29a68ef
JR
619%{perl_vendorarch}/Amanda/Interactivity.pm
620%dir %{perl_vendorarch}/Amanda/Interactivity
621%{perl_vendorarch}/Amanda/Interactivity/*.pm
86893c3a 622%{perl_vendorarch}/Amanda/Logfile.pm
824da05b
JR
623%dir %{perl_vendorarch}/Amanda/Recovery
624%{perl_vendorarch}/Amanda/Recovery/*.pm
625%{perl_vendorarch}/Amanda/Report.pm
626%dir %{perl_vendorarch}/Amanda/Report
627%{perl_vendorarch}/Amanda/Report/*.pm
c29a68ef 628%{perl_vendorarch}/Amanda/ScanInventory.pm
5c693887 629%{perl_vendorarch}/Amanda/Tapelist.pm
824da05b
JR
630%dir %{perl_vendorarch}/Amanda/Taper
631%{perl_vendorarch}/Amanda/Taper/*.pm
632%dir %{perl_vendorarch}/Amanda/Taper/Scan
633%{perl_vendorarch}/Amanda/Taper/Scan/*.pm
634%{perl_vendorarch}/Amanda/XferServer.pm
86893c3a
JR
635%dir %{perl_vendorarch}/auto/Amanda/Cmdline
636%dir %{perl_vendorarch}/auto/Amanda/Device
824da05b 637%dir %{perl_vendorarch}/auto/Amanda/Disklist
86893c3a 638%dir %{perl_vendorarch}/auto/Amanda/Logfile
5c693887 639%dir %{perl_vendorarch}/auto/Amanda/Tapelist
824da05b 640%dir %{perl_vendorarch}/auto/Amanda/XferServer
86893c3a
JR
641%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Cmdline/*.so
642%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Device/*.so
824da05b 643%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Disklist/*.so
86893c3a 644%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Logfile/*.so
5c693887 645%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Tapelist/*.so
824da05b 646%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/XferServer/*.so
a9736a51 647%endif
64e6fb7c 648
a9736a51 649%if %{with client}
64e6fb7c 650%files client
b083e9f8 651%defattr(644,root,root,755)
a7b1b223 652%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amanda
e4d1512f 653%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/k5amanda
5c0ffaf3 654%config(noreplace) %verify(not md5 mtime size) %attr(640,root,amanda) %{_sysconfdir}/amanda/amanda-client.conf
411e3665
JR
655# Commented out so it won't get removed on uninstall
656#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover*
d4c615c9 657%attr(640,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/amandates
8e94b37c
JR
658
659%dir %{_libdir}/amanda/application
b953d06c 660%attr(4750,root,amanda) %{_libdir}/amanda/application/ambsdtar
751f2ba9 661%attr(4750,root,amanda) %{_libdir}/amanda/application/amgtar
5c693887 662%attr(755,root,root) %{_libdir}/amanda/application/amlog-script
072637cc 663%attr(755,root,root) %{_libdir}/amanda/application/amlvm-snapshot
824da05b
JR
664%attr(755,root,root) %{_libdir}/amanda/application/ampgsql
665%attr(755,root,root) %{_libdir}/amanda/application/amraw
5c693887 666%attr(755,root,root) %{_libdir}/amanda/application/amsamba
751f2ba9 667%attr(4750,root,amanda) %{_libdir}/amanda/application/amstar
824da05b 668%attr(755,root,root) %{_libdir}/amanda/application/amsuntar
5c693887
JR
669%attr(755,root,root) %{_libdir}/amanda/application/amzfs*
670%attr(755,root,root) %{_libdir}/amanda/application/script-email
8e94b37c 671
c8cba693
JR
672%attr(755,root,root) %{_libdir}/amanda/libamclient*.so
673%attr(755,root,root) %{_libdir}/amanda/amandad
674%attr(755,root,root) %{_libdir}/amanda/noop
5c693887 675%attr(755,root,root) %{_libdir}/amanda/patch-system
c8cba693
JR
676%attr(755,root,root) %{_libdir}/amanda/sendbackup
677%attr(755,root,root) %{_libdir}/amanda/sendsize
5c693887 678%attr(755,root,root) %{_libdir}/amanda/teecount
c8cba693
JR
679%attr(4750,root,amanda) %{_libdir}/amanda/calcsize
680%attr(4750,root,amanda) %{_libdir}/amanda/killpgrp
681%attr(4750,root,amanda) %{_libdir}/amanda/rundump
682%attr(4750,root,amanda) %{_libdir}/amanda/runtar
683%attr(755,root,root) %{_libdir}/amanda/selfcheck
c29a68ef 684%attr(755,root,root) %{_sbindir}/amdump_client
5e5c6257 685%attr(755,root,root) %{_sbindir}/amoldrecover
b083e9f8 686%attr(755,root,root) %{_sbindir}/amrecover
d4c615c9
JR
687%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/gnutar-lists
688%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/client
5c693887 689%{_mandir}/man7/amanda-applications.7*
5e5c6257 690%{_mandir}/man5/amanda-client.conf.5*
c29a68ef 691%{_mandir}/man8/amdump_client.8*
b953d06c 692%{_mandir}/man8/ambsdtar.8*
5c693887 693%{_mandir}/man8/amgtar.8*
824da05b
JR
694%{_mandir}/man8/ampgsql.8*
695%{_mandir}/man8/amrecover.8*
696%{_mandir}/man8/amraw.8*
697%{_mandir}/man8/amsamba.8*
5c693887 698%{_mandir}/man8/amstar.8*
824da05b 699%{_mandir}/man8/amsuntar.8*
5c693887
JR
700%{_mandir}/man8/amzfs*.8*
701
702%{perl_vendorarch}/Amanda/Application.pm
703%dir %{perl_vendorarch}/Amanda/Application
704%{perl_vendorarch}/Amanda/Application/Zfs.pm
705%dir %{perl_vendorarch}/auto/Amanda/Application
706%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Application/*.so
a9736a51 707%endif
This page took 0.217941 seconds and 4 git commands to generate.