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