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