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