3 # CLIENT warning: Installed (but unpackaged) file(s) found:
4 # /etc/amanda/amanda-security.conf
5 # /etc/amanda/amanda.conf
6 # /etc/cron.d/amanda-srv
7 # /etc/sysconfig/rc-inetd/amandaidx
8 # /etc/sysconfig/rc-inetd/amidxtape
9 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Amservice.pm
10 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Extract.pm
11 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/FetchDump.pm
12 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/FetchDump/Application.pm
13 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/FetchDump/ClientApplication.pm
14 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/FetchDump/Local.pm
15 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Message.pm
16 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Recovery/Clerk.pm
17 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Recovery/Planner.pm
18 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Recovery/Scan.pm
19 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Restore.pm
20 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Service.pm
21 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Service/Restore.pm
22 # /usr/libexec/amanda/ambind
23 # /usr/libexec/amanda/amcat.awk
24 # /usr/libexec/amanda/amplot.awk
25 # /usr/libexec/amanda/amplot.g
26 # /usr/libexec/amanda/amplot.gp
27 # /usr/libexec/amanda/application/amrandom
28 # /usr/libexec/amanda/application/script-fail
29 # /usr/libexec/amanda/restore
30 # /usr/libexec/amanda/senddiscover
33 # /usr/sbin/amconvert-zd-mtx-to-robot.sh
37 # /usr/share/man/man5/amanda-security.conf.5.gz
38 # /usr/share/man/man5/amanda.conf.5.gz
39 # /usr/share/man/man7/amanda-auth-ssl.7.gz
40 # /usr/share/man/man8/ambackup.8.gz
41 # /usr/share/man/man8/amplot.8.gz
42 # /usr/share/man/man8/amservice.8.gz
43 # /usr/share/man/man8/amssl.8.gz
45 # SERVER warning: Installed (but unpackaged) file(s) found:
46 # /etc/amanda/amanda-client.conf
47 # /etc/amanda/amanda-security.conf
48 # /etc/sysconfig/rc-inetd/amanda
49 # /etc/sysconfig/rc-inetd/k5amanda
50 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Amdump.pm
51 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Amflush.pm
52 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Amservice.pm
53 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/CheckDump.pm
54 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Chunker/Controller.pm
55 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Chunker/Protocol.pm
56 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Chunker/Scribe.pm
57 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Cleanup.pm
58 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Cmdfile.pm
59 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/DB.pm
60 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/FetchDump.pm
61 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/FetchDump/Application.pm
62 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/FetchDump/ClientApplication.pm
63 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/FetchDump/Local.pm
64 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Index.pm
65 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Label.pm
66 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Message.pm
67 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Policy.pm
68 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Recovery.pm
69 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Amcheck.pm
70 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Configs.pm
71 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Dles.pm
72 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Dumps.pm
73 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Labels.pm
74 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Report.pm
75 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Runs.pm
76 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Services.pm
77 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Status.pm
78 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Storages.pm
79 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Storages/Labels.pm
80 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Rest/Version.pm
81 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Restore.pm
82 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Service.pm
83 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Service/Amidxtaped.pm
84 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Status.pm
85 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Storage.pm
86 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/Amanda/Vault.pm
87 # /usr/lib64/perl5/vendor_perl/5.28.0/x86_64-pld-linux-thread-multi/auto/Amanda/Cmdfile/libCmdfile.so
88 # /usr/libexec/amanda/amadmin_perl
89 # /usr/libexec/amanda/amandad
90 # /usr/libexec/amanda/ambackupd
91 # /usr/libexec/amanda/ambind
92 # /usr/libexec/amanda/rest-server/bin/app-dancer2.pl
93 # /usr/libexec/amanda/rest-server/bin/app.pl
94 # /usr/libexec/amanda/rest-server/config-dancer/config.yml
95 # /usr/libexec/amanda/rest-server/config.yml
96 # /usr/libexec/amanda/rest-server/environments/development.yml
97 # /usr/libexec/amanda/rest-server/environments/production.yml
98 # /usr/libexec/amanda/rest-server/lib/Amanda/Rest.pm
99 # /usr/libexec/amanda/rest-server/public/404.html
100 # /usr/libexec/amanda/rest-server/public/500.html
101 # /usr/libexec/amanda/rest-server/public/css/error.css
102 # /usr/libexec/amanda/rest-server/public/css/style.css
103 # /usr/libexec/amanda/rest-server/public/dispatch.cgi
104 # /usr/libexec/amanda/rest-server/public/dispatch.fcgi
105 # /usr/libexec/amanda/rest-server/public/favicon.ico
106 # /usr/libexec/amanda/rest-server/public/images/perldancer-bg.jpg
107 # /usr/libexec/amanda/rest-server/public/images/perldancer.jpg
108 # /usr/libexec/amanda/rest-server/public/javascripts/jquery.js
109 # /usr/libexec/amanda/rest-server/views/index.tt
110 # /usr/libexec/amanda/rest-server/views/layout/main.tt
111 # /usr/sbin/amanda-rest-server
112 # /usr/sbin/amreindex
114 # /usr/share/man/man5/amanda-client.conf.5.gz
115 # /usr/share/man/man5/amanda-command-file.5.gz
116 # /usr/share/man/man5/amanda-security.conf.5.gz
117 # /usr/share/man/man7/amanda-auth-ssl.7.gz
118 # /usr/share/man/man8/amanda-rest-server.8.gz
119 # /usr/share/man/man8/amreindex.8.gz
120 # /usr/share/man/man8/amssl.8.gz
123 %bcond_without xfs # without (possible) support for xfsdump
124 %bcond_without samba # without smbclient support
125 %bcond_without client # without client package
126 %bcond_without server # without server package
128 %include /usr/lib/rpm/macros.perl
129 Summary: A network-capable tape backup solution
130 Summary(pl.UTF-8): Sieciowo zorientowany system tworzenia kopii zapasowych
135 Group: Networking/Utilities
136 Source0: http://downloads.sourceforge.net/amanda/%{name}-%{version}.tar.gz
137 # Source0-md5: f57307959f79e722b1dcb3f985ebb0d0
138 Source1: %{name}-srv.crontab
139 Source2: %{name}.inetd
140 Source3: %{name}idx.inetd
141 Source4: amidxtape.inetd
142 Source5: k5%{name}.inet
143 # http://amanda.svn.sourceforge.net/viewvc/amanda/amanda/branches/3_2/contrib/convert-zd-mtx-to-robot.sh
144 Source6: convert-zd-mtx-to-robot.sh
145 Source7: %{name}-ssh_config
146 # https://github.com/janekr/amlvm-snapshot
147 Source8: amlvm-snapshot.conf
148 Source9: amlvm-snapshot.pl
149 Source10: amlvm-snapshot.README
150 Patch0: %{name}-no_libnsl.patch
152 Patch2: %{name}-tar.patch
153 Patch3: %{name}-common.patch
154 Patch4: %{name}-as_needed.patch
155 Patch5: %{name}-tapetypes.patch
156 Patch6: %{name}-FHS.patch
157 Patch7: %{name}-no-buildtime-ipv6.patch
158 Patch8: %{name}-heimdal.patch
159 Patch9: %{name}-ac.patch
161 Patch12: %{name}-krb5-auth.patch
164 Patch15: krb5-ac.patch
165 URL: http://www.amanda.org/
166 %{?with_samba:BuildRequires: /usr/bin/smbclient}
167 BuildRequires: autoconf >= 2.64
168 BuildRequires: automake
169 BuildRequires: curl-devel >= 7.10.0
172 BuildRequires: glib2-devel
173 BuildRequires: gnuplot
174 BuildRequires: heimdal-devel
175 BuildRequires: rpmbuild(macros) >= 1.654
176 # curl is broken, see curl-config --libs (c8cba693)
177 BuildRequires: keyutils-devel
178 BuildRequires: libtool
179 BuildRequires: libxslt-progs
180 BuildRequires: ncurses-devel
181 BuildRequires: openssh-clients
182 BuildRequires: openssl-devel
183 BuildRequires: perl-devel >= 5.6.0
184 BuildRequires: pkgconfig
185 BuildRequires: readline-devel >= 4.2
186 BuildRequires: rpm-perlprov
187 BuildRequires: rpmbuild(macros) >= 1.654
189 %{?with_xfs:BuildRequires: xfsdump}
190 Conflicts: pwdutils < 3.1.2-2
191 Conflicts: shadow < 1:4.0.4.1-4
192 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
194 # for some unknown reason those get detected in R but not in P (Tie::StdHash comes from perl)
195 %define _noautoreq_perl Tie::StdHash Amanda::Recovery::Clerk::Feedback Amanda::Taper::Scribe::Feedback
197 %define _ulibdir %{_prefix}/lib
200 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
201 backup system that allows the administrator of a LAN to set up a
202 single master backup server to back up multiple hosts to a single
203 large capacity tape drive. AMANDA uses native dump and/or GNU tar
204 facilities and can back up a large number of workstations running
205 multiple versions of Unix. Newer versions of AMANDA (including this
206 version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
207 The amanda package contains the core AMANDA programs and will need to
208 be installed on both AMANDA clients and AMANDA servers. Note that you
209 will have to install the amanda-client and amanda-server packages as
212 %description -l pl.UTF-8
213 AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
214 zapasowych. Umożliwia administratorowi sieci tworzenie kopii z kilku
215 hostów na jednej maszynie wyposażonej w pojemny dysk lub streamer.
216 Nowsze wersje programu umożliwiają zabezpieczanie zasobów Microsoft
217 Windows 95/98/NT/2000 przy użyciu protokołu Samba. Ten pakiet zawiera
218 podstawowe pliki programu i powinien być zainstalowany zarówno na
219 serwerze jak i na kliencie. Pamiętaj także o instalacji pakietów
220 amanda-client i amanda-server!
223 Summary: Amanda common files
224 Summary(pl.UTF-8): Wspólne pliki pakietu amanda
225 Group: Networking/Utilities
226 Requires(postun): /usr/sbin/groupdel
227 Requires(postun): /usr/sbin/userdel
228 Requires(pre): /bin/id
229 Requires(pre): /usr/bin/chsh
230 Requires(pre): /usr/bin/getgid
231 Requires(pre): /usr/sbin/groupadd
232 Requires(pre): /usr/sbin/useradd
234 Requires: setup >= 2.6.1-1
235 Provides: group(amanda)
236 Provides: user(amanda)
237 Obsoletes: amanda-libs
238 Obsoletes: amanda-perl
241 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
242 backup system that allows the administrator of a LAN to set up a
243 single master backup server to back up multiple hosts to a single
244 large capacity tape drive. AMANDA uses native dump and/or GNU tar
245 facilities and can back up a large number of workstations running
246 multiple versions of Unix. Newer versions of AMANDA (including this
247 version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
248 The amanda package contains the core AMANDA programs and will need to
249 be installed on both AMANDA clients and AMANDA servers. Note that you
250 will have to install the amanda-client and amanda-server packages as
255 %description common -l pl.UTF-8
256 AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
257 zapasowych. Umożliwia administratorowi sieci tworzenie kopii z kilku
258 hostów na jednej maszynie wyposażonej w pojemny dysk lub streamer.
259 Nowsze wersje programu umożliwiają zabezpieczanie zasobów Microsoft
260 Windows 95/98/NT/2000 przy użyciu protokołu Samba. Ten pakiet zawiera
261 podstawowe pliki programu i powinien być zainstalowany zarówno na
262 serwerze jak i na kliencie. Pamiętaj także o instalacji pakietów
263 amanda-client i amanda-server!
265 Wspólne pliki pakietu amanda.
268 Summary: The client side of Amanda
269 Summary(pl.UTF-8): Klient Amandy
270 Group: Networking/Utilities
271 Requires(post): /bin/hostname
272 Requires(post): /usr/bin/ssh-keygen
273 Requires: %{name}-common = %{version}-%{release}
276 Suggests: openssh-clients
277 Suggests: openssh-server
280 Conflicts: tar < 1.15
283 The Amanda-client package should be installed on any machine that will
284 be backed up by AMANDA (including the server if it also needs to be
285 backed up). You will also need to install the amanda package to each
286 AMANDA client. It requires at least one of dump and GNU tar installed.
288 %description client -l pl.UTF-8
289 Ten pakiet powinien być zainstalowany ma maszynach, z których
290 zawartości będą tworzone kopie zapasowe. Wymaga zainstalowanego co
291 najmniej jednego z pakietów dump i GNU tar.
294 Summary: The server side of Amanda
295 Summary(pl.UTF-8): Serwer Amandy
296 Group: Networking/Utilities
297 Requires(post): /bin/hostname
298 Requires(post): /usr/bin/ssh-keygen
299 Requires: %{name}-common = %{version}-%{release}
300 Requires: /etc/cron.d
306 Suggests: openssh-clients
307 Suggests: openssh-server
309 Obsoletes: amanda-perl-server
312 The amanda-server package should be installed on the AMANDA server,
313 the machine attached to the device (such as a tape drive) where
314 backups will be written. You will also need to install the amanda
315 package to the AMANDA server. And, if the server is also to be backed
316 up, the server also needs to have the amanda-client package installed.
318 %description server -l pl.UTF-8
319 Ten pakiet powinien być zainstalowany na maszynach, na których będą
320 magazynowane kopie zapasowe (lub do których podpięte są urządzenia
342 find perl/ -name '*.swg' -print0 | xargs -0 touch
346 %{__aclocal} -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive
356 RESTORE=/sbin/restore \
357 %{?with_xfs:XFSDUMP=/sbin/xfsdump} \
358 %{?with_xfs:XFSRESTORE=/sbin/xfsrestore} \
361 %{!?with_server:--without-server} \
362 %{!?with_client:--without-client} \
363 --with-index-server=localhost \
365 --with-group=amanda \
366 --with-tape-device=/dev/null \
368 %{?with_samba:--with-smbclient=%{_bindir}/smbclient} \
369 --with-star=%{_bindir}/star \
370 --with-gnuplot=%{_bindir}/gnuplot \
371 --with-bsd-security \
372 --with-bsdtcp-security \
373 --with-ssh-security \
374 --with-krb5-security \
375 --with-buffered-dump \
377 --with-configdir=%{_sysconfdir}/amanda \
378 --with-gnutar-listdir=%{_sharedstatedir}/amanda/gnutar-lists \
379 --with-amandates=%{_sharedstatedir}/amanda/amandates \
380 --with-debugging=%{_sharedstatedir}/amanda/debug \
381 --with-tmpdir=/var/tmp/amanda \
382 --with-amperldir=%{perl_vendorarch} \
385 --disable-installperms
390 rm -rf $RPM_BUILD_ROOT
391 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
392 $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/{.gnupg,.ssh,gnutar-lists} \
393 $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/debug/{amandad,client,server}
396 DESTDIR=$RPM_BUILD_ROOT
398 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
399 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE2} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
400 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
401 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE4} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
402 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE5} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/k5amanda
404 cp -p example/amanda.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
405 cp -p example/amanda-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
406 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.amandahosts
408 install -p %{SOURCE6} $RPM_BUILD_ROOT%{_sbindir}/amconvert-zd-mtx-to-robot.sh
410 cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/config
411 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/{,client_}authorized_keys
412 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amdump{,.pub}
413 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover{,.pub}
416 cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/amanda/lvm-snapshot.conf
420 sed -e 's|@@PERL_VENDORARCH@@|%{perl_vendorarch}|' %{SOURCE9} >$RPM_BUILD_ROOT%{_libexecdir}/amanda/application/amlvm-snapshot
423 > $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/amandates
425 # Amanda tools generate ssh keys with embeded commands pointing to /usr/lib
426 # Tools can't be "fixed" because keys generated on server are to be used on client
427 if [ "%{_lib}" != "lib" ] ; then
428 install -d $RPM_BUILD_ROOT%{_ulibdir}
429 ln -s %{_libdir}/amanda $RPM_BUILD_ROOT%{_ulibdir}/amanda
432 find $RPM_BUILD_ROOT -name \*.la | xargs rm -f
434 %{__rm} $RPM_BUILD_ROOT%{_datadir}/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes}
435 %{__rm} $RPM_BUILD_ROOT%{_datadir}/amanda/example/{chg-multi,chg-scsi}.conf
438 rm -rf $RPM_BUILD_ROOT
440 %triggerpostun common -- amanda-libs < 2.6.0p2-3
441 echo "Adding amanda to disk and tape groups"
442 /usr/sbin/usermod -G disk,tape amanda
443 echo "Setting amanda shell to /bin/sh"
444 /usr/bin/chsh -s /bin/sh amanda
445 if [ -f %{_sharedstatedir}/amanda/.amandahosts ]; then
446 echo "Fixing permissions of %{_sharedstatedir}/amanda/.amandahosts file"
447 chown amanda:amanda %{_sharedstatedir}/amanda/.amandahosts
448 chmod 600 %{_sharedstatedir}/amanda/.amandahosts
451 %triggerpostun common -- amanda-common < 3.3
452 %banner %{name}-common -e << EOF
453 In amanda 3.3 the default auth has changed to "bsdtcp",
454 if you are using the default "bsd" then you must add it
455 to your configuration:
458 * in amanda-client.conf
459 * in dumptype/disklist
460 * in inetd (if no '-auth' argument to amandad)
464 %groupadd -P %{name}-common -g 80 amanda
465 %useradd -P %{name}-common -u 80 -G disk,tape -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda
468 if [ "$1" = "0" ]; then
474 %service -q rc-inetd reload
475 if [ ! -e /var/lib/amanda/.ssh/id_rsa_amrecover ] ; then
476 HOST="`/bin/hostname`"
477 FQDNHOST="`/bin/hostname -f`"
478 if [ -z "$HOST" ] ; then
479 COMMENT="root@client"
483 /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amrecover -N "" || :
484 chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || :
485 chmod 600 /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || :
486 if [ -n "$FQDNHOST" ]; then
487 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
488 cat /var/lib/amanda/.ssh/id_rsa_amrecover.pub >>/var/lib/amanda/.ssh/server_authorized_keys
490 echo "Remember to copy the contents of /var/lib/amanda/.ssh/server_authorized_keys to"
491 echo "/var/lib/amanda/.ssh/authorized_keys on amanda server"
496 if [ "$1" = 0 ]; then
497 %service -q rc-inetd reload
501 %service -q rc-inetd reload
502 if [ ! -e /var/lib/amanda/.ssh/id_rsa_amdump ] ; then
503 HOST="`/bin/hostname`"
504 if [ -z "$HOST" ] ; then
505 COMMENT="amanda@server"
507 COMMENT="amanda@$HOST"
509 /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amdump -N "" || :
510 chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || :
511 chmod 600 /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || :
513 if [ "$1" = "1" ]; then
514 echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
518 if [ "$1" = 0 ]; then
519 %service -q rc-inetd reload
522 %triggerpostun server -- amanda-server < 3.2.0
523 %banner %{name} -e << EOF
524 Warning: Tape changer configuration has chaged, please read
525 %{_docdir}/%{name}-server-%{version}/ReleaseNotes.gz
526 and %{_docdir}/%{name}-server-%{version}/NEWS.gz for details.
527 You can use %{_sbindir}/amconvert-zd-mtx-to-robot.sh script
528 to upgrade to chg-robot.
532 %defattr(644,root,root,755)
533 %doc AUTHORS COPYRIGHT ChangeLog NEWS README ReleaseNotes UPGRADING amlvm-snapshot.README
534 %attr(755,root,root) %{_libdir}/amanda/libamanda*.so
535 %attr(755,root,root) %{_libdir}/amanda/libamar*.so
536 %attr(755,root,root) %{_libdir}/amanda/libamxfer*.so
537 %attr(755,root,root) %{_libdir}/amanda/libamglue*.so
538 %attr(755,root,root) %{_libdir}/amanda/libndmjob*.so
539 %attr(755,root,root) %{_libdir}/amanda/libndmlib*.so
540 %attr(750,amanda,amanda) %dir %{_sysconfdir}/amanda
541 %dir %{_libdir}/amanda
545 %dir %{_libexecdir}/amanda
546 %{_libexecdir}/amanda/amanda-sh-lib.sh
547 %attr(755,root,root) %{_libexecdir}/amanda/amndmjob
548 %attr(755,root,root) %{_libexecdir}/amanda/ndmjob
549 %attr(755,root,root) %{_sbindir}/amarchiver
550 %attr(755,root,root) %{_sbindir}/amcrypt*
551 %attr(755,root,root) %{_sbindir}/amgetconf
552 %attr(755,root,root) %{_sbindir}/amgpgcrypt
553 %attr(750,amanda,amanda) %dir %{_datadir}/amanda
554 %attr(750,amanda,amanda) %dir %{_datadir}/amanda/example
555 %attr(750,amanda,amanda) %dir %{_datadir}/amanda/example/label-templates
556 %attr(640,amanda,amanda) %{_datadir}/amanda/example/*amanda*
557 %attr(640,amanda,amanda) %{_datadir}/amanda/example/disklist
558 %attr(640,amanda,amanda) %{_datadir}/amanda/example/label-templates/*.ps
559 %attr(750,amanda,amanda) %dir %{_datadir}/amanda/template.d
560 %attr(640,amanda,amanda) %{_datadir}/amanda/template.d/*
561 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda
562 %attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.ssh
563 %attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.gnupg
564 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug
565 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/amandad
566 %attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.amandahosts
567 %attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.ssh/config
568 # Commented out so it won't get removed on uninstall
569 #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/authorized_keys
570 %{_mandir}/man5/amanda-archive-format.5*
571 %{_mandir}/man7/amanda-auth.7*
572 %{_mandir}/man7/amanda-match.7*
573 %{_mandir}/man7/amanda-scripts.7*
574 %{_mandir}/man8/amanda.8*
575 %{_mandir}/man8/amarchiver.8*
576 %{_mandir}/man8/amcrypt*.8*
577 %{_mandir}/man8/amgetconf.8*
578 %{_mandir}/man8/amgpgcrypt.8*
579 %{_mandir}/man8/script-email.8*
581 %dir %{perl_vendorarch}/Amanda
582 %dir %{perl_vendorarch}/Amanda/Config
583 %dir %{perl_vendorarch}/Amanda/IPC
584 %{perl_vendorarch}/Amanda/Archive.pm
585 %{perl_vendorarch}/Amanda/BigIntCompat.pm
586 %{perl_vendorarch}/Amanda/ClientService.pm
587 %{perl_vendorarch}/Amanda/Config.pm
588 %{perl_vendorarch}/Amanda/Config/FoldingHash.pm
589 %{perl_vendorarch}/Amanda/Constants.pm
590 %{perl_vendorarch}/Amanda/Debug.pm
591 %{perl_vendorarch}/Amanda/Feature.pm
592 %{perl_vendorarch}/Amanda/Header.pm
593 %{perl_vendorarch}/Amanda/IPC/Binary.pm
594 %{perl_vendorarch}/Amanda/IPC/LineProtocol.pm
595 %{perl_vendorarch}/Amanda/MainLoop.pm
596 %{perl_vendorarch}/Amanda/NDMP.pm
597 %{perl_vendorarch}/Amanda/Paths.pm
598 %{perl_vendorarch}/Amanda/Process.pm
599 %{perl_vendorarch}/Amanda/Script.pm
600 %{perl_vendorarch}/Amanda/Script_App.pm
601 %{perl_vendorarch}/Amanda/Tests.pm
602 %{perl_vendorarch}/Amanda/Util.pm
603 %{perl_vendorarch}/Amanda/Xfer.pm
604 %dir %{perl_vendorarch}/auto/Amanda
605 %dir %{perl_vendorarch}/auto/Amanda/Archive
606 %dir %{perl_vendorarch}/auto/Amanda/Config
607 %dir %{perl_vendorarch}/auto/Amanda/Debug
608 %dir %{perl_vendorarch}/auto/Amanda/Feature
609 %dir %{perl_vendorarch}/auto/Amanda/Header
610 %dir %{perl_vendorarch}/auto/Amanda/IPC
611 %dir %{perl_vendorarch}/auto/Amanda/IPC/Binary
612 %dir %{perl_vendorarch}/auto/Amanda/MainLoop
613 %dir %{perl_vendorarch}/auto/Amanda/NDMP
614 %dir %{perl_vendorarch}/auto/Amanda/Tests
615 %dir %{perl_vendorarch}/auto/Amanda/Util
616 %dir %{perl_vendorarch}/auto/Amanda/Xfer
617 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Archive/*.so
618 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Config/*.so
619 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Feature/*.so
620 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Header/*.so
621 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/IPC/Binary/*.so
622 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Debug/*.so
623 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/MainLoop/*.so
624 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/NDMP/*.so
625 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Tests/*.so
626 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Util/*.so
627 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Xfer/*.so
631 %defattr(644,root,root,755)
632 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amidxtape
633 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amandaidx
635 %config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/amanda.conf
636 %config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/lvm-snapshot.conf
638 # Commented out so it won't get removed on uninstall
639 #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/client_authorized_keys
640 #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amdump*
642 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/server
644 %config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv
646 %attr(755,root,root) %{_libdir}/amanda/libamdevice*.so
647 %attr(755,root,root) %{_libdir}/amanda/libamserver*.so
649 %attr(755,root,root) %{_libexecdir}/amanda/amcat.awk
650 %attr(755,root,root) %{_libexecdir}/amanda/amcheck-device
651 %attr(755,root,root) %{_libexecdir}/amanda/amdumpd
652 %attr(755,root,root) %{_libexecdir}/amanda/amidxtaped
653 %attr(755,root,root) %{_libexecdir}/amanda/amindexd
654 %attr(755,root,root) %{_libexecdir}/amanda/amlogroll
655 %attr(755,root,root) %{_libexecdir}/amanda/amplot.awk
656 %attr(755,root,root) %{_libexecdir}/amanda/amplot.g
657 %attr(755,root,root) %{_libexecdir}/amanda/amplot.gp
658 %attr(755,root,root) %{_libexecdir}/amanda/amtrmidx
659 %attr(755,root,root) %{_libexecdir}/amanda/amtrmlog
660 %attr(755,root,root) %{_libexecdir}/amanda/chunker
661 %attr(755,root,root) %{_libexecdir}/amanda/driver
662 %attr(4750,root,amanda) %{_libexecdir}/amanda/dumper
663 %attr(4750,root,amanda) %{_libexecdir}/amanda/planner
664 %attr(755,root,root) %{_libexecdir}/amanda/taper
666 %attr(755,root,root) %{_sbindir}/activate-devpay
667 %attr(755,root,root) %{_sbindir}/amaddclient
668 %attr(755,root,root) %{_sbindir}/amaespipe
669 %attr(755,root,root) %{_sbindir}/amadmin
670 %attr(4750,root,amanda) %{_sbindir}/amcheck
671 %attr(755,root,root) %{_sbindir}/amcheckdb
672 %attr(755,root,root) %{_sbindir}/amcheckdump
673 %attr(755,root,root) %{_sbindir}/amcleanup
674 %attr(755,root,root) %{_sbindir}/amcleanupdisk
675 %attr(755,root,root) %{_sbindir}/amconvert-zd-mtx-to-robot.sh
676 %attr(755,root,root) %{_sbindir}/amdevcheck
677 %attr(755,root,root) %{_sbindir}/amdump
678 %attr(755,root,root) %{_sbindir}/amfetchdump
679 %attr(755,root,root) %{_sbindir}/amflush
680 %attr(755,root,root) %{_sbindir}/amlabel
681 %attr(755,root,root) %{_sbindir}/amoverview
682 %attr(755,root,root) %{_sbindir}/amplot
683 %attr(755,root,root) %{_sbindir}/amreport
684 %attr(755,root,root) %{_sbindir}/amrestore
685 %attr(755,root,root) %{_sbindir}/amrmtape
686 %attr(755,root,root) %{_sbindir}/amserverconfig
687 %attr(755,root,root) %{_sbindir}/amservice
688 %attr(755,root,root) %{_sbindir}/amstatus
689 %attr(755,root,root) %{_sbindir}/amtape
690 %attr(755,root,root) %{_sbindir}/amtapetype
691 %attr(755,root,root) %{_sbindir}/amtoc
692 %attr(755,root,root) %{_sbindir}/amvault
693 %{_mandir}/man5/amanda.conf.5*
694 %{_mandir}/man5/disklist.5*
695 %{_mandir}/man5/tapelist.5*
696 %{_mandir}/man7/amanda-changers.7*
697 %{_mandir}/man7/amanda-compatibility.7*
698 %{_mandir}/man7/amanda-devices.7*
699 %{_mandir}/man7/amanda-interactivity.7*
700 %{_mandir}/man7/amanda-taperscan.7*
701 %{_mandir}/man8/amaddclient.8*
702 %{_mandir}/man8/amadmin.8*
703 %{_mandir}/man8/amaespipe.8*
704 %{_mandir}/man8/amcheck.8*
705 %{_mandir}/man8/amcheckdb.8*
706 %{_mandir}/man8/amcheckdump.8*
707 %{_mandir}/man8/amcleanup.8*
708 %{_mandir}/man8/amcleanupdisk.8*
709 %{_mandir}/man8/amdevcheck.8*
710 %{_mandir}/man8/amdump.8*
711 %{_mandir}/man8/amfetchdump.8*
712 %{_mandir}/man8/amflush.8*
713 %{_mandir}/man8/amlabel.8*
714 %{_mandir}/man8/amoverview.8*
715 %{_mandir}/man8/amplot.8*
716 %{_mandir}/man8/amreport.8*
717 %{_mandir}/man8/amrestore.8*
718 %{_mandir}/man8/amrmtape.8*
719 %{_mandir}/man8/amserverconfig.8*
720 %{_mandir}/man8/amservice.8*
721 %{_mandir}/man8/amstatus.8*
722 %{_mandir}/man8/amtape.8*
723 %{_mandir}/man8/amtapetype.8*
724 %{_mandir}/man8/amtoc.8*
725 %{_mandir}/man8/amvault.8*
727 %{perl_vendorarch}/Amanda/Changer.pm
728 %dir %{perl_vendorarch}/Amanda/Changer
729 %{perl_vendorarch}/Amanda/Changer/*.pm
730 %{perl_vendorarch}/Amanda/Cmdline.pm
731 %{perl_vendorarch}/Amanda/Curinfo.pm
732 %dir %{perl_vendorarch}/Amanda/Curinfo
733 %{perl_vendorarch}/Amanda/Curinfo/*.pm
734 %dir %{perl_vendorarch}/Amanda/DB
735 %{perl_vendorarch}/Amanda/DB/*.pm
736 %{perl_vendorarch}/Amanda/Device.pm
737 %{perl_vendorarch}/Amanda/Extract.pm
738 %{perl_vendorarch}/Amanda/Disklist.pm
739 %{perl_vendorarch}/Amanda/Holding.pm
740 %{perl_vendorarch}/Amanda/Interactivity.pm
741 %dir %{perl_vendorarch}/Amanda/Interactivity
742 %{perl_vendorarch}/Amanda/Interactivity/*.pm
743 %{perl_vendorarch}/Amanda/Logfile.pm
744 %dir %{perl_vendorarch}/Amanda/Recovery
745 %{perl_vendorarch}/Amanda/Recovery/*.pm
746 %{perl_vendorarch}/Amanda/Report.pm
747 %dir %{perl_vendorarch}/Amanda/Report
748 %{perl_vendorarch}/Amanda/Report/*.pm
749 %{perl_vendorarch}/Amanda/ScanInventory.pm
750 %{perl_vendorarch}/Amanda/Tapelist.pm
751 %dir %{perl_vendorarch}/Amanda/Taper
752 %{perl_vendorarch}/Amanda/Taper/*.pm
753 %dir %{perl_vendorarch}/Amanda/Taper/Scan
754 %{perl_vendorarch}/Amanda/Taper/Scan/*.pm
755 %{perl_vendorarch}/Amanda/XferServer.pm
756 %dir %{perl_vendorarch}/auto/Amanda/Cmdline
757 %dir %{perl_vendorarch}/auto/Amanda/Device
758 %dir %{perl_vendorarch}/auto/Amanda/Disklist
759 %dir %{perl_vendorarch}/auto/Amanda/Logfile
760 %dir %{perl_vendorarch}/auto/Amanda/Tapelist
761 %dir %{perl_vendorarch}/auto/Amanda/XferServer
762 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Cmdline/*.so
763 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Device/*.so
764 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Disklist/*.so
765 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Logfile/*.so
766 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Tapelist/*.so
767 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/XferServer/*.so
772 %defattr(644,root,root,755)
773 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amanda
774 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/k5amanda
775 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,amanda) %{_sysconfdir}/amanda/amanda-client.conf
776 # Commented out so it won't get removed on uninstall
777 #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover*
778 %attr(640,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/amandates
780 %dir %{_libexecdir}/amanda/application
781 %attr(4750,root,amanda) %{_libexecdir}/amanda/application/ambsdtar
782 %attr(4750,root,amanda) %{_libexecdir}/amanda/application/amgtar
783 %attr(755,root,root) %{_libexecdir}/amanda/application/amlog-script
784 %attr(755,root,root) %{_libexecdir}/amanda/application/amlvm-snapshot
785 %attr(755,root,root) %{_libexecdir}/amanda/application/ampgsql
786 %attr(755,root,root) %{_libexecdir}/amanda/application/amraw
787 %attr(755,root,root) %{_libexecdir}/amanda/application/amsamba
788 %attr(4750,root,amanda) %{_libexecdir}/amanda/application/amstar
789 %attr(755,root,root) %{_libexecdir}/amanda/application/amsuntar
790 %attr(755,root,root) %{_libexecdir}/amanda/application/amzfs*
791 %attr(755,root,root) %{_libexecdir}/amanda/application/script-email
793 %attr(755,root,root) %{_libdir}/amanda/libamclient*.so
794 %attr(755,root,root) %{_libexecdir}/amanda/amandad
795 %attr(755,root,root) %{_libexecdir}/amanda/noop
796 %attr(755,root,root) %{_libexecdir}/amanda/patch-system
797 %attr(755,root,root) %{_libexecdir}/amanda/sendbackup
798 %attr(755,root,root) %{_libexecdir}/amanda/sendsize
799 %attr(755,root,root) %{_libexecdir}/amanda/teecount
800 %attr(4750,root,amanda) %{_libexecdir}/amanda/calcsize
801 %attr(4750,root,amanda) %{_libexecdir}/amanda/killpgrp
802 %attr(4750,root,amanda) %{_libexecdir}/amanda/rundump
803 %attr(4750,root,amanda) %{_libexecdir}/amanda/runtar
804 %attr(755,root,root) %{_libexecdir}/amanda/selfcheck
805 %attr(755,root,root) %{_sbindir}/amdump_client
806 %attr(755,root,root) %{_sbindir}/amoldrecover
807 %attr(755,root,root) %{_sbindir}/amrecover
808 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/gnutar-lists
809 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/client
810 %{_mandir}/man7/amanda-applications.7*
811 %{_mandir}/man5/amanda-client.conf.5*
812 %{_mandir}/man8/amdump_client.8*
813 %{_mandir}/man8/ambsdtar.8*
814 %{_mandir}/man8/amgtar.8*
815 %{_mandir}/man8/ampgsql.8*
816 %{_mandir}/man8/amrecover.8*
817 %{_mandir}/man8/amraw.8*
818 %{_mandir}/man8/amsamba.8*
819 %{_mandir}/man8/amstar.8*
820 %{_mandir}/man8/amsuntar.8*
821 %{_mandir}/man8/amzfs*.8*
823 %{perl_vendorarch}/Amanda/Application.pm
824 %dir %{perl_vendorarch}/Amanda/Application
825 %{perl_vendorarch}/Amanda/Application/Zfs.pm
826 %dir %{perl_vendorarch}/auto/Amanda/Application
827 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Application/*.so