%define _libexecdir %{_prefix}/lib/amanda # XXX append lib to current _localstatedir setting %{expand: %%define _localstatedir %{_localstatedir}/lib} Summary: A network-capable tape backup solution. Name: amanda Version: 2.4.2p2 Release: 4 Source: http://download.sourceforge.net/amanda/amanda-%{version}.tar.gz Source1: amanda.crontab Source2: __README_QUICKSETUP__ Source3: amanda.conf Source4: disklist Source5: amanda-xinetd Source6: amandaidx-xinetd Source7: amidxtape-xinetd Source8: amandahosts Patch0: amanda-2.4.2-bug18322.patch License: BSD Group: Applications/System URL: http://www.amanda.org Prereq: fileutils grep initscripts BuildPreReq: dump gnuplot /usr/bin/lpr /usr/bin/smbclient tar grep fileutils Requires: tar BuildRoot: %{_tmppath}/%{name}-%{version}-root %description AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that allows the administrator of a LAN to set up a single master backup server to back up multiple hosts to a single large capacity tape drive. AMANDA uses native dump and/or GNU tar facilities and can back up a large number of workstations running multiple versions of Unix. Newer versions of AMANDA (including this version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts. The amanda package contains the core AMANDA programs and will need to be installed on both AMANDA clients and AMANDA servers. Note that you will have to install the amanda-client and amanda-server packages as well. %package client Summary: The client component of the AMANDA tape backup system. Group: Applications/System Prereq: fileutils grep /sbin/service xinetd Requires: amanda = %{version} %description client The Amanda-client package should be installed on any machine that will be backed up by AMANDA (including the server if it also needs to be backed up). You will also need to install the amanda package to each AMANDA client. %package server Summary: The server side of the AMANDA tape backup system. Group: Applications/System Requires: gnuplot Prereq: fileutils grep /sbin/service xinetd Requires: amanda = %{version} %description server The amanda-server package should be installed on the AMANDA server, the machine attached to the device (such as a tape drive) where backups will be written. You will also need to install the amanda package to the AMANDA server. And, if the server is also to be backed up, the server also needs to have the amanda-client package installed. %package devel Summary: Libraries and documentation of the AMANDA tape backup system. Group: Development/Libraries Requires: amanda = %{version} %description devel The amanda-devel package should be installed on any machine that will be used to develop amanda applications. %prep %setup -q %patch0 -p1 -b .bug18322 %build export CFLAGS="%optflags -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE" libtoolize --copy --force ./configure \ --prefix=%{_prefix} \ --exec-prefix=%{_exec_prefix} \ --bindir=%{_bindir} \ --sbindir=%{_sbindir} \ --sysconfdir=%{_sysconfdir} \ --datadir=%{_datadir} \ --includedir=%{_includedir} \ --libdir=%{_libdir} \ --libexecdir=%{_libexecdir} \ --localstatedir=%{_localstatedir} \ --sharedstatedir=%{_sharedstatedir} \ --mandir=%{_mandir} \ --host=%{_host} \ --infodir=%{_infodir} \ --enable-shared \ --with-index-server=localhost \ --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \ --with-smbclient=%{_bindir}/smbclient \ --with-amandahosts \ --with-user=amanda \ --with-group=disk \ --with-gnutar=/bin/tar #configure --enable-shared \ # --with-index-server=localhost \ # --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \ # --with-smbclient=%{_bindir}/smbclient \ # --with-amandahosts \ # --with-user=amanda \ # --with-group=disk \ # --with-gnutar=/bin/tar make (cd common-src; make security) (cd tape-src; make tapetype) %install rm -rf ${RPM_BUILD_ROOT} make install BINARY_OWNER=%(id -un) SETUID_GROUP=%(id -gn) DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d install -m 644 %SOURCE5 $RPM_BUILD_ROOT/etc/xinetd.d/amanda install -m 644 %SOURCE6 $RPM_BUILD_ROOT/etc/xinetd.d/amandaidx install -m 644 %SOURCE7 $RPM_BUILD_ROOT/etc/xinetd.d/amidxtape mkdir -p $RPM_BUILD_ROOT/var/lib/amanda install -m 660 %SOURCE8 $RPM_BUILD_ROOT/var/lib/amanda/.amandahosts mkdir -p examples cp example/* examples rm -f examples/Makefile* rm -f examples/config.site cp common-src/security ${RPM_BUILD_ROOT}%{_sbindir} pushd tape-src/.libs install -m 755 tapetype $RPM_BUILD_ROOT/%{_sbindir} popd cp ${RPM_SOURCE_DIR}/__README_QUICKSETUP__ docs/ { cd ${RPM_BUILD_ROOT} mkdir -p .%{_sysconfdir}/amanda/DailySet1 cp ${RPM_SOURCE_DIR}/amanda.crontab .%{_sysconfdir}/amanda/crontab.sample cp ${RPM_SOURCE_DIR}/amanda.conf .%{_sysconfdir}/amanda/DailySet1 cp ${RPM_SOURCE_DIR}/disklist .%{_sysconfdir}/amanda/DailySet1 touch .%{_sysconfdir}/amandates mkdir -p .%{_localstatedir}/amanda/gnutar-lists mkdir -p .%{_localstatedir}/amanda/DailySet1/index # for i in libamanda libamtape libamclient libamserver ; do # mv .%{_libdir}/${i}.so .%{_libdir}/${i}-%{version}-19991216-beta1.so # mv .%{_libdir}/${i}.la .%{_libdir}/${i}-%{version}-19991216-beta1.la # mv .%{_libdir}/${i}.a .%{_libdir}/${i}-%{version}-19991216-beta1.a # done chmod 755 .%{_libdir}/libam* strip .%{_sbindir}/* || : strip .%{_libexecdir}/* || : } %clean rm -rf ${RPM_BUILD_ROOT} %pre useradd -M -n -g disk -o -r -d /var/lib/amanda -s /bin/bash \ -c "Amanda user" -u 33 amanda >/dev/null 2>&1 || : %post -p /sbin/ldconfig %post client /sbin/ldconfig [ -f /var/lock/subsys/xinetd ] && /sbin/service xinetd reload > /dev/null 2>&1 || : %post server /sbin/ldconfig [ -f /var/lock/subsys/xinetd ] && /sbin/service xinetd reload > /dev/null 2>&1 || : %postun -p /sbin/ldconfig %postun client /sbin/ldconfig [ -f /var/lock/subsys/xinetd ] && /sbin/service xinetd reload > /dev/null 2>&1 || : %postun server /sbin/ldconfig [ -f /var/lock/subsys/xinetd ] && /sbin/service xinetd reload > /dev/null 2>&1 || : %files %defattr(-,root,root) %{_libdir}/libamanda*.so %{_libdir}/libamtape*.so %attr(-,amanda,disk) %{_sbindir}/amrestore %{_mandir}/man8/amrestore.8* %attr(660,amanda,disk) %config(noreplace) /var/lib/amanda/.amandahosts %attr(-,amanda,disk) %dir %{_localstatedir}/amanda/ %attr(-,amanda,disk) %dir %{_sysconfdir}/amanda/ %attr(-,amanda,disk) %config(noreplace) %{_sysconfdir}/amandates %files server %defattr(-,root,root) %doc examples docs/[A-LN-Z]* docs/MULTITAPE COPYRIGHT* NEWS README %{_libdir}/libamserver*.so %config(noreplace) /etc/xinetd.d/amandaidx %config(noreplace) /etc/xinetd.d/amidxtape %attr(-,amanda,disk) %{_libexecdir}/amidxtaped %attr(-,amanda,disk) %{_libexecdir}/amindexd %attr(-,amanda,disk) %{_libexecdir}/amlogroll %attr(-,amanda,disk) %{_libexecdir}/amtrmidx %attr(-,amanda,disk) %{_libexecdir}/amtrmlog %attr(-,amanda,disk) %{_libexecdir}/driver %attr(4750,root,disk) %{_libexecdir}/dumper %attr(4750,root,disk) %{_libexecdir}/planner %attr(-,amanda,disk) %{_libexecdir}/taper %attr(-,amanda,disk) %{_libexecdir}/amcleanupdisk %attr(-,amanda,disk) %{_libexecdir}/chg-scsi %attr(-,amanda,disk) %{_libexecdir}/chg-manual %attr(-,amanda,disk) %{_libexecdir}/chg-multi %attr(-,amanda,disk) %{_libexecdir}/chg-mtx %attr(-,amanda,disk) %{_libexecdir}/chg-rth %attr(-,amanda,disk) %{_libexecdir}/chg-chs %attr(-,amanda,disk) %{_libexecdir}/chg-chio %attr(-,amanda,disk) %{_libexecdir}/chg-zd-mtx %attr(-,amanda,disk) %{_libexecdir}/amcat.awk %attr(-,amanda,disk) %{_libexecdir}/amplot.awk %attr(-,amanda,disk) %{_libexecdir}/amplot.g %attr(-,amanda,disk) %{_libexecdir}/amplot.gp %attr(-,amanda,disk) %{_sbindir}/amadmin %attr(4750,root,disk) %{_sbindir}/amcheck %attr(-,amanda,disk) %{_sbindir}/amflush %attr(-,amanda,disk) %{_sbindir}/amgetconf %attr(-,amanda,disk) %{_sbindir}/amlabel %attr(-,amanda,disk) %{_sbindir}/amtape %attr(-,amanda,disk) %{_sbindir}/amreport %attr(-,amanda,disk) %{_sbindir}/amcheckdb %attr(-,amanda,disk) %{_sbindir}/amcleanup %attr(-,amanda,disk) %{_sbindir}/amdump %attr(-,amanda,disk) %{_sbindir}/amoverview %attr(-,amanda,disk) %{_sbindir}/amrmtape %attr(-,amanda,disk) %{_sbindir}/amtoc %attr(-,amanda,disk) %{_sbindir}/amverify %attr(-,amanda,disk) %{_sbindir}/amstatus %attr(-,amanda,disk) %{_sbindir}/amplot %attr(-,amanda,disk) %{_sbindir}/tapetype %attr(-,amanda,disk) %dir %{_localstatedir}/amanda/DailySet1/ %attr(-,amanda,disk) %dir %{_localstatedir}/amanda/DailySet1/index %attr(-,amanda,disk) %dir %{_sysconfdir}/amanda %attr(-,amanda,disk) %dir %{_sysconfdir}/amanda/DailySet1 %attr(-,amanda,disk) %config(noreplace) %{_sysconfdir}/amanda/DailySet1/amanda.conf %attr(-,amanda,disk) %config(noreplace) %{_sysconfdir}/amanda/crontab.sample %attr(-,amanda,disk) %config(noreplace) %{_sysconfdir}/amanda/DailySet1/disklist %{_mandir}/man8/amplot.8* %{_mandir}/man8/amanda.8* %{_mandir}/man8/amadmin.8* %{_mandir}/man8/amcheck.8* %{_mandir}/man8/amcheckdb.8* %{_mandir}/man8/amcleanup.8* %{_mandir}/man8/amdump.8* %{_mandir}/man8/amflush.8* %{_mandir}/man8/amlabel.8* %{_mandir}/man8/amoverview.8* %{_mandir}/man8/amrmtape.8* %{_mandir}/man8/amtape.8* %{_mandir}/man8/amtoc.8* %{_mandir}/man8/amverify.8* %{_mandir}/man8/amstatus.8* %{_mandir}/man8/amreport.8* %files client %defattr(-,root,root) %config /etc/xinetd.d/amanda %{_libdir}/libamclient*.so %attr(-,amanda,disk) %{_libexecdir}/amandad %attr(4750,root,disk) %{_libexecdir}/calcsize %attr(4750,root,disk) %{_libexecdir}/killpgrp %attr(-,amanda,disk) %{_libexecdir}/patch-system %attr(4750,root,disk) %{_libexecdir}/rundump %attr(4750,root,disk) %{_libexecdir}/runtar %attr(-,amanda,disk) %{_libexecdir}/selfcheck %attr(-,amanda,disk) %{_libexecdir}/sendbackup %attr(-,amanda,disk) %{_libexecdir}/sendsize %attr(-,amanda,disk) %{_libexecdir}/versionsuffix %attr(-,amanda,disk) %{_sbindir}/amrecover %{_mandir}/man8/amrecover.8* %attr(-,amanda,disk) %{_sbindir}/security %attr(-,amanda,disk) %{_localstatedir}/amanda/gnutar-lists/ %files devel %defattr(-,root,root) %{_libdir}/libamanda.a %{_libdir}/libamtape.a %{_libdir}/libamclient.a %{_libdir}/libamserver.a %{_libdir}/*.la %changelog * Fri Jul 13 2001 Trond Eivind Glomsrød - Build and install the "tapetype" utility program, for tape size identification (#48745) * Tue Jun 19 2001 Trond Eivind Glomsrød - don't use %%configure, to make it build * Mon Apr 9 2001 Bill Nottingham - include ia64 again * Wed Apr 4 2001 Trond Eivind Glomsrød - 2.4.2p2 - fixes problems with amrecover (#26567) - made config files noreplace - don't build on IA64 right now, amanda doesn't like the dump there: It segfaults. * Fri Mar 16 2001 Trond Eivind Glomsrød - Add /usr/bin/smbclient to buildprereq (#31996), to avoid samba being built without such support * Thu Feb 22 2001 Trond Eivind Glomsrød - Use %%{version} in source URL, and thus actually use 2.4.2p1 instead of 2.4.2 (doh! # 28759) - add patch to handle bogus /dev/root entries (#28759) * Fri Feb 16 2001 Trond Eivind Glomsrød - 2.4.2p1 bugfix release - move amandaixd and amidxtape to the server package (#28037) * Wed Jan 31 2001 Trond Eivind Glomsrød - move /etc/xinetd.d/amanda to the client subpackage (#25430) * Tue Jan 30 2001 Trond Eivind Glomsrød - don't have "chunksize -1" as the default, as it's no longer supported - make it uid amanda, with home /var/lib/amada so programs can actually access it (#20510) - make .amandahosts a config file (#18322) * Tue Jan 23 2001 Trond Eivind Glomsrød - 2.4.2 - make the UDP service "wait" (#23047) * Tue Oct 10 2000 Jeff Johnson - build with shared libraries. - add amanda-devel package to contain static libraries. - update to 2.4.2-19991216-beta1 (#16818). - sort out client-server file confusions (#17232). - amandaidx-xinetd should have "wait = no" (#17551). - /var/lib/amanda needs operator.disk ownership (17913). - /etc/xinetd.d/amanda added to the amanda-server package (#18112). - ignore socket error message (#18322). * Sun Sep 3 2000 Florian La Roche - do not include /etc/xinetd.d/amandaidx in the server rpm * Mon Aug 21 2000 Trond Eivind Glomsrød - only do reload of xinetd if xinetd is running (#16653) - don't show output of reload command to STDOUT (#16653) - don't use /usr/sbin/tcpd in amidx, xinetd is linked with tcp_wrappers - prereq initscripts (fixes #14572 and duplicates) * Tue Aug 1 2000 Bill Nottingham - turn off amandaidx by default (#14937) - fix some binary permissions (#14938) * Tue Aug 1 2000 Matt Wilson - added Prereq: /sbin/service xinetd to client and server subpackages * Tue Jul 18 2000 Trond Eivind Glomsrød - xinetd support * Wed Jul 12 2000 Prospector - automatic rebuild * Sun Jun 18 2000 Jeff Johnson - add prereqs for scriptlets, requires for common package. * Sat Jun 10 2000 Jeff Johnson - FHS packaging. - move to 7.0 distro. * Tue May 23 2000 Tim Powers - built for 7.0 - man pages in /usr/share/man * Thu Apr 27 2000 Tim Powers - added usr/lib/amanda/chg-zd-mtx to the client RPM to fix bug #8282 * Wed Mar 8 2000 Tim Powers - fixed files/dirs ending up in the wrong packages. - last time it wasn't built with dump (doh!), this time it is. Now has a BuildRequires for dump. * Thu Feb 10 2000 Tim Powers - strip binaries * Fri Jan 21 2000 TIm Powers - added chown lines to post section * Tue Jan 11 2000 Tim Powers - make sure the man pages are gzipped in each subpackage, overriding the build system spec_install_post macro. - using mega spec file changes from Marc Merlin since the package we were shipping in the past had some major issues (not in Marc's words ;) - using Marc's added README and modified config files. - adapted patches written by Alexandre Oliva from Marc Merlin's package so that the patch matches the source version (the patches are the glibc2.1 and glibc2.2 patches) * Mon Jan 3 2000 Tim Powers - fix so configure doesn't crap out (libtoolize --force) - gzip man pages, strip binaries - rebuilt for 6.2 * Thu Aug 5 1999 Tim Powers - applied patch so that it reports the available holding disk space correctly * Thu Jul 8 1999 Tim Powers - added %defattr lines - rebuilt for 6.1 * Wed May 05 1999 Bill Nottingham - update to 2.4.1p1 * Tue Oct 27 1998 Cristian Gafton - version 2.4.1 * Tue May 19 1998 Cristian Gafton - upgraded to full 2.4.0 release * Thu Feb 19 1998 Otto Hammersmith - fixed group for -client and -server packages (Network->Networking) * Wed Feb 11 1998 Otto Hammersmith - updated to 2.4.0b6, fixes security hole among other things (as well as finally got the glibc patch in the main source.) * Tue Jan 27 1998 Otto Hammersmith - moved versionsuffix to client package to remove dependency of amanda on amanda-client * Mon Jan 26 1998 Otto Hammersmith - fixed libexec garbage. * Wed Jan 21 1998 Otto Hammersmith - split into three packages amanda, amanda-client, and amanda-server * Fri Jan 9 1998 Otto Hammersmith - updated to latest beta... builds much cleaner now. * Thu Jan 8 1998 Otto Hammersmith - created the package