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