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