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