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