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