]> git.pld-linux.org Git - packages/amanda.git/blob - amanda.spec
- rel 2
[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:        2.6.0p1
13 Release:        2
14 License:        BSD
15 Group:          Networking/Utilities
16 Source0:        http://dl.sourceforge.net/amanda/%{name}-%{version}.tar.gz
17 # Source0-md5:  afadad80e0a27963a24b510755470983
18 Source1:        %{name}-srv.crontab
19 Source2:        %{name}.inetd
20 Source3:        %{name}idx.inetd
21 Source4:        amidxtape.inetd
22 Patch0:         %{name}-no_libnsl.patch
23 Patch1:         %{name}-chg-zd-mtx-sh.patch
24 Patch2:         %{name}-tar.patch
25 Patch3:         %{name}-bashizm.patch
26 Patch4:         %{name}-as_needed.patch
27 Patch5:         %{name}-tapetypes.patch
28 Patch6:         %{name}-FHS.patch
29 Patch7:         %{name}-no-buildtime-ipv6.patch
30 Patch8:         %{name}-heimdal.patch
31 Patch9:         %{name}-amtoc.patch
32 URL:            http://www.amanda.org/
33 BuildRequires:  autoconf >= 2.53
34 BuildRequires:  automake
35 BuildRequires:  curl-devel >= 7.10.0
36 BuildRequires:  dump
37 BuildRequires:  flex
38 BuildRequires:  glib2-devel
39 # curl is broken, see curl-config --libs
40 BuildRequires:  keyutils-devel
41 BuildRequires:  krb5-devel >= 1.6-4
42 BuildRequires:  libtool
43 BuildRequires:  libxslt-progs
44 BuildRequires:  ncurses-devel
45 BuildRequires:  openssh-clients
46 BuildRequires:  openssl-devel
47 BuildRequires:  perl-devel >= 5.6.0
48 BuildRequires:  pkgconfig
49 BuildRequires:  readline-devel >= 4.2
50 BuildRequires:  rpmbuild(macros) >= 1.268
51 %{?with_samba:BuildRequires:    samba-client}
52 BuildRequires:  swig
53 %{?with_xfs:BuildRequires:      xfsdump}
54 Conflicts:      shadow < 1:4.0.4.1-4
55 Conflicts:      pwdutils < 3.1.2-2
56 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58 %define         _ulibdir        %{_prefix}/lib
59
60 %description
61 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
62 backup system that allows the administrator of a LAN to set up a
63 single master backup server to back up multiple hosts to a single
64 large capacity tape drive. AMANDA uses native dump and/or GNU tar
65 facilities and can back up a large number of workstations running
66 multiple versions of Unix. Newer versions of AMANDA (including this
67 version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
68 The amanda package contains the core AMANDA programs and will need to
69 be installed on both AMANDA clients and AMANDA servers. Note that you
70 will have to install the amanda-client and amanda-server packages as
71 well.
72
73 %description -l pl.UTF-8
74 AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
75 zapasowych. Umożliwia administratorowi sieci tworzenie kopii z kilku
76 hostów na jednej maszynie wyposażonej w pojemny dysk lub streamer.
77 Nowsze wersje programu umożliwiają zabezpieczanie zasobów Microsoft
78 Windows 95/98/NT/2000 przy użyciu protokołu Samba. Ten pakiet zawiera
79 podstawowe pliki programu i powinien być zainstalowany zarówno na
80 serwerze jak i na kliencie. Pamiętaj także o instalacji pakietów
81 amanda-client i amanda-server!
82
83 %package libs
84 Summary:        Amanda shared libraries
85 Summary(pl.UTF-8):      Biblioteki współdzielone pakietu amanda
86 Group:          Networking/Utilities
87 Requires(postun):       /usr/sbin/groupdel
88 Requires(postun):       /usr/sbin/userdel
89 Requires(pre):  /bin/id
90 Requires(pre):  /usr/bin/chsh
91 Requires(pre):  /usr/bin/getgid
92 Requires(pre):  /usr/sbin/groupadd
93 Requires(pre):  /usr/sbin/useradd
94 Provides:       group(amanda)
95 Provides:       user(amanda)
96
97 %description libs
98 Amanda shared libraries.
99
100 %description libs -l pl.UTF-8
101 Biblioteki współdzielone pakietu amanda.
102
103 %package client
104 Summary:        The client side of Amanda
105 Summary(pl.UTF-8):      Klient Amandy
106 Group:          Networking/Utilities
107 Requires(post): /bin/hostname
108 Requires(post): /usr/bin/ssh-keygen
109 Requires:       %{name}-libs = %{version}-%{release}
110 Requires:       rc-inetd
111 Suggests:       openssh-clients
112 Suggests:       openssh-server
113 Suggests:       tar
114 Suggests:       gzip
115 Suggests:       star
116 Conflicts:      tar < 1.15
117
118 %description client
119 The Amanda-client package should be installed on any machine that will
120 be backed up by AMANDA (including the server if it also needs to be
121 backed up). You will also need to install the amanda package to each
122 AMANDA client. It requires at least one of dump and GNU tar installed.
123
124 %description client -l pl.UTF-8
125 Ten pakiet powinien być zainstalowany ma maszynach, z których
126 zawartości będą tworzone kopie zapasowe. Wymaga zainstalowanego co
127 najmniej jednego z pakietów dump i GNU tar.
128
129 %package server
130 Summary:        The server side of Amanda
131 Summary(pl.UTF-8):      Serwer Amandy
132 Group:          Networking/Utilities
133 Requires(post): /bin/hostname
134 Requires(post): /usr/bin/ssh-keygen
135 Requires:       %{name}-libs = %{version}-%{release}
136 Requires:       %{name}-perl = %{version}-%{release}
137 Requires:       /etc/cron.d
138 Requires:       crondaemon
139 Requires:       gnuplot
140 Requires:       mt-st
141 Requires:       mtx
142 Requires:       rc-inetd
143 Suggests:       openssh-clients
144 Suggests:       openssh-server
145 Obsoletes:      amanda
146 Obsoletes:      amanda-perl-server
147
148 %description server
149 The amanda-server package should be installed on the AMANDA server,
150 the machine attached to the device (such as a tape drive) where
151 backups will be written. You will also need to install the amanda
152 package to the AMANDA server. And, if the server is also to be backed
153 up, the server also needs to have the amanda-client package installed.
154
155 %description server -l pl.UTF-8
156 Ten pakiet powinien być zainstalowany na maszynach, na których będą
157 magazynowane kopie zapasowe (lub do których podpięte są urządzenia
158 typu streamer).
159
160 %package perl
161 Summary:        Perl bindings for amanda
162 Summary(pl.UTF-8):      Wiązania perla dla Amandy
163 Group:          Networking/Utilities
164 Requires:       %{name}-libs = %{version}-%{release}
165
166 %description perl
167 Perl bindings for amanda.
168
169 %description perl -l pl.UTF-8
170 Wiązania perla dla Amandy.
171
172 %prep
173 %setup -q
174 %patch0 -p1
175 %patch1 -p1
176 %patch2 -p1
177 %patch3 -p1
178 %patch4 -p1
179 %patch5 -p1
180 %patch6 -p1
181 %patch7 -p1
182 %patch8 -p1
183 %patch9 -p1
184
185 %build
186 %{__aclocal} -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive
187 %{__autoconf}
188 %{__automake}
189 %configure \
190         DUMP=/sbin/dump \
191         GNUPLOT=/usr/bin/gnuplot \
192         GZIP=/bin/gzip \
193         MAILER=/bin/mail \
194         MT=/bin/mt \
195         MTX=/usr/sbin/mtx \
196         PRINT=/usr/bin/lpr \
197         RESTORE=/sbin/restore \
198         STAR=/usr/bin/star \
199         %{?with_xfs:XFSDUMP=/sbin/xfsdump} \
200         %{?with_xfs:XFSRESTORE=/sbin/xfsrestore} \
201         --disable-static \
202         --enable-shared \
203         %{!?with_server:--without-server} \
204         %{!?with_client:--without-client} \
205         --with-index-server=localhost \
206         --with-user=amanda \
207         --with-group=amanda \
208         --with-tape-device=/dev/null \
209         --with-ftape-rawdevice=/dev/null \
210         --with-changer-device=/dev/null \
211         --with-fqdn \
212         %{?with_samba:--with-smbclient=%{_bindir}/smbclient} \
213         --with-bsd-security \
214         --with-ssh-security \
215         --with-krb5-security \
216         --without-krb4-security \
217         --with-buffered-dump \
218         --with-amandahosts \
219         --with-configdir=%{_sysconfdir}/amanda \
220         --with-gnutar-listdir=%{_sharedstatedir}/amanda/gnutar-lists \
221         --with-amandates=%{_sharedstatedir}/amanda/amandates \
222         --with-debugging=%{_sharedstatedir}/amanda/debug \
223         --with-tmpdir=/var/tmp \
224         --with-amperldir=%{perl_vendorarch} \
225         --with-ipv6 \
226         --disable-installperms
227
228 %{__make}
229
230 %install
231 rm -rf $RPM_BUILD_ROOT
232 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \
233         $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/{.gnupg,.ssh,gnutar-lists} \
234         $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/debug/{amandad,client,server}
235
236 %{__make} install \
237         DESTDIR=$RPM_BUILD_ROOT
238
239 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
240 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE2} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
241 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
242 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE4} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
243
244 install example/amanda.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
245 install example/amanda-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
246 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.amandahosts
247
248 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/{,client_}authorized_keys
249 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amdump{,.pub}
250 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover{,.pub}
251
252 > $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/amandates
253
254 # Amanda tools generate ssh keys with embeded commands pointing to /usr/lib
255 # Tools can't be "fixed" because keys generated on server are to be used on client
256 if [ "%{_lib}" != "lib" ] ; then
257         install -d $RPM_BUILD_ROOT%{_ulibdir}
258         ln -s %{_libdir}/amanda $RPM_BUILD_ROOT%{_ulibdir}/amanda
259 fi
260
261 find $RPM_BUILD_ROOT -name \*.la | xargs rm -f
262
263 %clean
264 rm -rf $RPM_BUILD_ROOT
265
266 %triggerpostun libs -- %{name}-libs < 2.5.1p2-1
267 echo "Adding amanda to disk and backup groups"
268 /usr/sbin/usermod -G disk,backup amanda
269 echo "Setting amanda shell to /bin/sh"
270 /usr/bin/chsh -s /bin/sh amanda
271 if [ -f %{_sharedstatedir}/amanda/.amandahosts ]; then
272         echo "Fixing permissions of %{_sharedstatedir}/amanda/.amandahosts file"
273         chown amanda:amanda %{_sharedstatedir}/amanda/.amandahosts
274         chmod 600 %{_sharedstatedir}/amanda/.amandahosts
275 fi
276
277 %pre libs
278 %groupadd -P %{name}-libs -g 80 amanda
279 %useradd -P %{name}-libs -u 80 -G disk,backup -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda
280
281 %postun libs
282 if [ "$1" = "0" ]; then
283         %userremove amanda
284         %groupremove amanda
285 fi
286
287 %post client
288 %service -q rc-inetd reload
289 if [ ! -e /var/lib/amanda/.ssh/id_rsa_amrecover ] ; then
290         HOST="`/bin/hostname`"
291         FQDNHOST="`/bin/hostname -f`"
292         if [ -z "$HOST" ] ; then
293                 COMMENT="root@client"
294         else
295                 COMMENT="root@$HOST"
296         fi
297         /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amrecover -N "" || :
298         chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || :
299         chmod 600 /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || :
300         if [ -n "$FQDNHOST" ]; then
301                 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
302                 cat /var/lib/amanda/.ssh/id_rsa_amrecover.pub >>/var/lib/amanda/.ssh/server_authorized_keys
303
304                 echo "Remember to copy the contents of /var/lib/amanda/.ssh/server_authorized_keys to"
305                 echo "/var/lib/amanda/.ssh/authorized_keys on amanda server"
306         fi
307 fi
308
309 %postun client
310 if [ "$1" = 0 ]; then
311         %service -q rc-inetd reload
312 fi
313
314 %post server
315 %service -q rc-inetd reload
316 if [ ! -e /var/lib/amanda/.ssh/id_rsa_amdump ] ; then
317         HOST="`/bin/hostname`"
318         if [ -z "$HOST" ] ; then
319                 COMMENT="amanda@server"
320         else
321                 COMMENT="amanda@$HOST"
322         fi
323         /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amdump -N "" || :
324         chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || :
325         chmod 600 /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || :
326 fi
327 if [ "$1" = "1" ]; then
328         echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
329 fi
330
331 %postun server
332 if [ "$1" = 0 ]; then
333         %service -q rc-inetd reload
334 fi
335
336 %files libs
337 %defattr(644,root,root,755)
338 %doc AUTHORS COPYRIGHT ChangeLog NEWS README ReleaseNotes UPGRADING
339 %attr(755,root,root) %{_libdir}/amanda/libamanda*.so
340 %attr(750,amanda,amanda) %dir %{_sysconfdir}/amanda
341 %dir %{_libdir}/amanda
342 %if %{_lib} != "lib"
343 %{_ulibdir}/amanda
344 %endif
345 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda
346 %attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.ssh
347 %attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.gnupg
348 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug
349 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/amandad
350 %attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.amandahosts
351 # Commented out so it won't get removed on uninstall
352 #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/authorized_keys
353
354 %if %{with server}
355 %files server
356 %defattr(644,root,root,755)
357 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amidxtape
358 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amandaidx
359
360 %config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/amanda.conf
361
362 # Commented out so it won't get removed on uninstall
363 #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/client_authorized_keys
364 #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amdump*
365
366 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/example
367 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/example/label-templates
368 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/template.d
369 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/server
370 %attr(640,amanda,amanda) %{_sharedstatedir}/amanda/example/*amanda*
371 %attr(640,amanda,amanda) %{_sharedstatedir}/amanda/example/label-templates/*.ps
372 %attr(640,amanda,amanda) %{_sharedstatedir}/amanda/template.d/*
373
374 %config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv
375
376 %attr(755,root,root) %{_libdir}/amanda/libamdevice*.so
377 %attr(755,root,root) %{_libdir}/amanda/libamserver*.so
378 %attr(755,root,root) %{_libdir}/amanda/libamtape*.so
379 %attr(755,root,root) %{_libdir}/amanda/librestore*.so
380
381 %{_libdir}/amanda/amanda-sh-lib.sh
382 %attr(755,root,root) %{_libdir}/amanda/amcat.awk
383 %attr(755,root,root) %{_libdir}/amanda/amcleanupdisk
384 %attr(755,root,root) %{_libdir}/amanda/amidxtaped
385 %attr(755,root,root) %{_libdir}/amanda/amindexd
386 %attr(755,root,root) %{_libdir}/amanda/amlogroll
387 %attr(755,root,root) %{_libdir}/amanda/amplot.awk
388 %attr(755,root,root) %{_libdir}/amanda/amplot.g
389 %attr(755,root,root) %{_libdir}/amanda/amplot.gp
390 %attr(755,root,root) %{_libdir}/amanda/amtrmidx
391 %attr(755,root,root) %{_libdir}/amanda/amtrmlog
392 %attr(755,root,root) %{_libdir}/amanda/chg-chio
393 %attr(755,root,root) %{_libdir}/amanda/chg-chs
394 %attr(755,root,root) %{_libdir}/amanda/chg-disk
395 %attr(755,root,root) %{_libdir}/amanda/chg-iomega
396 %attr(755,root,root) %{_libdir}/amanda/chg-juke
397 %attr(755,root,root) %{_libdir}/amanda/chg-lib.sh
398 %attr(755,root,root) %{_libdir}/amanda/chg-manual
399 %attr(755,root,root) %{_libdir}/amanda/chg-mcutil
400 %attr(755,root,root) %{_libdir}/amanda/chg-mtx
401 %attr(755,root,root) %{_libdir}/amanda/chg-multi
402 %attr(755,root,root) %{_libdir}/amanda/chg-null
403 %attr(755,root,root) %{_libdir}/amanda/chg-rait
404 %attr(755,root,root) %{_libdir}/amanda/chg-rth
405 %attr(755,root,root) %{_libdir}/amanda/chg-scsi
406 %attr(755,root,root) %{_libdir}/amanda/chg-zd-mtx
407 %attr(755,root,root) %{_libdir}/amanda/chunker
408 %attr(755,root,root) %{_libdir}/amanda/driver
409 %attr(4750,root,amanda) %{_libdir}/amanda/dumper
410 %attr(755,root,root) %{_libdir}/amanda/patch-system
411 %attr(4750,root,amanda) %{_libdir}/amanda/planner
412 %attr(755,root,root) %{_libdir}/amanda/taper
413
414 %attr(755,root,root) %{_sbindir}/amaddclient
415 %attr(755,root,root) %{_sbindir}/amadmin
416 %attr(755,root,root) %{_sbindir}/amaespipe
417 %attr(4750,root,amanda) %{_sbindir}/amcheck
418 %attr(755,root,root) %{_sbindir}/amcheckdb
419 %attr(755,root,root) %{_sbindir}/amcheckdump
420 %attr(755,root,root) %{_sbindir}/amcleanup
421 %attr(755,root,root) %{_sbindir}/amcrypt*
422 %attr(755,root,root) %{_sbindir}/amdd
423 %attr(755,root,root) %{_sbindir}/amdevcheck
424 %attr(755,root,root) %{_sbindir}/amdump
425 %attr(755,root,root) %{_sbindir}/amfetchdump
426 %attr(755,root,root) %{_sbindir}/amflush
427 %attr(755,root,root) %{_sbindir}/amgetconf
428 %attr(755,root,root) %{_sbindir}/amgpgcrypt
429 %attr(755,root,root) %{_sbindir}/amlabel
430 %attr(755,root,root) %{_sbindir}/ammt
431 %attr(755,root,root) %{_sbindir}/amoverview
432 %attr(755,root,root) %{_sbindir}/amplot
433 %attr(755,root,root) %{_sbindir}/amreport
434 %attr(755,root,root) %{_sbindir}/amrestore
435 %attr(755,root,root) %{_sbindir}/amrmtape
436 %attr(755,root,root) %{_sbindir}/amserverconfig
437 %attr(755,root,root) %{_sbindir}/amstatus
438 %attr(755,root,root) %{_sbindir}/amtape
439 %attr(755,root,root) %{_sbindir}/amtapetype
440 %attr(755,root,root) %{_sbindir}/amtoc
441 %attr(755,root,root) %{_sbindir}/amverify
442 %attr(755,root,root) %{_sbindir}/amverifyrun
443 %{_mandir}/man5/amanda.conf.5*
444 %{_mandir}/man8/amaddclient.8*
445 %{_mandir}/man8/amadmin.8*
446 %{_mandir}/man8/amaespipe.8*
447 %{_mandir}/man8/amanda.8*
448 %{_mandir}/man8/amcheck.8*
449 %{_mandir}/man8/amcheckdb.8*
450 %{_mandir}/man8/amcheckdump.8*
451 %{_mandir}/man8/amcleanup.8*
452 %{_mandir}/man8/amcrypt*.8*
453 %{_mandir}/man8/amdd.8*
454 %{_mandir}/man8/amdevcheck.8*
455 %{_mandir}/man8/amdump.8*
456 %{_mandir}/man8/amfetchdump.8*
457 %{_mandir}/man8/amflush.8*
458 %{_mandir}/man8/amgetconf.8*
459 %{_mandir}/man8/amgpgcrypt.8*
460 %{_mandir}/man8/amlabel.8*
461 %{_mandir}/man8/ammt.8*
462 %{_mandir}/man8/amoverview.8*
463 %{_mandir}/man8/amplot.8*
464 %{_mandir}/man8/amreport.8*
465 %{_mandir}/man8/amrestore.8*
466 %{_mandir}/man8/amrmtape.8*
467 %{_mandir}/man8/amserverconfig.8*
468 %{_mandir}/man8/amstatus.8*
469 %{_mandir}/man8/amtape.8*
470 %{_mandir}/man8/amtapetype.8*
471 %{_mandir}/man8/amtoc.8*
472 %{_mandir}/man8/amverify.8*
473 %{_mandir}/man8/amverifyrun.8*
474
475 %{perl_vendorarch}/Amanda/Changer.pm
476 %{perl_vendorarch}/Amanda/Cmdline.pm
477 %{perl_vendorarch}/Amanda/Device.pm
478 %{perl_vendorarch}/Amanda/Logfile.pm
479 %{perl_vendorarch}/Amanda/Tapefile.pm
480 %dir %{perl_vendorarch}/auto/Amanda/Cmdline
481 %dir %{perl_vendorarch}/auto/Amanda/Device
482 %dir %{perl_vendorarch}/auto/Amanda/Logfile
483 %dir %{perl_vendorarch}/auto/Amanda/Tapefile
484 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Cmdline/*.so
485 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Device/*.so
486 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Logfile/*.so
487 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Tapefile/*.so
488 %endif
489
490 %if %{with client}
491 %files client
492 %defattr(644,root,root,755)
493 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amanda
494 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,amanda) %{_sysconfdir}/amanda/amanda-client.conf
495 # Commented out so it won't get removed on uninstall
496 #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover*
497 %attr(640,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/amandates
498
499 %dir %{_libdir}/amanda/application
500 %attr(755,root,root) %{_libdir}/amanda/application/amgtar
501 %attr(644,root,root) %{_libdir}/amanda/application/generic-dumper
502
503 %attr(755,root,root) %{_libdir}/amanda/libamclient*.so
504 %attr(755,root,root) %{_libdir}/amanda/amandad
505 %attr(755,root,root) %{_libdir}/amanda/noop
506 %attr(755,root,root) %{_libdir}/amanda/sendbackup
507 %attr(755,root,root) %{_libdir}/amanda/sendsize
508 %attr(755,root,root) %{_libdir}/amanda/versionsuffix
509 %attr(4750,root,amanda) %{_libdir}/amanda/calcsize
510 %attr(4750,root,amanda) %{_libdir}/amanda/killpgrp
511 %attr(4750,root,amanda) %{_libdir}/amanda/rundump
512 %attr(4750,root,amanda) %{_libdir}/amanda/runtar
513 %attr(755,root,root) %{_libdir}/amanda/selfcheck
514 %attr(755,root,root) %{_sbindir}/amoldrecover
515 %attr(755,root,root) %{_sbindir}/amrecover
516 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/gnutar-lists
517 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/client
518 %{_mandir}/man5/amanda-client.conf.5*
519 %{_mandir}/man8/amrecover.8*
520 %endif
521
522 %files perl
523 %defattr(644,root,root,755)
524 %attr(755,root,root) %{_libdir}/amanda/libamglue*.so
525 %dir %{perl_vendorarch}/Amanda
526 %{perl_vendorarch}/Amanda/Config.pm
527 %{perl_vendorarch}/Amanda/Debug.pm
528 %{perl_vendorarch}/Amanda/Paths.pm
529 %{perl_vendorarch}/Amanda/Types.pm
530 %{perl_vendorarch}/Amanda/Util.pm
531 %dir %{perl_vendorarch}/auto/Amanda
532 %dir %{perl_vendorarch}/auto/Amanda/Config
533 %dir %{perl_vendorarch}/auto/Amanda/Debug
534 %dir %{perl_vendorarch}/auto/Amanda/Types
535 %dir %{perl_vendorarch}/auto/Amanda/Util
536 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Config/*.so
537 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Debug/*.so
538 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Types/*.so
539 %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Util/*.so
This page took 0.075817 seconds and 4 git commands to generate.