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