]> git.pld-linux.org Git - packages/amanda.git/blame - amanda.spec
- fix swig perl build
[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
f5929ca0 13Release: 5
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
f5929ca0 43Patch14: swig.patch
5dbc26fb 44URL: http://www.amanda.org/
a278cf9e 45%{?with_samba:BuildRequires: /usr/bin/smbclient}
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
686209a5 53BuildRequires: heimdal-devel
a278cf9e
ER
54BuildRequires: rpmbuild(macros) >= 1.654
55# curl is broken, see curl-config --libs (c8cba693)
31fd601a 56BuildRequires: keyutils-devel
47d7a19a 57BuildRequires: libtool
c8cba693
JR
58BuildRequires: libxslt-progs
59BuildRequires: ncurses-devel
60BuildRequires: openssh-clients
61BuildRequires: openssl-devel
106e7764 62BuildRequires: perl-devel >= 5.6.0
4b36a6fa 63BuildRequires: pkgconfig
e271841a 64BuildRequires: readline-devel >= 4.2
5c693887 65BuildRequires: rpm-perlprov
31fd601a 66BuildRequires: rpmbuild(macros) >= 1.654
c8cba693 67BuildRequires: swig
856a76de 68%{?with_xfs:BuildRequires: xfsdump}
c9fdcd61 69Conflicts: pwdutils < 3.1.2-2
31fd601a 70Conflicts: shadow < 1:4.0.4.1-4
316f81cd 71BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64e6fb7c 72
db958f9a 73# for some unknown reason those get detected in R but not in P (Tie::StdHash comes from perl)
31fd601a 74%define _noautoreq_perl Tie::StdHash Amanda::Recovery::Clerk::Feedback Amanda::Taper::Scribe::Feedback
db958f9a 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
a278cf9e 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
31fd601a 154Suggests: gzip
106e7764
JR
155Suggests: openssh-clients
156Suggests: openssh-server
106e7764 157Suggests: star
31fd601a 158Suggests: tar
106e7764 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
25012ceb
JR
214%patch11 -p1
215%patch12 -p1
158a8a0c 216%patch13 -p1
f5929ca0 217%patch14 -p1
072637cc 218cp -a %{SOURCE10} .
64e6fb7c 219
253b3911
JR
220find perl/ -name '*.swg' -print0 | xargs -0 touch
221
64e6fb7c 222%build
c8cba693 223%{__aclocal} -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive
5154d365 224%{__autoconf}
5154d365 225%{__automake}
b083e9f8 226%configure \
5c0ffaf3 227 DUMP=/sbin/dump \
5c0ffaf3 228 GZIP=/bin/gzip \
67f09374 229 MAILER=/bin/mail \
5c0ffaf3
JR
230 MT=/bin/mt \
231 MTX=/usr/sbin/mtx \
67f09374 232 PRINT=/usr/bin/lpr \
67f09374 233 RESTORE=/sbin/restore \
a9736a51
JR
234 %{?with_xfs:XFSDUMP=/sbin/xfsdump} \
235 %{?with_xfs:XFSRESTORE=/sbin/xfsrestore} \
fa26b3d0 236 --disable-static \
8ae81366 237 --enable-shared \
a9736a51
JR
238 %{!?with_server:--without-server} \
239 %{!?with_client:--without-client} \
64e6fb7c 240 --with-index-server=localhost \
fa26b3d0 241 --with-user=amanda \
242 --with-group=amanda \
fa26b3d0 243 --with-tape-device=/dev/null \
fa26b3d0 244 --with-fqdn \
7ba1ec44 245 %{?with_samba:--with-smbclient=%{_bindir}/smbclient} \
824da05b
JR
246 --with-star=%{_bindir}/star \
247 --with-gnuplot=%{_bindir}/gnuplot \
fa26b3d0 248 --with-bsd-security \
a4070aee 249 --with-bsdtcp-security \
a9736a51 250 --with-ssh-security \
b2b905b0 251 --with-krb5-security \
fa26b3d0 252 --with-buffered-dump \
83e7acbd 253 --with-amandahosts \
d4c615c9 254 --with-configdir=%{_sysconfdir}/amanda \
c8f2ee48 255 --with-gnutar-listdir=%{_sharedstatedir}/amanda/gnutar-lists \
c8cba693
JR
256 --with-amandates=%{_sharedstatedir}/amanda/amandates \
257 --with-debugging=%{_sharedstatedir}/amanda/debug \
824da05b 258 --with-tmpdir=/var/tmp/amanda \
c8cba693 259 --with-amperldir=%{perl_vendorarch} \
7d023072 260 --with-ipv6 \
824da05b 261 --with-readline \
c8cba693 262 --disable-installperms
fa26b3d0 263
f8165eb1 264%{__make}
64e6fb7c 265
266%install
267rm -rf $RPM_BUILD_ROOT
a895e21d 268install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
106e7764 269 $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/{.gnupg,.ssh,gnutar-lists} \
5c0ffaf3 270 $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/debug/{amandad,client,server}
b083e9f8 271
15ce42ff 272%{__make} install \
c8cba693 273 DESTDIR=$RPM_BUILD_ROOT
fa26b3d0 274
a278cf9e 275cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
4b4b52b8
JR
276sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE2} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
277sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
278sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE4} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
e4d1512f 279sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE5} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/k5amanda
b083e9f8 280
a278cf9e
ER
281cp -p example/amanda.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
282cp -p example/amanda-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
c8cba693 283touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.amandahosts
ff131879 284
a278cf9e 285install -p %{SOURCE6} $RPM_BUILD_ROOT%{_sbindir}/amconvert-zd-mtx-to-robot.sh
824da05b 286
a278cf9e 287cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/config
106e7764
JR
288touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/{,client_}authorized_keys
289touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amdump{,.pub}
290touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover{,.pub}
291
c29a68ef 292%if %{with server}
a278cf9e 293cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/amanda/lvm-snapshot.conf
c29a68ef
JR
294%endif
295
296%if %{with client}
072637cc 297sed -e 's|@@PERL_VENDORARCH@@|%{perl_vendorarch}|' %{SOURCE9} >$RPM_BUILD_ROOT%{_libdir}/amanda/application/amlvm-snapshot
c29a68ef 298%endif
072637cc 299
c8cba693
JR
300> $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/amandates
301
aa667a14
JR
302# Amanda tools generate ssh keys with embeded commands pointing to /usr/lib
303# Tools can't be "fixed" because keys generated on server are to be used on client
304if [ "%{_lib}" != "lib" ] ; then
305 install -d $RPM_BUILD_ROOT%{_ulibdir}
306 ln -s %{_libdir}/amanda $RPM_BUILD_ROOT%{_ulibdir}/amanda
307fi
308
c8cba693 309find $RPM_BUILD_ROOT -name \*.la | xargs rm -f
b083e9f8 310
824da05b
JR
311%{__rm} $RPM_BUILD_ROOT%{_datadir}/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes}
312%{__rm} $RPM_BUILD_ROOT%{_datadir}/amanda/example/{chg-multi,chg-scsi}.conf
313
fa26b3d0 314%clean
64e6fb7c 315rm -rf $RPM_BUILD_ROOT
316
5c693887 317%triggerpostun common -- amanda-libs < 2.6.0p2-3
5f9ce2ec
JR
318echo "Adding amanda to disk and tape groups"
319/usr/sbin/usermod -G disk,tape amanda
e28e7d88
JR
320echo "Setting amanda shell to /bin/sh"
321/usr/bin/chsh -s /bin/sh amanda
c8cba693
JR
322if [ -f %{_sharedstatedir}/amanda/.amandahosts ]; then
323 echo "Fixing permissions of %{_sharedstatedir}/amanda/.amandahosts file"
324 chown amanda:amanda %{_sharedstatedir}/amanda/.amandahosts
325 chmod 600 %{_sharedstatedir}/amanda/.amandahosts
a148ef70 326fi
611427b2 327
c29a68ef
JR
328%triggerpostun common -- amanda-common < 3.3
329%banner %{name}-common -e << EOF
330In amanda 3.3 the default auth has changed to "bsdtcp",
331if you are using the default "bsd" then you must add it
332to your configuration:
333
334 * in amanda.conf
335 * in amanda-client.conf
336 * in dumptype/disklist
337 * in inetd (if no '-auth' argument to amandad)
338EOF
31fd601a 339
5c693887
JR
340%pre common
341%groupadd -P %{name}-common -g 80 amanda
342%useradd -P %{name}-common -u 80 -G disk,tape -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda
0da854c3 343
5c693887 344%postun common
0da854c3 345if [ "$1" = "0" ]; then
934dc2b1 346 %userremove amanda
347 %groupremove amanda
0da854c3 348fi
349
b083e9f8 350%post client
35efb826 351%service -q rc-inetd reload
aa667a14
JR
352if [ ! -e /var/lib/amanda/.ssh/id_rsa_amrecover ] ; then
353 HOST="`/bin/hostname`"
c3701baf 354 FQDNHOST="`/bin/hostname -f`"
106e7764
JR
355 if [ -z "$HOST" ] ; then
356 COMMENT="root@client"
357 else
358 COMMENT="root@$HOST"
359 fi
360 /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amrecover -N "" || :
361 chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || :
362 chmod 600 /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || :
c3701baf
JR
363 if [ -n "$FQDNHOST" ]; then
364 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
365 cat /var/lib/amanda/.ssh/id_rsa_amrecover.pub >>/var/lib/amanda/.ssh/server_authorized_keys
366
367 echo "Remember to copy the contents of /var/lib/amanda/.ssh/server_authorized_keys to"
368 echo "/var/lib/amanda/.ssh/authorized_keys on amanda server"
369 fi
106e7764 370fi
b083e9f8 371
372%postun client
35efb826
ER
373if [ "$1" = 0 ]; then
374 %service -q rc-inetd reload
47123b2c 375fi
b083e9f8 376
377%post server
35efb826 378%service -q rc-inetd reload
aa667a14
JR
379if [ ! -e /var/lib/amanda/.ssh/id_rsa_amdump ] ; then
380 HOST="`/bin/hostname`"
106e7764
JR
381 if [ -z "$HOST" ] ; then
382 COMMENT="amanda@server"
383 else
384 COMMENT="amanda@$HOST"
385 fi
386 /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amdump -N "" || :
387 chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || :
388 chmod 600 /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || :
389fi
856a76de
JB
390if [ "$1" = "1" ]; then
391 echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
392fi
9a3836ba
JR
393
394%postun server
395if [ "$1" = 0 ]; then
396 %service -q rc-inetd reload
397fi
398
399%triggerpostun server -- amanda-server < 3.2.0
e02d5d4c
JR
400%banner %{name} -e << EOF
401Warning: Tape changer configuration has chaged, please read
402%{_docdir}/%{name}-server-%{version}/ReleaseNotes.gz
403and %{_docdir}/%{name}-server-%{version}/NEWS.gz for details.
404You can use %{_sbindir}/amconvert-zd-mtx-to-robot.sh script
405to upgrade to chg-robot.
406EOF
b083e9f8 407
5c693887 408%files common
83e7acbd 409%defattr(644,root,root,755)
072637cc 410%doc AUTHORS COPYRIGHT ChangeLog NEWS README ReleaseNotes UPGRADING amlvm-snapshot.README
c8cba693 411%attr(755,root,root) %{_libdir}/amanda/libamanda*.so
5c693887 412%attr(755,root,root) %{_libdir}/amanda/libamar*.so
824da05b 413%attr(755,root,root) %{_libdir}/amanda/libamxfer*.so
5c693887 414%attr(755,root,root) %{_libdir}/amanda/libamglue*.so
824da05b
JR
415%attr(755,root,root) %{_libdir}/amanda/libndmjob*.so
416%attr(755,root,root) %{_libdir}/amanda/libndmlib*.so
417%attr(755,root,root) %{_libdir}/amanda/amndmjob
418%attr(755,root,root) %{_libdir}/amanda/ndmjob
f85baaef 419%attr(750,amanda,amanda) %dir %{_sysconfdir}/amanda
c8cba693 420%dir %{_libdir}/amanda
aa667a14
JR
421%if %{_lib} != "lib"
422%{_ulibdir}/amanda
423%endif
824da05b
JR
424%{_libdir}/amanda/amanda-sh-lib.sh
425%attr(755,root,root) %{_sbindir}/amaespipe
5c693887 426%attr(755,root,root) %{_sbindir}/amarchiver
824da05b
JR
427%attr(755,root,root) %{_sbindir}/amcrypt*
428%attr(755,root,root) %{_sbindir}/amgetconf
429%attr(755,root,root) %{_sbindir}/amgpgcrypt
5c693887
JR
430%attr(750,amanda,amanda) %dir %{_datadir}/amanda
431%attr(750,amanda,amanda) %dir %{_datadir}/amanda/example
432%attr(750,amanda,amanda) %dir %{_datadir}/amanda/example/label-templates
433%attr(640,amanda,amanda) %{_datadir}/amanda/example/*amanda*
824da05b 434%attr(640,amanda,amanda) %{_datadir}/amanda/example/disklist
5c693887
JR
435%attr(640,amanda,amanda) %{_datadir}/amanda/example/label-templates/*.ps
436%attr(750,amanda,amanda) %dir %{_datadir}/amanda/template.d
437%attr(640,amanda,amanda) %{_datadir}/amanda/template.d/*
d4c615c9 438%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda
106e7764
JR
439%attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.ssh
440%attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.gnupg
d4c615c9
JR
441%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug
442%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/amandad
c8cba693 443%attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.amandahosts
66f68fd8 444%attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.ssh/config
411e3665
JR
445# Commented out so it won't get removed on uninstall
446#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/authorized_keys
5c693887
JR
447%{_mandir}/man5/amanda-archive-format.5*
448%{_mandir}/man7/amanda-auth.7*
824da05b 449%{_mandir}/man7/amanda-match.7*
5c693887 450%{_mandir}/man7/amanda-scripts.7*
824da05b
JR
451%{_mandir}/man8/amaespipe.8*
452%{_mandir}/man8/amanda.8*
5c693887 453%{_mandir}/man8/amarchiver.8*
824da05b
JR
454%{_mandir}/man8/amcrypt*.8*
455%{_mandir}/man8/amgetconf.8*
456%{_mandir}/man8/amgpgcrypt.8*
457%{_mandir}/man8/script-email.8*
5c693887
JR
458
459%dir %{perl_vendorarch}/Amanda
824da05b
JR
460%dir %{perl_vendorarch}/Amanda/Config
461%dir %{perl_vendorarch}/Amanda/IPC
5c693887
JR
462%{perl_vendorarch}/Amanda/Archive.pm
463%{perl_vendorarch}/Amanda/BigIntCompat.pm
824da05b 464%{perl_vendorarch}/Amanda/ClientService.pm
5c693887 465%{perl_vendorarch}/Amanda/Config.pm
824da05b 466%{perl_vendorarch}/Amanda/Config/FoldingHash.pm
5c693887
JR
467%{perl_vendorarch}/Amanda/Constants.pm
468%{perl_vendorarch}/Amanda/Debug.pm
824da05b
JR
469%{perl_vendorarch}/Amanda/Feature.pm
470%{perl_vendorarch}/Amanda/Header.pm
471%{perl_vendorarch}/Amanda/IPC/Binary.pm
472%{perl_vendorarch}/Amanda/IPC/LineProtocol.pm
5c693887 473%{perl_vendorarch}/Amanda/MainLoop.pm
824da05b 474%{perl_vendorarch}/Amanda/NDMP.pm
5c693887 475%{perl_vendorarch}/Amanda/Paths.pm
824da05b 476%{perl_vendorarch}/Amanda/Process.pm
5c693887
JR
477%{perl_vendorarch}/Amanda/Script.pm
478%{perl_vendorarch}/Amanda/Script_App.pm
479%{perl_vendorarch}/Amanda/Tests.pm
5c693887 480%{perl_vendorarch}/Amanda/Util.pm
824da05b 481%{perl_vendorarch}/Amanda/Xfer.pm
5c693887
JR
482%dir %{perl_vendorarch}/auto/Amanda
483%dir %{perl_vendorarch}/auto/Amanda/Archive
484%dir %{perl_vendorarch}/auto/Amanda/Config
485%dir %{perl_vendorarch}/auto/Amanda/Debug
824da05b
JR
486%dir %{perl_vendorarch}/auto/Amanda/Feature
487%dir %{perl_vendorarch}/auto/Amanda/Header
488%dir %{perl_vendorarch}/auto/Amanda/IPC
489%dir %{perl_vendorarch}/auto/Amanda/IPC/Binary
5c693887 490%dir %{perl_vendorarch}/auto/Amanda/MainLoop
824da05b 491%dir %{perl_vendorarch}/auto/Amanda/NDMP
5c693887 492%dir %{perl_vendorarch}/auto/Amanda/Tests
5c693887 493%dir %{perl_vendorarch}/auto/Amanda/Util
824da05b 494%dir %{perl_vendorarch}/auto/Amanda/Xfer
5c693887
JR
495%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Archive/*.so
496%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Config/*.so
824da05b
JR
497%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Feature/*.so
498%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Header/*.so
499%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/IPC/Binary/*.so
5c693887
JR
500%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Debug/*.so
501%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/MainLoop/*.so
824da05b 502%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/NDMP/*.so
5c693887 503%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Tests/*.so
5c693887 504%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Util/*.so
824da05b 505%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Xfer/*.so
370a4eb3 506
a9736a51 507%if %{with server}
64e6fb7c 508%files server
b083e9f8 509%defattr(644,root,root,755)
a7b1b223 510%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amidxtape
511%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amandaidx
b083e9f8 512
d4c615c9 513%config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/amanda.conf
072637cc 514%config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/lvm-snapshot.conf
b083e9f8 515
411e3665
JR
516# Commented out so it won't get removed on uninstall
517#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/client_authorized_keys
518#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amdump*
106e7764 519
d4c615c9 520%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/server
b083e9f8 521
a04af4fe 522%config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv
b083e9f8 523
c8cba693
JR
524%attr(755,root,root) %{_libdir}/amanda/libamdevice*.so
525%attr(755,root,root) %{_libdir}/amanda/libamserver*.so
c8cba693
JR
526
527%attr(755,root,root) %{_libdir}/amanda/amcat.awk
824da05b 528%attr(755,root,root) %{_libdir}/amanda/amcheck-device
c29a68ef 529%attr(755,root,root) %{_libdir}/amanda/amdumpd
c8cba693
JR
530%attr(755,root,root) %{_libdir}/amanda/amidxtaped
531%attr(755,root,root) %{_libdir}/amanda/amindexd
532%attr(755,root,root) %{_libdir}/amanda/amlogroll
533%attr(755,root,root) %{_libdir}/amanda/amplot.awk
534%attr(755,root,root) %{_libdir}/amanda/amplot.g
535%attr(755,root,root) %{_libdir}/amanda/amplot.gp
536%attr(755,root,root) %{_libdir}/amanda/amtrmidx
537%attr(755,root,root) %{_libdir}/amanda/amtrmlog
c8cba693 538%attr(755,root,root) %{_libdir}/amanda/chg-disk
c8cba693
JR
539%attr(755,root,root) %{_libdir}/amanda/chg-lib.sh
540%attr(755,root,root) %{_libdir}/amanda/chg-manual
c8cba693 541%attr(755,root,root) %{_libdir}/amanda/chg-multi
c8cba693
JR
542%attr(755,root,root) %{_libdir}/amanda/chg-zd-mtx
543%attr(755,root,root) %{_libdir}/amanda/chunker
544%attr(755,root,root) %{_libdir}/amanda/driver
545%attr(4750,root,amanda) %{_libdir}/amanda/dumper
546%attr(4750,root,amanda) %{_libdir}/amanda/planner
547%attr(755,root,root) %{_libdir}/amanda/taper
5e5c6257 548
5c693887 549%attr(755,root,root) %{_sbindir}/activate-devpay
5c0ffaf3 550%attr(755,root,root) %{_sbindir}/amaddclient
b083e9f8 551%attr(755,root,root) %{_sbindir}/amadmin
c8cba693 552%attr(4750,root,amanda) %{_sbindir}/amcheck
b083e9f8 553%attr(755,root,root) %{_sbindir}/amcheckdb
5c0ffaf3 554%attr(755,root,root) %{_sbindir}/amcheckdump
b083e9f8 555%attr(755,root,root) %{_sbindir}/amcleanup
c29a68ef 556%attr(755,root,root) %{_sbindir}/amcleanupdisk
824da05b 557%attr(755,root,root) %{_sbindir}/amconvert-zd-mtx-to-robot.sh
5c0ffaf3 558%attr(755,root,root) %{_sbindir}/amdevcheck
b083e9f8 559%attr(755,root,root) %{_sbindir}/amdump
5e5c6257 560%attr(755,root,root) %{_sbindir}/amfetchdump
8ae81366 561%attr(755,root,root) %{_sbindir}/amflush
8ae81366 562%attr(755,root,root) %{_sbindir}/amlabel
b083e9f8 563%attr(755,root,root) %{_sbindir}/amoverview
8ae81366 564%attr(755,root,root) %{_sbindir}/amplot
b083e9f8 565%attr(755,root,root) %{_sbindir}/amreport
5e5c6257 566%attr(755,root,root) %{_sbindir}/amrestore
eb87556b 567%attr(755,root,root) %{_sbindir}/amrmtape
5c0ffaf3 568%attr(755,root,root) %{_sbindir}/amserverconfig
5c693887 569%attr(755,root,root) %{_sbindir}/amservice
b083e9f8 570%attr(755,root,root) %{_sbindir}/amstatus
8ae81366 571%attr(755,root,root) %{_sbindir}/amtape
eb87556b 572%attr(755,root,root) %{_sbindir}/amtapetype
8ae81366 573%attr(755,root,root) %{_sbindir}/amtoc
5c693887 574%attr(755,root,root) %{_sbindir}/amvault
5e5c6257 575%{_mandir}/man5/amanda.conf.5*
5c693887
JR
576%{_mandir}/man5/disklist.5*
577%{_mandir}/man5/tapelist.5*
578%{_mandir}/man7/amanda-changers.7*
824da05b 579%{_mandir}/man7/amanda-compatibility.7*
5c693887 580%{_mandir}/man7/amanda-devices.7*
c29a68ef 581%{_mandir}/man7/amanda-interactivity.7*
824da05b 582%{_mandir}/man7/amanda-taperscan.7*
5c0ffaf3 583%{_mandir}/man8/amaddclient.8*
a72f9c08 584%{_mandir}/man8/amadmin.8*
a72f9c08 585%{_mandir}/man8/amcheck.8*
a188c172 586%{_mandir}/man8/amcheckdb.8*
5c0ffaf3 587%{_mandir}/man8/amcheckdump.8*
a72f9c08 588%{_mandir}/man8/amcleanup.8*
c29a68ef 589%{_mandir}/man8/amcleanupdisk.8*
5c0ffaf3 590%{_mandir}/man8/amdevcheck.8*
a72f9c08 591%{_mandir}/man8/amdump.8*
5e5c6257 592%{_mandir}/man8/amfetchdump.8*
a72f9c08 593%{_mandir}/man8/amflush.8*
594%{_mandir}/man8/amlabel.8*
a188c172 595%{_mandir}/man8/amoverview.8*
a72f9c08 596%{_mandir}/man8/amplot.8*
597%{_mandir}/man8/amreport.8*
5e5c6257 598%{_mandir}/man8/amrestore.8*
a188c172 599%{_mandir}/man8/amrmtape.8*
5c0ffaf3 600%{_mandir}/man8/amserverconfig.8*
5c693887 601%{_mandir}/man8/amservice.8*
a72f9c08 602%{_mandir}/man8/amstatus.8*
a188c172 603%{_mandir}/man8/amtape.8*
eb87556b 604%{_mandir}/man8/amtapetype.8*
a188c172 605%{_mandir}/man8/amtoc.8*
5c693887 606%{_mandir}/man8/amvault.8*
86893c3a
JR
607
608%{perl_vendorarch}/Amanda/Changer.pm
5c693887
JR
609%dir %{perl_vendorarch}/Amanda/Changer
610%{perl_vendorarch}/Amanda/Changer/*.pm
86893c3a 611%{perl_vendorarch}/Amanda/Cmdline.pm
824da05b
JR
612%{perl_vendorarch}/Amanda/Curinfo.pm
613%dir %{perl_vendorarch}/Amanda/Curinfo
614%{perl_vendorarch}/Amanda/Curinfo/*.pm
5c693887
JR
615%dir %{perl_vendorarch}/Amanda/DB
616%{perl_vendorarch}/Amanda/DB/*.pm
86893c3a 617%{perl_vendorarch}/Amanda/Device.pm
67942b4c 618%{perl_vendorarch}/Amanda/Extract.pm
824da05b
JR
619%{perl_vendorarch}/Amanda/Disklist.pm
620%{perl_vendorarch}/Amanda/Holding.pm
c29a68ef
JR
621%{perl_vendorarch}/Amanda/Interactivity.pm
622%dir %{perl_vendorarch}/Amanda/Interactivity
623%{perl_vendorarch}/Amanda/Interactivity/*.pm
86893c3a 624%{perl_vendorarch}/Amanda/Logfile.pm
824da05b
JR
625%dir %{perl_vendorarch}/Amanda/Recovery
626%{perl_vendorarch}/Amanda/Recovery/*.pm
627%{perl_vendorarch}/Amanda/Report.pm
628%dir %{perl_vendorarch}/Amanda/Report
629%{perl_vendorarch}/Amanda/Report/*.pm
c29a68ef 630%{perl_vendorarch}/Amanda/ScanInventory.pm
5c693887 631%{perl_vendorarch}/Amanda/Tapelist.pm
824da05b
JR
632%dir %{perl_vendorarch}/Amanda/Taper
633%{perl_vendorarch}/Amanda/Taper/*.pm
634%dir %{perl_vendorarch}/Amanda/Taper/Scan
635%{perl_vendorarch}/Amanda/Taper/Scan/*.pm
636%{perl_vendorarch}/Amanda/XferServer.pm
86893c3a
JR
637%dir %{perl_vendorarch}/auto/Amanda/Cmdline
638%dir %{perl_vendorarch}/auto/Amanda/Device
824da05b 639%dir %{perl_vendorarch}/auto/Amanda/Disklist
86893c3a 640%dir %{perl_vendorarch}/auto/Amanda/Logfile
5c693887 641%dir %{perl_vendorarch}/auto/Amanda/Tapelist
824da05b 642%dir %{perl_vendorarch}/auto/Amanda/XferServer
86893c3a
JR
643%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Cmdline/*.so
644%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Device/*.so
824da05b 645%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Disklist/*.so
86893c3a 646%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Logfile/*.so
5c693887 647%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Tapelist/*.so
824da05b 648%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/XferServer/*.so
a9736a51 649%endif
64e6fb7c 650
a9736a51 651%if %{with client}
64e6fb7c 652%files client
b083e9f8 653%defattr(644,root,root,755)
a7b1b223 654%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amanda
e4d1512f 655%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/k5amanda
5c0ffaf3 656%config(noreplace) %verify(not md5 mtime size) %attr(640,root,amanda) %{_sysconfdir}/amanda/amanda-client.conf
411e3665
JR
657# Commented out so it won't get removed on uninstall
658#%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover*
d4c615c9 659%attr(640,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/amandates
8e94b37c
JR
660
661%dir %{_libdir}/amanda/application
b953d06c 662%attr(4750,root,amanda) %{_libdir}/amanda/application/ambsdtar
751f2ba9 663%attr(4750,root,amanda) %{_libdir}/amanda/application/amgtar
5c693887 664%attr(755,root,root) %{_libdir}/amanda/application/amlog-script
072637cc 665%attr(755,root,root) %{_libdir}/amanda/application/amlvm-snapshot
824da05b
JR
666%attr(755,root,root) %{_libdir}/amanda/application/ampgsql
667%attr(755,root,root) %{_libdir}/amanda/application/amraw
5c693887 668%attr(755,root,root) %{_libdir}/amanda/application/amsamba
751f2ba9 669%attr(4750,root,amanda) %{_libdir}/amanda/application/amstar
824da05b 670%attr(755,root,root) %{_libdir}/amanda/application/amsuntar
5c693887
JR
671%attr(755,root,root) %{_libdir}/amanda/application/amzfs*
672%attr(755,root,root) %{_libdir}/amanda/application/script-email
8e94b37c 673
c8cba693
JR
674%attr(755,root,root) %{_libdir}/amanda/libamclient*.so
675%attr(755,root,root) %{_libdir}/amanda/amandad
676%attr(755,root,root) %{_libdir}/amanda/noop
5c693887 677%attr(755,root,root) %{_libdir}/amanda/patch-system
c8cba693
JR
678%attr(755,root,root) %{_libdir}/amanda/sendbackup
679%attr(755,root,root) %{_libdir}/amanda/sendsize
5c693887 680%attr(755,root,root) %{_libdir}/amanda/teecount
c8cba693
JR
681%attr(4750,root,amanda) %{_libdir}/amanda/calcsize
682%attr(4750,root,amanda) %{_libdir}/amanda/killpgrp
683%attr(4750,root,amanda) %{_libdir}/amanda/rundump
684%attr(4750,root,amanda) %{_libdir}/amanda/runtar
685%attr(755,root,root) %{_libdir}/amanda/selfcheck
c29a68ef 686%attr(755,root,root) %{_sbindir}/amdump_client
5e5c6257 687%attr(755,root,root) %{_sbindir}/amoldrecover
b083e9f8 688%attr(755,root,root) %{_sbindir}/amrecover
d4c615c9
JR
689%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/gnutar-lists
690%attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/client
5c693887 691%{_mandir}/man7/amanda-applications.7*
5e5c6257 692%{_mandir}/man5/amanda-client.conf.5*
c29a68ef 693%{_mandir}/man8/amdump_client.8*
b953d06c 694%{_mandir}/man8/ambsdtar.8*
5c693887 695%{_mandir}/man8/amgtar.8*
824da05b
JR
696%{_mandir}/man8/ampgsql.8*
697%{_mandir}/man8/amrecover.8*
698%{_mandir}/man8/amraw.8*
699%{_mandir}/man8/amsamba.8*
5c693887 700%{_mandir}/man8/amstar.8*
824da05b 701%{_mandir}/man8/amsuntar.8*
5c693887
JR
702%{_mandir}/man8/amzfs*.8*
703
704%{perl_vendorarch}/Amanda/Application.pm
705%dir %{perl_vendorarch}/Amanda/Application
706%{perl_vendorarch}/Amanda/Application/Zfs.pm
707%dir %{perl_vendorarch}/auto/Amanda/Application
708%attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Application/*.so
a9736a51 709%endif
This page took 0.192006 seconds and 4 git commands to generate.