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