]>
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 |
c240a314 | 15 | Release: 4 |
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 |
11e3bc93 JR |
33 | Patch1: %{name}-tar.patch |
34 | Patch2: %{name}-common.patch | |
35 | Patch3: %{name}-as_needed.patch | |
36 | Patch4: %{name}-tapetypes.patch | |
37 | Patch5: %{name}-FHS.patch | |
38 | Patch6: %{name}-no-buildtime-ipv6.patch | |
39 | Patch7: %{name}-heimdal.patch | |
40 | Patch8: %{name}-ac.patch | |
41 | Patch9: %{name}-krb5-auth.patch | |
42 | Patch10: swig.patch | |
43 | Patch11: krb5-ac.patch | |
c240a314 JR |
44 | Patch12: missing-extern.patch |
45 | Patch13: tirpc.patch | |
5dbc26fb | 46 | URL: http://www.amanda.org/ |
a278cf9e | 47 | %{?with_samba:BuildRequires: /usr/bin/smbclient} |
0f15b6ab | 48 | BuildRequires: autoconf >= 2.64 |
7bb8ef98 | 49 | BuildRequires: automake |
106e7764 | 50 | BuildRequires: curl-devel >= 7.10.0 |
b083e9f8 | 51 | BuildRequires: dump |
47d7a19a | 52 | BuildRequires: flex |
c8cba693 | 53 | BuildRequires: glib2-devel |
5c693887 | 54 | BuildRequires: gnuplot |
686209a5 | 55 | BuildRequires: heimdal-devel |
a278cf9e ER |
56 | BuildRequires: rpmbuild(macros) >= 1.654 |
57 | # curl is broken, see curl-config --libs (c8cba693) | |
31fd601a | 58 | BuildRequires: keyutils-devel |
c240a314 | 59 | BuildRequires: libtirpc-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 |
11e3bc93 | 208 | %patch1 -p1 |
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 |
11e3bc93 JR |
217 | %patch10 -p1 |
218 | %patch11 -p1 | |
c240a314 JR |
219 | %patch12 -p1 |
220 | %patch13 -p1 | |
072637cc | 221 | cp -a %{SOURCE10} . |
64e6fb7c | 222 | |
253b3911 JR |
223 | find perl/ -name '*.swg' -print0 | xargs -0 touch |
224 | ||
64e6fb7c | 225 | %build |
0f15b6ab | 226 | %{__libtoolize} |
c8cba693 | 227 | %{__aclocal} -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive |
5154d365 | 228 | %{__autoconf} |
5154d365 | 229 | %{__automake} |
b083e9f8 | 230 | %configure \ |
5c0ffaf3 | 231 | DUMP=/sbin/dump \ |
5c0ffaf3 | 232 | GZIP=/bin/gzip \ |
67f09374 | 233 | MAILER=/bin/mail \ |
5c0ffaf3 JR |
234 | MT=/bin/mt \ |
235 | MTX=/usr/sbin/mtx \ | |
67f09374 | 236 | PRINT=/usr/bin/lpr \ |
67f09374 | 237 | RESTORE=/sbin/restore \ |
a9736a51 JR |
238 | %{?with_xfs:XFSDUMP=/sbin/xfsdump} \ |
239 | %{?with_xfs:XFSRESTORE=/sbin/xfsrestore} \ | |
fa26b3d0 | 240 | --disable-static \ |
8ae81366 | 241 | --enable-shared \ |
a9736a51 JR |
242 | %{!?with_server:--without-server} \ |
243 | %{!?with_client:--without-client} \ | |
64e6fb7c | 244 | --with-index-server=localhost \ |
fa26b3d0 | 245 | --with-user=amanda \ |
246 | --with-group=amanda \ | |
fa26b3d0 | 247 | --with-tape-device=/dev/null \ |
fa26b3d0 | 248 | --with-fqdn \ |
7ba1ec44 | 249 | %{?with_samba:--with-smbclient=%{_bindir}/smbclient} \ |
824da05b JR |
250 | --with-star=%{_bindir}/star \ |
251 | --with-gnuplot=%{_bindir}/gnuplot \ | |
fa26b3d0 | 252 | --with-bsd-security \ |
a4070aee | 253 | --with-bsdtcp-security \ |
a9736a51 | 254 | --with-ssh-security \ |
b2b905b0 | 255 | --with-krb5-security \ |
fa26b3d0 | 256 | --with-buffered-dump \ |
83e7acbd | 257 | --with-amandahosts \ |
d4c615c9 | 258 | --with-configdir=%{_sysconfdir}/amanda \ |
c8f2ee48 | 259 | --with-gnutar-listdir=%{_sharedstatedir}/amanda/gnutar-lists \ |
c8cba693 JR |
260 | --with-amandates=%{_sharedstatedir}/amanda/amandates \ |
261 | --with-debugging=%{_sharedstatedir}/amanda/debug \ | |
824da05b | 262 | --with-tmpdir=/var/tmp/amanda \ |
c8cba693 | 263 | --with-amperldir=%{perl_vendorarch} \ |
7d023072 | 264 | --with-ipv6 \ |
824da05b | 265 | --with-readline \ |
c8cba693 | 266 | --disable-installperms |
fa26b3d0 | 267 | |
f8165eb1 | 268 | %{__make} |
64e6fb7c | 269 | |
270 | %install | |
271 | rm -rf $RPM_BUILD_ROOT | |
a895e21d | 272 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/{amanda,cron.d,sysconfig/rc-inetd} \ |
106e7764 | 273 | $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/{.gnupg,.ssh,gnutar-lists} \ |
5c0ffaf3 | 274 | $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/debug/{amandad,client,server} |
b083e9f8 | 275 | |
15ce42ff | 276 | %{__make} install \ |
c8cba693 | 277 | DESTDIR=$RPM_BUILD_ROOT |
fa26b3d0 | 278 | |
a278cf9e | 279 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv |
4b4b52b8 JR |
280 | sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE2} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda |
281 | sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx | |
282 | sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE4} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape | |
e4d1512f | 283 | sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE5} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/k5amanda |
b083e9f8 | 284 | |
a278cf9e ER |
285 | cp -p example/amanda.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda |
286 | cp -p example/amanda-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda | |
c8cba693 | 287 | touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.amandahosts |
ff131879 | 288 | |
a278cf9e | 289 | install -p %{SOURCE6} $RPM_BUILD_ROOT%{_sbindir}/amconvert-zd-mtx-to-robot.sh |
824da05b | 290 | |
a278cf9e | 291 | cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/config |
106e7764 JR |
292 | touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/{,client_}authorized_keys |
293 | touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amdump{,.pub} | |
294 | touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover{,.pub} | |
295 | ||
c29a68ef | 296 | %if %{with server} |
a278cf9e | 297 | cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/amanda/lvm-snapshot.conf |
c29a68ef JR |
298 | %endif |
299 | ||
300 | %if %{with client} | |
1710bed5 | 301 | sed -e 's|@@PERL_VENDORARCH@@|%{perl_vendorarch}|' %{SOURCE9} >$RPM_BUILD_ROOT%{_libexecdir}/amanda/application/amlvm-snapshot |
c29a68ef | 302 | %endif |
072637cc | 303 | |
c8cba693 JR |
304 | > $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/amandates |
305 | ||
aa667a14 JR |
306 | # Amanda tools generate ssh keys with embeded commands pointing to /usr/lib |
307 | # Tools can't be "fixed" because keys generated on server are to be used on client | |
308 | if [ "%{_lib}" != "lib" ] ; then | |
309 | install -d $RPM_BUILD_ROOT%{_ulibdir} | |
310 | ln -s %{_libdir}/amanda $RPM_BUILD_ROOT%{_ulibdir}/amanda | |
311 | fi | |
312 | ||
c8cba693 | 313 | find $RPM_BUILD_ROOT -name \*.la | xargs rm -f |
b083e9f8 | 314 | |
824da05b JR |
315 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes} |
316 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/amanda/example/{chg-multi,chg-scsi}.conf | |
317 | ||
fa26b3d0 | 318 | %clean |
64e6fb7c | 319 | rm -rf $RPM_BUILD_ROOT |
320 | ||
5c693887 | 321 | %triggerpostun common -- amanda-libs < 2.6.0p2-3 |
5f9ce2ec JR |
322 | echo "Adding amanda to disk and tape groups" |
323 | /usr/sbin/usermod -G disk,tape amanda | |
e28e7d88 JR |
324 | echo "Setting amanda shell to /bin/sh" |
325 | /usr/bin/chsh -s /bin/sh amanda | |
c8cba693 JR |
326 | if [ -f %{_sharedstatedir}/amanda/.amandahosts ]; then |
327 | echo "Fixing permissions of %{_sharedstatedir}/amanda/.amandahosts file" | |
328 | chown amanda:amanda %{_sharedstatedir}/amanda/.amandahosts | |
329 | chmod 600 %{_sharedstatedir}/amanda/.amandahosts | |
a148ef70 | 330 | fi |
611427b2 | 331 | |
c29a68ef JR |
332 | %triggerpostun common -- amanda-common < 3.3 |
333 | %banner %{name}-common -e << EOF | |
334 | In amanda 3.3 the default auth has changed to "bsdtcp", | |
335 | if you are using the default "bsd" then you must add it | |
336 | to your configuration: | |
337 | ||
338 | * in amanda.conf | |
339 | * in amanda-client.conf | |
340 | * in dumptype/disklist | |
341 | * in inetd (if no '-auth' argument to amandad) | |
342 | EOF | |
31fd601a | 343 | |
5c693887 JR |
344 | %pre common |
345 | %groupadd -P %{name}-common -g 80 amanda | |
346 | %useradd -P %{name}-common -u 80 -G disk,tape -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda | |
0da854c3 | 347 | |
5c693887 | 348 | %postun common |
0da854c3 | 349 | if [ "$1" = "0" ]; then |
934dc2b1 | 350 | %userremove amanda |
351 | %groupremove amanda | |
0da854c3 | 352 | fi |
353 | ||
b083e9f8 | 354 | %post client |
35efb826 | 355 | %service -q rc-inetd reload |
aa667a14 JR |
356 | if [ ! -e /var/lib/amanda/.ssh/id_rsa_amrecover ] ; then |
357 | HOST="`/bin/hostname`" | |
c3701baf | 358 | FQDNHOST="`/bin/hostname -f`" |
106e7764 JR |
359 | if [ -z "$HOST" ] ; then |
360 | COMMENT="root@client" | |
361 | else | |
362 | COMMENT="root@$HOST" | |
363 | fi | |
364 | /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amrecover -N "" || : | |
365 | chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || : | |
366 | chmod 600 /var/lib/amanda/.ssh/id_rsa_amrecover{,.pub} || : | |
c3701baf JR |
367 | if [ -n "$FQDNHOST" ]; then |
368 | 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 | |
369 | cat /var/lib/amanda/.ssh/id_rsa_amrecover.pub >>/var/lib/amanda/.ssh/server_authorized_keys | |
370 | ||
371 | echo "Remember to copy the contents of /var/lib/amanda/.ssh/server_authorized_keys to" | |
372 | echo "/var/lib/amanda/.ssh/authorized_keys on amanda server" | |
373 | fi | |
106e7764 | 374 | fi |
b083e9f8 | 375 | |
376 | %postun client | |
35efb826 ER |
377 | if [ "$1" = 0 ]; then |
378 | %service -q rc-inetd reload | |
47123b2c | 379 | fi |
b083e9f8 | 380 | |
381 | %post server | |
35efb826 | 382 | %service -q rc-inetd reload |
aa667a14 JR |
383 | if [ ! -e /var/lib/amanda/.ssh/id_rsa_amdump ] ; then |
384 | HOST="`/bin/hostname`" | |
106e7764 JR |
385 | if [ -z "$HOST" ] ; then |
386 | COMMENT="amanda@server" | |
387 | else | |
388 | COMMENT="amanda@$HOST" | |
389 | fi | |
390 | /usr/bin/ssh-keygen -t rsa -C $COMMENT -f /var/lib/amanda/.ssh/id_rsa_amdump -N "" || : | |
391 | chown amanda:amanda /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || : | |
392 | chmod 600 /var/lib/amanda/.ssh/id_rsa_amdump{,.pub} || : | |
393 | fi | |
856a76de JB |
394 | if [ "$1" = "1" ]; then |
395 | echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2 | |
396 | fi | |
9a3836ba JR |
397 | |
398 | %postun server | |
399 | if [ "$1" = 0 ]; then | |
400 | %service -q rc-inetd reload | |
401 | fi | |
402 | ||
403 | %triggerpostun server -- amanda-server < 3.2.0 | |
e02d5d4c JR |
404 | %banner %{name} -e << EOF |
405 | Warning: Tape changer configuration has chaged, please read | |
406 | %{_docdir}/%{name}-server-%{version}/ReleaseNotes.gz | |
407 | and %{_docdir}/%{name}-server-%{version}/NEWS.gz for details. | |
408 | You can use %{_sbindir}/amconvert-zd-mtx-to-robot.sh script | |
409 | to upgrade to chg-robot. | |
410 | EOF | |
b083e9f8 | 411 | |
5c693887 | 412 | %files common |
83e7acbd | 413 | %defattr(644,root,root,755) |
072637cc | 414 | %doc AUTHORS COPYRIGHT ChangeLog NEWS README ReleaseNotes UPGRADING amlvm-snapshot.README |
c8cba693 | 415 | %attr(755,root,root) %{_libdir}/amanda/libamanda*.so |
5c693887 | 416 | %attr(755,root,root) %{_libdir}/amanda/libamar*.so |
19eb852e | 417 | %attr(755,root,root) %{_libdir}/amanda/libamdevice*.so |
5c693887 | 418 | %attr(755,root,root) %{_libdir}/amanda/libamglue*.so |
19eb852e JR |
419 | %attr(755,root,root) %{_libdir}/amanda/libamserver*.so |
420 | %attr(755,root,root) %{_libdir}/amanda/libamxfer*.so | |
824da05b JR |
421 | %attr(755,root,root) %{_libdir}/amanda/libndmjob*.so |
422 | %attr(755,root,root) %{_libdir}/amanda/libndmlib*.so | |
f85baaef | 423 | %attr(750,amanda,amanda) %dir %{_sysconfdir}/amanda |
19eb852e | 424 | %config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/amanda-security.conf |
c8cba693 | 425 | %dir %{_libdir}/amanda |
ca85afdb | 426 | %if "%{_lib}" != "lib" |
aa667a14 JR |
427 | %{_ulibdir}/amanda |
428 | %endif | |
1710bed5 JR |
429 | %dir %{_libexecdir}/amanda |
430 | %{_libexecdir}/amanda/amanda-sh-lib.sh | |
19eb852e JR |
431 | %attr(4750,root,amanda) %{_libexecdir}/amanda/ambind |
432 | %attr(755,root,root) %{_libexecdir}/amanda/amcat.awk | |
1710bed5 | 433 | %attr(755,root,root) %{_libexecdir}/amanda/amndmjob |
19eb852e JR |
434 | %attr(755,root,root) %{_libexecdir}/amanda/amplot.awk |
435 | %attr(755,root,root) %{_libexecdir}/amanda/amplot.g | |
436 | %attr(755,root,root) %{_libexecdir}/amanda/amplot.gp | |
1710bed5 | 437 | %attr(755,root,root) %{_libexecdir}/amanda/ndmjob |
19eb852e | 438 | %attr(755,root,root) %{_sbindir}/amaespipe |
5c693887 | 439 | %attr(755,root,root) %{_sbindir}/amarchiver |
824da05b JR |
440 | %attr(755,root,root) %{_sbindir}/amcrypt* |
441 | %attr(755,root,root) %{_sbindir}/amgetconf | |
442 | %attr(755,root,root) %{_sbindir}/amgpgcrypt | |
19eb852e JR |
443 | %attr(755,root,root) %{_sbindir}/amplot |
444 | %attr(755,root,root) %{_sbindir}/amservice | |
445 | %attr(755,root,root) %{_sbindir}/amssl | |
5c693887 JR |
446 | %attr(750,amanda,amanda) %dir %{_datadir}/amanda |
447 | %attr(750,amanda,amanda) %dir %{_datadir}/amanda/example | |
448 | %attr(750,amanda,amanda) %dir %{_datadir}/amanda/example/label-templates | |
449 | %attr(640,amanda,amanda) %{_datadir}/amanda/example/*amanda* | |
824da05b | 450 | %attr(640,amanda,amanda) %{_datadir}/amanda/example/disklist |
5c693887 JR |
451 | %attr(640,amanda,amanda) %{_datadir}/amanda/example/label-templates/*.ps |
452 | %attr(750,amanda,amanda) %dir %{_datadir}/amanda/template.d | |
453 | %attr(640,amanda,amanda) %{_datadir}/amanda/template.d/* | |
d4c615c9 | 454 | %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda |
106e7764 JR |
455 | %attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.ssh |
456 | %attr(700,amanda,amanda) %dir %{_sharedstatedir}/amanda/.gnupg | |
d4c615c9 JR |
457 | %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug |
458 | %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/amandad | |
c8cba693 | 459 | %attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.amandahosts |
66f68fd8 | 460 | %attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.ssh/config |
411e3665 JR |
461 | # Commented out so it won't get removed on uninstall |
462 | #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/authorized_keys | |
5c693887 | 463 | %{_mandir}/man5/amanda-archive-format.5* |
19eb852e | 464 | %{_mandir}/man5/amanda-security.conf.5* |
5c693887 | 465 | %{_mandir}/man7/amanda-auth.7* |
19eb852e | 466 | %{_mandir}/man7/amanda-auth-ssl.7* |
824da05b | 467 | %{_mandir}/man7/amanda-match.7* |
5c693887 | 468 | %{_mandir}/man7/amanda-scripts.7* |
824da05b | 469 | %{_mandir}/man8/amanda.8* |
19eb852e | 470 | %{_mandir}/man8/amaespipe.8* |
5c693887 | 471 | %{_mandir}/man8/amarchiver.8* |
824da05b JR |
472 | %{_mandir}/man8/amcrypt*.8* |
473 | %{_mandir}/man8/amgetconf.8* | |
474 | %{_mandir}/man8/amgpgcrypt.8* | |
19eb852e JR |
475 | %{_mandir}/man8/amplot.8* |
476 | %{_mandir}/man8/amservice.8* | |
477 | %{_mandir}/man8/amssl.8* | |
824da05b | 478 | %{_mandir}/man8/script-email.8* |
5c693887 JR |
479 | |
480 | %dir %{perl_vendorarch}/Amanda | |
824da05b JR |
481 | %dir %{perl_vendorarch}/Amanda/Config |
482 | %dir %{perl_vendorarch}/Amanda/IPC | |
19eb852e | 483 | %{perl_vendorarch}/Amanda/Amservice.pm |
5c693887 JR |
484 | %{perl_vendorarch}/Amanda/Archive.pm |
485 | %{perl_vendorarch}/Amanda/BigIntCompat.pm | |
19eb852e JR |
486 | %{perl_vendorarch}/Amanda/Changer.pm |
487 | %dir %{perl_vendorarch}/Amanda/Changer | |
488 | %{perl_vendorarch}/Amanda/Changer/*.pm | |
824da05b | 489 | %{perl_vendorarch}/Amanda/ClientService.pm |
19eb852e JR |
490 | %{perl_vendorarch}/Amanda/Cmdline.pm |
491 | %{perl_vendorarch}/Amanda/Cmdfile.pm | |
5c693887 | 492 | %{perl_vendorarch}/Amanda/Config.pm |
824da05b | 493 | %{perl_vendorarch}/Amanda/Config/FoldingHash.pm |
5c693887 | 494 | %{perl_vendorarch}/Amanda/Constants.pm |
19eb852e JR |
495 | %{perl_vendorarch}/Amanda/DB.pm |
496 | %dir %{perl_vendorarch}/Amanda/DB | |
497 | %{perl_vendorarch}/Amanda/DB/*.pm | |
5c693887 | 498 | %{perl_vendorarch}/Amanda/Debug.pm |
19eb852e JR |
499 | %{perl_vendorarch}/Amanda/Device.pm |
500 | %{perl_vendorarch}/Amanda/Disklist.pm | |
501 | %{perl_vendorarch}/Amanda/Extract.pm | |
824da05b | 502 | %{perl_vendorarch}/Amanda/Feature.pm |
19eb852e JR |
503 | %{perl_vendorarch}/Amanda/FetchDump.pm |
504 | %dir %{perl_vendorarch}/Amanda/FetchDump | |
505 | %{perl_vendorarch}/Amanda/FetchDump/*.pm | |
824da05b | 506 | %{perl_vendorarch}/Amanda/Header.pm |
19eb852e | 507 | %{perl_vendorarch}/Amanda/Holding.pm |
824da05b JR |
508 | %{perl_vendorarch}/Amanda/IPC/Binary.pm |
509 | %{perl_vendorarch}/Amanda/IPC/LineProtocol.pm | |
19eb852e JR |
510 | %{perl_vendorarch}/Amanda/Interactivity.pm |
511 | %dir %{perl_vendorarch}/Amanda/Interactivity | |
512 | %{perl_vendorarch}/Amanda/Interactivity/*.pm | |
513 | %{perl_vendorarch}/Amanda/Logfile.pm | |
5c693887 | 514 | %{perl_vendorarch}/Amanda/MainLoop.pm |
19eb852e | 515 | %{perl_vendorarch}/Amanda/Message.pm |
824da05b | 516 | %{perl_vendorarch}/Amanda/NDMP.pm |
5c693887 | 517 | %{perl_vendorarch}/Amanda/Paths.pm |
19eb852e | 518 | %{perl_vendorarch}/Amanda/Policy.pm |
824da05b | 519 | %{perl_vendorarch}/Amanda/Process.pm |
19eb852e JR |
520 | %{perl_vendorarch}/Amanda/Recovery.pm |
521 | %dir %{perl_vendorarch}/Amanda/Recovery | |
522 | %{perl_vendorarch}/Amanda/Recovery/*.pm | |
523 | %{perl_vendorarch}/Amanda/Restore.pm | |
5c693887 JR |
524 | %{perl_vendorarch}/Amanda/Script.pm |
525 | %{perl_vendorarch}/Amanda/Script_App.pm | |
19eb852e JR |
526 | %{perl_vendorarch}/Amanda/Service.pm |
527 | %dir %{perl_vendorarch}/Amanda/Service | |
528 | %{perl_vendorarch}/Amanda/Storage.pm | |
529 | %{perl_vendorarch}/Amanda/Tapelist.pm | |
5c693887 | 530 | %{perl_vendorarch}/Amanda/Tests.pm |
5c693887 | 531 | %{perl_vendorarch}/Amanda/Util.pm |
824da05b | 532 | %{perl_vendorarch}/Amanda/Xfer.pm |
5c693887 JR |
533 | %dir %{perl_vendorarch}/auto/Amanda |
534 | %dir %{perl_vendorarch}/auto/Amanda/Archive | |
19eb852e JR |
535 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Archive/*.so |
536 | %dir %{perl_vendorarch}/auto/Amanda/Cmdfile | |
537 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Cmdfile/*.so | |
538 | %dir %{perl_vendorarch}/auto/Amanda/Cmdline | |
539 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Cmdline/*.so | |
5c693887 | 540 | %dir %{perl_vendorarch}/auto/Amanda/Config |
19eb852e | 541 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Config/*.so |
5c693887 | 542 | %dir %{perl_vendorarch}/auto/Amanda/Debug |
19eb852e JR |
543 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Debug/*.so |
544 | %dir %{perl_vendorarch}/auto/Amanda/Device | |
545 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Device/*.so | |
546 | %dir %{perl_vendorarch}/auto/Amanda/Disklist | |
547 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Disklist/*.so | |
824da05b | 548 | %dir %{perl_vendorarch}/auto/Amanda/Feature |
19eb852e | 549 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Feature/*.so |
824da05b | 550 | %dir %{perl_vendorarch}/auto/Amanda/Header |
19eb852e | 551 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Header/*.so |
824da05b JR |
552 | %dir %{perl_vendorarch}/auto/Amanda/IPC |
553 | %dir %{perl_vendorarch}/auto/Amanda/IPC/Binary | |
824da05b | 554 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/IPC/Binary/*.so |
19eb852e JR |
555 | %dir %{perl_vendorarch}/auto/Amanda/Logfile |
556 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Logfile/*.so | |
557 | %dir %{perl_vendorarch}/auto/Amanda/MainLoop | |
5c693887 | 558 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/MainLoop/*.so |
19eb852e | 559 | %dir %{perl_vendorarch}/auto/Amanda/NDMP |
824da05b | 560 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/NDMP/*.so |
19eb852e JR |
561 | %dir %{perl_vendorarch}/auto/Amanda/Tapelist |
562 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Tapelist/*.so | |
563 | %dir %{perl_vendorarch}/auto/Amanda/Tests | |
5c693887 | 564 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Tests/*.so |
19eb852e | 565 | %dir %{perl_vendorarch}/auto/Amanda/Util |
5c693887 | 566 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Util/*.so |
19eb852e | 567 | %dir %{perl_vendorarch}/auto/Amanda/Xfer |
824da05b | 568 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Xfer/*.so |
370a4eb3 | 569 | |
a9736a51 | 570 | %if %{with server} |
64e6fb7c | 571 | %files server |
b083e9f8 | 572 | %defattr(644,root,root,755) |
a7b1b223 | 573 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amidxtape |
574 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amandaidx | |
b083e9f8 | 575 | |
d4c615c9 | 576 | %config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/amanda.conf |
072637cc | 577 | %config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/lvm-snapshot.conf |
b083e9f8 | 578 | |
411e3665 JR |
579 | # Commented out so it won't get removed on uninstall |
580 | #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/client_authorized_keys | |
581 | #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amdump* | |
106e7764 | 582 | |
d4c615c9 | 583 | %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/server |
b083e9f8 | 584 | |
a04af4fe | 585 | %config(noreplace) %attr(640,root,root) /etc/cron.d/amanda-srv |
b083e9f8 | 586 | |
19eb852e JR |
587 | %attr(755,root,root) %{_libexecdir}/amanda/amadmin_perl |
588 | %attr(755,root,root) %{_libexecdir}/amanda/ambackupd | |
1710bed5 JR |
589 | %attr(755,root,root) %{_libexecdir}/amanda/amcheck-device |
590 | %attr(755,root,root) %{_libexecdir}/amanda/amdumpd | |
591 | %attr(755,root,root) %{_libexecdir}/amanda/amidxtaped | |
592 | %attr(755,root,root) %{_libexecdir}/amanda/amindexd | |
593 | %attr(755,root,root) %{_libexecdir}/amanda/amlogroll | |
1710bed5 JR |
594 | %attr(755,root,root) %{_libexecdir}/amanda/amtrmidx |
595 | %attr(755,root,root) %{_libexecdir}/amanda/amtrmlog | |
1710bed5 JR |
596 | %attr(755,root,root) %{_libexecdir}/amanda/chunker |
597 | %attr(755,root,root) %{_libexecdir}/amanda/driver | |
19eb852e JR |
598 | %attr(755,root,root) %{_libexecdir}/amanda/dumper |
599 | %attr(755,root,root) %{_libexecdir}/amanda/planner | |
1710bed5 | 600 | %attr(755,root,root) %{_libexecdir}/amanda/taper |
5e5c6257 | 601 | |
19eb852e JR |
602 | %dir %{_libexecdir}/amanda/rest-server |
603 | %dir %{_libexecdir}/amanda/rest-server/bin | |
604 | %attr(755,root,root) %{_libexecdir}/amanda/rest-server/bin/app-dancer2.pl | |
605 | %attr(755,root,root) %{_libexecdir}/amanda/rest-server/bin/app.pl | |
606 | %{_libexecdir}/amanda/rest-server/config-dancer | |
607 | %{_libexecdir}/amanda/rest-server/config.yml | |
608 | %{_libexecdir}/amanda/rest-server/environments | |
609 | %dir %{_libexecdir}/amanda/rest-server/lib | |
610 | %dir %{_libexecdir}/amanda/rest-server/lib/Amanda | |
611 | %{_libexecdir}/amanda/rest-server/lib/Amanda/Rest.pm | |
612 | %dir %{_libexecdir}/amanda/rest-server/public | |
613 | %{_libexecdir}/amanda/rest-server/public/*.html | |
614 | %{_libexecdir}/amanda/rest-server/public/css | |
615 | %{_libexecdir}/amanda/rest-server/public/dispatch.cgi | |
616 | %{_libexecdir}/amanda/rest-server/public/dispatch.fcgi | |
617 | %{_libexecdir}/amanda/rest-server/public/favicon.ico | |
618 | %{_libexecdir}/amanda/rest-server/public/images | |
619 | %{_libexecdir}/amanda/rest-server/public/javascripts | |
620 | %{_libexecdir}/amanda/rest-server/views | |
621 | ||
5c693887 | 622 | %attr(755,root,root) %{_sbindir}/activate-devpay |
5c0ffaf3 | 623 | %attr(755,root,root) %{_sbindir}/amaddclient |
b083e9f8 | 624 | %attr(755,root,root) %{_sbindir}/amadmin |
19eb852e JR |
625 | %attr(755,root,root) %{_sbindir}/amanda-rest-server |
626 | %attr(755,root,root) %{_sbindir}/amcheck | |
b083e9f8 | 627 | %attr(755,root,root) %{_sbindir}/amcheckdb |
5c0ffaf3 | 628 | %attr(755,root,root) %{_sbindir}/amcheckdump |
b083e9f8 | 629 | %attr(755,root,root) %{_sbindir}/amcleanup |
c29a68ef | 630 | %attr(755,root,root) %{_sbindir}/amcleanupdisk |
824da05b | 631 | %attr(755,root,root) %{_sbindir}/amconvert-zd-mtx-to-robot.sh |
5c0ffaf3 | 632 | %attr(755,root,root) %{_sbindir}/amdevcheck |
b083e9f8 | 633 | %attr(755,root,root) %{_sbindir}/amdump |
5e5c6257 | 634 | %attr(755,root,root) %{_sbindir}/amfetchdump |
8ae81366 | 635 | %attr(755,root,root) %{_sbindir}/amflush |
8ae81366 | 636 | %attr(755,root,root) %{_sbindir}/amlabel |
b083e9f8 | 637 | %attr(755,root,root) %{_sbindir}/amoverview |
19eb852e | 638 | %attr(755,root,root) %{_sbindir}/amreindex |
b083e9f8 | 639 | %attr(755,root,root) %{_sbindir}/amreport |
5e5c6257 | 640 | %attr(755,root,root) %{_sbindir}/amrestore |
eb87556b | 641 | %attr(755,root,root) %{_sbindir}/amrmtape |
5c0ffaf3 | 642 | %attr(755,root,root) %{_sbindir}/amserverconfig |
b083e9f8 | 643 | %attr(755,root,root) %{_sbindir}/amstatus |
8ae81366 | 644 | %attr(755,root,root) %{_sbindir}/amtape |
eb87556b | 645 | %attr(755,root,root) %{_sbindir}/amtapetype |
8ae81366 | 646 | %attr(755,root,root) %{_sbindir}/amtoc |
5c693887 | 647 | %attr(755,root,root) %{_sbindir}/amvault |
5e5c6257 | 648 | %{_mandir}/man5/amanda.conf.5* |
19eb852e | 649 | %{_mandir}/man5/amanda-command-file.5* |
5c693887 JR |
650 | %{_mandir}/man5/disklist.5* |
651 | %{_mandir}/man5/tapelist.5* | |
652 | %{_mandir}/man7/amanda-changers.7* | |
824da05b | 653 | %{_mandir}/man7/amanda-compatibility.7* |
5c693887 | 654 | %{_mandir}/man7/amanda-devices.7* |
c29a68ef | 655 | %{_mandir}/man7/amanda-interactivity.7* |
824da05b | 656 | %{_mandir}/man7/amanda-taperscan.7* |
5c0ffaf3 | 657 | %{_mandir}/man8/amaddclient.8* |
a72f9c08 | 658 | %{_mandir}/man8/amadmin.8* |
19eb852e | 659 | %{_mandir}/man8/amanda-rest-server.8* |
a72f9c08 | 660 | %{_mandir}/man8/amcheck.8* |
a188c172 | 661 | %{_mandir}/man8/amcheckdb.8* |
5c0ffaf3 | 662 | %{_mandir}/man8/amcheckdump.8* |
a72f9c08 | 663 | %{_mandir}/man8/amcleanup.8* |
c29a68ef | 664 | %{_mandir}/man8/amcleanupdisk.8* |
5c0ffaf3 | 665 | %{_mandir}/man8/amdevcheck.8* |
a72f9c08 | 666 | %{_mandir}/man8/amdump.8* |
5e5c6257 | 667 | %{_mandir}/man8/amfetchdump.8* |
a72f9c08 | 668 | %{_mandir}/man8/amflush.8* |
669 | %{_mandir}/man8/amlabel.8* | |
a188c172 | 670 | %{_mandir}/man8/amoverview.8* |
19eb852e | 671 | %{_mandir}/man8/amreindex.8* |
a72f9c08 | 672 | %{_mandir}/man8/amreport.8* |
5e5c6257 | 673 | %{_mandir}/man8/amrestore.8* |
a188c172 | 674 | %{_mandir}/man8/amrmtape.8* |
5c0ffaf3 | 675 | %{_mandir}/man8/amserverconfig.8* |
a72f9c08 | 676 | %{_mandir}/man8/amstatus.8* |
a188c172 | 677 | %{_mandir}/man8/amtape.8* |
eb87556b | 678 | %{_mandir}/man8/amtapetype.8* |
a188c172 | 679 | %{_mandir}/man8/amtoc.8* |
5c693887 | 680 | %{_mandir}/man8/amvault.8* |
86893c3a | 681 | |
19eb852e JR |
682 | %{perl_vendorarch}/Amanda/Amdump.pm |
683 | %{perl_vendorarch}/Amanda/Amflush.pm | |
684 | %{perl_vendorarch}/Amanda/CheckDump.pm | |
685 | %dir %{perl_vendorarch}/Amanda/Chunker | |
686 | %{perl_vendorarch}/Amanda/Chunker/*.pm | |
687 | %{perl_vendorarch}/Amanda/Cleanup.pm | |
824da05b JR |
688 | %{perl_vendorarch}/Amanda/Curinfo.pm |
689 | %dir %{perl_vendorarch}/Amanda/Curinfo | |
690 | %{perl_vendorarch}/Amanda/Curinfo/*.pm | |
19eb852e JR |
691 | %{perl_vendorarch}/Amanda/Index.pm |
692 | %{perl_vendorarch}/Amanda/Label.pm | |
824da05b JR |
693 | %{perl_vendorarch}/Amanda/Report.pm |
694 | %dir %{perl_vendorarch}/Amanda/Report | |
695 | %{perl_vendorarch}/Amanda/Report/*.pm | |
19eb852e JR |
696 | %dir %{perl_vendorarch}/Amanda/Rest |
697 | %{perl_vendorarch}/Amanda/Rest/*.pm | |
698 | %dir %{perl_vendorarch}/Amanda/Rest/Storages | |
699 | %{perl_vendorarch}/Amanda/Rest/Storages/*.pm | |
c29a68ef | 700 | %{perl_vendorarch}/Amanda/ScanInventory.pm |
19eb852e JR |
701 | %{perl_vendorarch}/Amanda/Service/Amidxtaped.pm |
702 | %{perl_vendorarch}/Amanda/Status.pm | |
824da05b JR |
703 | %dir %{perl_vendorarch}/Amanda/Taper |
704 | %{perl_vendorarch}/Amanda/Taper/*.pm | |
705 | %dir %{perl_vendorarch}/Amanda/Taper/Scan | |
706 | %{perl_vendorarch}/Amanda/Taper/Scan/*.pm | |
19eb852e | 707 | %{perl_vendorarch}/Amanda/Vault.pm |
824da05b | 708 | %{perl_vendorarch}/Amanda/XferServer.pm |
824da05b | 709 | %dir %{perl_vendorarch}/auto/Amanda/XferServer |
824da05b | 710 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/XferServer/*.so |
a9736a51 | 711 | %endif |
64e6fb7c | 712 | |
a9736a51 | 713 | %if %{with client} |
64e6fb7c | 714 | %files client |
b083e9f8 | 715 | %defattr(644,root,root,755) |
a7b1b223 | 716 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amanda |
e4d1512f | 717 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/k5amanda |
5c0ffaf3 | 718 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,amanda) %{_sysconfdir}/amanda/amanda-client.conf |
411e3665 JR |
719 | # Commented out so it won't get removed on uninstall |
720 | #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover* | |
d4c615c9 | 721 | %attr(640,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/amandates |
8e94b37c | 722 | |
1710bed5 JR |
723 | %dir %{_libexecdir}/amanda/application |
724 | %attr(4750,root,amanda) %{_libexecdir}/amanda/application/ambsdtar | |
725 | %attr(4750,root,amanda) %{_libexecdir}/amanda/application/amgtar | |
726 | %attr(755,root,root) %{_libexecdir}/amanda/application/amlog-script | |
727 | %attr(755,root,root) %{_libexecdir}/amanda/application/amlvm-snapshot | |
728 | %attr(755,root,root) %{_libexecdir}/amanda/application/ampgsql | |
19eb852e | 729 | %attr(755,root,root) %{_libexecdir}/amanda/application/amrandom |
1710bed5 JR |
730 | %attr(755,root,root) %{_libexecdir}/amanda/application/amraw |
731 | %attr(755,root,root) %{_libexecdir}/amanda/application/amsamba | |
732 | %attr(4750,root,amanda) %{_libexecdir}/amanda/application/amstar | |
733 | %attr(755,root,root) %{_libexecdir}/amanda/application/amsuntar | |
734 | %attr(755,root,root) %{_libexecdir}/amanda/application/amzfs* | |
735 | %attr(755,root,root) %{_libexecdir}/amanda/application/script-email | |
19eb852e | 736 | %attr(755,root,root) %{_libexecdir}/amanda/application/script-fail |
8e94b37c | 737 | |
c8cba693 | 738 | %attr(755,root,root) %{_libdir}/amanda/libamclient*.so |
1710bed5 JR |
739 | %attr(755,root,root) %{_libexecdir}/amanda/amandad |
740 | %attr(755,root,root) %{_libexecdir}/amanda/noop | |
741 | %attr(755,root,root) %{_libexecdir}/amanda/patch-system | |
19eb852e | 742 | %attr(755,root,root) %{_libexecdir}/amanda/restore |
1710bed5 | 743 | %attr(755,root,root) %{_libexecdir}/amanda/sendbackup |
19eb852e | 744 | %attr(755,root,root) %{_libexecdir}/amanda/senddiscover |
1710bed5 JR |
745 | %attr(755,root,root) %{_libexecdir}/amanda/sendsize |
746 | %attr(755,root,root) %{_libexecdir}/amanda/teecount | |
747 | %attr(4750,root,amanda) %{_libexecdir}/amanda/calcsize | |
748 | %attr(4750,root,amanda) %{_libexecdir}/amanda/killpgrp | |
749 | %attr(4750,root,amanda) %{_libexecdir}/amanda/rundump | |
750 | %attr(4750,root,amanda) %{_libexecdir}/amanda/runtar | |
751 | %attr(755,root,root) %{_libexecdir}/amanda/selfcheck | |
19eb852e | 752 | %attr(755,root,root) %{_sbindir}/ambackup |
c29a68ef | 753 | %attr(755,root,root) %{_sbindir}/amdump_client |
5e5c6257 | 754 | %attr(755,root,root) %{_sbindir}/amoldrecover |
b083e9f8 | 755 | %attr(755,root,root) %{_sbindir}/amrecover |
d4c615c9 JR |
756 | %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/gnutar-lists |
757 | %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/client | |
5c693887 | 758 | %{_mandir}/man7/amanda-applications.7* |
5e5c6257 | 759 | %{_mandir}/man5/amanda-client.conf.5* |
c29a68ef | 760 | %{_mandir}/man8/amdump_client.8* |
19eb852e | 761 | %{_mandir}/man8/ambackup.8* |
b953d06c | 762 | %{_mandir}/man8/ambsdtar.8* |
5c693887 | 763 | %{_mandir}/man8/amgtar.8* |
824da05b JR |
764 | %{_mandir}/man8/ampgsql.8* |
765 | %{_mandir}/man8/amrecover.8* | |
766 | %{_mandir}/man8/amraw.8* | |
767 | %{_mandir}/man8/amsamba.8* | |
5c693887 | 768 | %{_mandir}/man8/amstar.8* |
824da05b | 769 | %{_mandir}/man8/amsuntar.8* |
5c693887 JR |
770 | %{_mandir}/man8/amzfs*.8* |
771 | ||
772 | %{perl_vendorarch}/Amanda/Application.pm | |
773 | %dir %{perl_vendorarch}/Amanda/Application | |
774 | %{perl_vendorarch}/Amanda/Application/Zfs.pm | |
19eb852e | 775 | %{perl_vendorarch}/Amanda/Service/Restore.pm |
5c693887 JR |
776 | %dir %{perl_vendorarch}/auto/Amanda/Application |
777 | %attr(755,root,root) %{perl_vendorarch}/auto/Amanda/Application/*.so | |
a9736a51 | 778 | %endif |