From 7d457108a3c1ed007c8043a98c995cdabd1573f1 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 02:55:52 +0000 Subject: auto-import changelog data from amanda-2.4.1p1-18.src.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 01 2000 Bill Nottingham - turn off amandaidx by default (#14937) - fix some binary permissions (#14938) Tue Aug 01 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 08 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 03 2000 Tim Powers - fix so configure doesn't crap out (libtoolize --force) - gzip man pages, strip binaries - rebuilt for 6.2 Thu Aug 05 1999 Tim Powers - applied patch so that it reports the available holding disk space correctly Thu Jul 08 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 09 1998 Otto Hammersmith - updated to latest beta... builds much cleaner now. Thu Jan 08 1998 Otto Hammersmith - created the package --- diff --git a/.cvsignore b/.cvsignore index e69de29..7ff47a2 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +amanda-2.4.1p1.tar.gz diff --git a/amanda-xinetd b/amanda-xinetd new file mode 100644 index 0000000..8210665 --- /dev/null +++ b/amanda-xinetd @@ -0,0 +1,15 @@ +# default: off +# description: The client for the Amanda backup system.\ +# This must be on for systems being backed up\ +# by Amanda. + +service amanda +{ + socket_type = dgram + protocol = udp + wait = no + user = operator + group = disk + server = /usr/lib/amanda/amandad + disable = yes +} diff --git a/amanda.conf b/amanda.conf new file mode 100644 index 0000000..d1b5229 --- /dev/null +++ b/amanda.conf @@ -0,0 +1,477 @@ +# +# amanda.conf - sample Amanda configuration file. This started off life as +# the actual config file in use at CS.UMD.EDU. +# +# If your configuration is called, say, "csd", then this file normally goes +# in /etc/amanda/csd/amanda.conf. +# + +org "DailySet1" # your organization name for reports +mailto "operator" # space separated list of operators at your site +dumpuser "operator" # the user to run dumps under + +inparallel 4 # maximum dumpers that will run in parallel +netusage 600 Kbps # maximum net bandwidth for Amanda, in KB per sec + +dumpcycle 4 weeks # the number of days in the normal dump cycle +runspercycle 4 weeks # the number of amdump runs in dumpcycle days +tapecycle 25 tapes # the number of tapes in rotation + # 4 weeks (dumpcycle) times 5 tapes per week (just + # the weekdays) plus a few to handle errors that + # need amflush and so we do not overwrite the full + # backups performed at the beginning of the previous + # cycle +### ### ### +# WARNING: don't use `inf' for tapecycle, it's broken! +### ### ### + +bumpsize 20 Mb # minimum savings (threshold) to bump level 1 -> 2 +bumpdays 1 # minimum days at each level +bumpmult 4 # threshold = bumpsize * bumpmult^(level-1) + +etimeout 300 # number of seconds per filesystem for estimates. +#etimeout -600 # total number of seconds for estimates. +# a positive number will be multiplied by the number of filesystems on +# each host; a negative number will be taken as an absolute total time-out. +# The default is 5 minutes per filesystem. + + +# Specify tape device and/or tape changer. If you don't have a tape +# changer, and you don't want to use more than one tape per run of +# amdump, just comment out the definition of tpchanger. + +# Some tape changers require tapedev to be defined; others will use +# their own tape device selection mechanism. Some use a separate tape +# changer device (changerdev), others will simply ignore this +# parameter. Some rely on a configuration file (changerfile) to +# obtain more information about tape devices, number of slots, etc; +# others just need to store some data in files, whose names will start +# with changerfile. For more information about individual tape +# changers, read docs/TAPE.CHANGERS. + +# At most one changerfile entry must be defined; select the most +# appropriate one for your configuration. If you select man-changer, +# keep the first one; if you decide not to use a tape changer, you may +# comment them all out. + +runtapes 1 # number of tapes to be used in a single run of amdump +#tpchanger "chg-manual" # the tape-changer glue script +#tapedev "/dev/null" # the no-rewind tape device to be used +#rawtapedev "/dev/null" # the raw device to be used (ftape only) +#changerfile "/var/lib/amanda/DailySet1/changer" +#changerfile "/var/lib/amanda/DailySet1/changer-status" +#changerfile "/etc/amanda/DailySet1/changer.conf" +#changerdev "/dev/null" + +tapetype HP-DAT # what kind of tape it is (see tapetypes below) +labelstr "^DailySet1[0-9][0-9]*$" # label constraint regex: all tapes must match + +# Specify holding disks. These are used as a temporary staging area for +# dumps before they are written to tape and are recommended for most sites. +# The advantages include: tape drive is more likely to operate in streaming +# mode (which reduces tape and drive wear, reduces total dump time); multiple +# dumps can be done in parallel (which can dramatically reduce total dump time. +# The main disadvantage is that dumps on the holding disk need to be flushed +# (with amflush) to tape after an operating system crash or a tape failure. +# If no holding disks are specified then all dumps will be written directly +# to tape. If a dump is too big to fit on the holding disk than it will be +# written directly to tape. If more than one holding disk is specified then +# they will all be used round-robin. + +holdingdisk hd1 { + comment "main holding disk" + directory "/var/tmp" # where the holding disk is + use 290 Mb # how much space can we use on it + # a negative value mean: + # use all space except that value + chunksize -1 # size of chunk if you want big dump to be + # dumped on multiple files on holding disks + # N Kb/Mb/Gb split disks in chunks of size N + # 0 split disks in INT_MAX/1024 Kb chunks + # -1 same as -INT_MAX/1024 (see below) + # -N Kb/Mb/Gb dont split, dump larger + # filesystems directly to tape + # (example: -2 Gb) + # chunksize 2 Gb + } +#holdingdisk hd2 { +# directory "/dumps2/amanda" +# use 1000 Mb +# } +#holdingdisk hd3 { +# directory "/mnt/disk4" +# use 1000 Mb +# } + + +# If amanda cannot find a tape on which to store backups, it will run +# as many backups as it can to the holding disks. In order to save +# space for unattended backups, by default, amanda will only perform +# incremental backups in this case, i.e., it will reserve 100% of the +# holding disk space for the so-called degraded mode backups. +# However, if you specify a different value for the `reserve' +# parameter, amanda will not degrade backups if they will fit in the +# non-reserved portion of the holding disk. + +# reserve 30 # percent + + +# This means save at least 30% of the holding disk space for degraded +# mode backups. + +# Amanda needs a few Mb of diskspace for the log and debug files, +# as well as a database. This stuff can grow large, so the conf directory +# isn't usually appropriate. Some sites use /usr/local/var and some /usr/adm. +# Create an amanda directory under there. You need a separate infofile and +# logdir for each configuration, so create subdirectories for each conf and +# put the files there. Specify the locations below. + +infofile "/var/lib/amanda/DailySet1/curinfo" # database filename +logdir "/var/lib/amanda/DailySet1" # log directory +indexdir "/var/lib/amanda/DailySet1/index" # index directory +#tapelist "/var/lib/amanda/DailySet1/tapelist" # list of used tapes +# tapelist is stored, by default, in the directory that contains amanda.conf + + +# tapetypes + +# Define the type of tape you use here, and use it in "tapetype" +# above. Some typical types of tapes are included here. The tapetype +# tells amanda how many MB will fit on the tape, how big the filemarks +# are, and how fast the tape device is. + +# A filemark is the amount of wasted space every time a tape section +# ends. If you run `make tapetype' in tape-src, you'll get a program +# that generates tapetype entries, but it is slow as hell, use it only +# if you really must and, if you do, make sure you post the data to +# the amanda mailing list, so that others can use what you found out +# by searching the archives. + +# For completeness Amanda should calculate the inter-record gaps too, +# but it doesn't. For EXABYTE and DAT tapes this is ok. Anyone using +# 9 tracks for amanda and need IRG calculations? Drop me a note if +# so. + +# If you want amanda to print postscript paper tape labels +# add a line after the comment in the tapetype of the form +# lbl-templ "/path/to/postscript/template/label.ps" + +# if you want the label to go to a printer other than the default +# for your system, you can also add a line above for a different +# printer. (i usually add that line after the dumpuser specification) + +# dumpuser "operator" # the user to run dumps under +# printer "mypostscript" # printer to print paper label on + +# here is an example of my definition for an EXB-8500 + +# define tapetype EXB-8500 { +# ... +# lbl-templ "/usr/local/amanda/config/lbl.exabyte.ps" +# } + + +define tapetype QIC-60 { + comment "Archive Viper" + length 60 mbytes + filemark 100 kbytes # don't know a better value + speed 100 kbytes # dito +} + +define tapetype DEC-DLT2000 { + comment "DEC Differential Digital Linear Tape 2000" + length 15000 mbytes + filemark 8 kbytes + speed 1250 kbytes +} + +# goluboff@butch.Colorado.EDU +# in amanda-users (Thu Dec 26 01:55:38 MEZ 1996) +define tapetype DLT { + comment "DLT tape drives" + length 20000 mbytes # 20 Gig tapes + filemark 2000 kbytes # I don't know what this means + speed 1536 kbytes # 1.5 Mb/s +} + +define tapetype SURESTORE-1200E { + comment "HP AutoLoader" + length 3900 mbytes + filemark 100 kbytes + speed 500 kbytes +} + +define tapetype EXB-8500 { + comment "Exabyte EXB-8500 drive on decent machine" + length 4200 mbytes + filemark 48 kbytes + speed 474 kbytes +} + +define tapetype EXB-8200 { + comment "Exabyte EXB-8200 drive on decent machine" + length 2200 mbytes + filemark 2130 kbytes + speed 240 kbytes +} + +define tapetype HP-DAT { + comment "DAT tape drives" + # data provided by Rob Browning + length 1930 mbytes + filemark 111 kbytes + speed 468 kbytes +} + +define tapetype DAT { + comment "DAT tape drives" + length 1000 mbytes # these numbers are not accurate + filemark 100 kbytes # but you get the idea + speed 100 kbytes +} + +define tapetype MIMSY-MEGATAPE { + comment "Megatape (Exabyte based) drive through Emulex on Vax 8600" + length 2200 mbytes + filemark 2130 kbytes + speed 170 kbytes # limited by the Emulex bus interface, ugh +} + + +# dumptypes +# +# These are referred to by the disklist file. The dumptype specifies +# certain parameters for dumping including: +# auth - authentication scheme to use between server and client. +# Valid values are "bsd" and "krb4". Default: [auth bsd] +# comment - just a comment string +# comprate - set default compression rate. Should be followed by one or +# two numbers, optionally separated by a comma. The 1st is +# the full compression rate; the 2nd is the incremental rate. +# If the second is omitted, it is assumed equal to the first. +# The numbers represent the amount of the original file the +# compressed file is expected to take up. +# Default: [comprate 0.50, 0.50] +# compress - specify compression of the backed up data. Valid values are: +# "none" - don't compress the dump output. +# "client best" - compress on the client using the best (and +# probably slowest) algorithm. +# "client fast" - compress on the client using fast algorithm. +# "server best" - compress on the tape host using the best (and +# probably slowest) algorithm. +# "server fast" - compress on the tape host using a fast +# algorithm. This may be useful when a fast +# tape host is backing up slow clients. +# Default: [compress client fast] +# dumpcycle - set the number of days in the dump cycle, ie, set how often a +# full dump should be performed. Default: from DUMPCYCLE above +# exclude - specify files and directories to be excluded from the dump. +# Useful with gnutar only; silently ignored by dump and samba. +# Valid values are: +# "pattern" - a shell glob pattern defining which files +# to exclude. +# gnutar gets --exclude="pattern" +# list "filename" - a file (on the client!) containing patterns +# re's (1 per line) defining which files to +# exclude. +# gnutar gets --exclude-from="filename" +# Note that the `full pathname' of a file within its +# filesystem starts with `./', because of the way amanda runs +# gnutar: `tar -C $mountpoint -cf - --lots-of-options .' (note +# the final dot!) Thus, if you're backing up `/usr' with a +# diskfile entry like ``host /usr gnutar-root', but you don't +# want to backup /usr/tmp, your exclude list should contain +# the pattern `./tmp', as this is relative to the `/usr' above. +# Please refer to the man-page of gnutar for more information. +# Default: include all files +# holdingdisk - should the holding disk be used for this dump. Useful for +# dumping the holding disk itself. Default: [holdingdisk yes] +# ignore - do not back this filesystem up. Useful for sharing a single +# disklist in several configurations. +# index - keep an index of the files backed up. Default: [index no] +# kencrypt - encrypt the data stream between the client and server. +# Default: [kencrypt no] +# maxdumps - max number of concurrent dumps to run on the client. +# Default: [maxdumps 1] +# priority - priority level of the dump. Valid levels are "low", "medium" +# or "high". These are really only used when Amanda has no +# tape to write to because of some error. In that "degraded +# mode", as many incrementals as will fit on the holding disk +# are done, higher priority first, to insure the important +# disks are at least dumped. Default: [priority medium] +# program - specify the dump system to use. Valid values are "DUMP" and +# "GNUTAR". Default: [program "DUMP"]. +# record - record the dump in /etc/dumpdates. Default: [record yes] +# skip-full - skip the disk when a level 0 is due, to allow full backups +# outside Amanda, eg when the machine is in single-user mode. +# skip-incr - skip the disk when the level 0 is NOT due. This is used in +# archive configurations, where only full dumps are done and +# the tapes saved. +# starttime - delay the start of the dump? Default: no delay +# strategy - set the dump strategy. Valid strategies are currently: +# "standard" - the standard one. +# "nofull" - do level 1 dumps every time. This can be used, +# for example, for small root filesystems that +# only change slightly relative to a site-wide +# prototype. Amanda then backs up just the +# changes. +# "noinc" - do level 0 dumps every time. +# Unfortunately, this is not currently +# implemented. Use `dumpcycle 0' +# instead. +# "skip" - skip all dumps. Useful for sharing a single +# disklist in several configurations. +# Default: [strategy standard] +# +# Note that you may specify previously defined dumptypes as a shorthand way +# of defining parameters. + +define dumptype global { + comment "Global definitions" + # This is quite useful for setting global parameters, so you don't have + # to type them everywhere. All dumptype definitions in this sample file + # do include these definitions, either directly or indirectly. + # There's nothing special about the name `global'; if you create any + # dumptype that does not contain the word `global' or the name of any + # other dumptype that contains it, these definitions won't apply. + # Note that these definitions may be overridden in other + # dumptypes, if the redefinitions appear *after* the `global' + # dumptype name. + # You may want to use this for globally enabling or disabling + # indexing, recording, etc. Some examples: + # index yes + # record no +} + +define dumptype always-full { + global + comment "Full dump of this filesystem always" + compress none + priority high + dumpcycle 0 +} + +define dumptype root-tar { + global + program "GNUTAR" + comment "root partitions dumped with tar" + compress none + index + exclude list "/usr/local/lib/amanda/exclude.gtar" + priority low +} + +define dumptype user-tar { + root-tar + comment "user partitions dumped with tar" + priority medium +} + +define dumptype high-tar { + root-tar + comment "partitions dumped with tar" + priority high +} + +define dumptype comp-root-tar { + root-tar + comment "Root partitions with compression" + compress client fast +} + +define dumptype comp-user-tar { + user-tar + compress client fast +} + +define dumptype holding-disk { + global + comment "The master-host holding disk itself" + holdingdisk no # do not use the holding disk + priority medium +} + +define dumptype comp-user { + global + comment "Non-root partitions on reasonably fast machines" + compress client fast + priority medium +} + +define dumptype nocomp-user { + comp-user + comment "Non-root partitions on slow machines" + compress none +} + +define dumptype comp-root { + global + comment "Root partitions with compression" + compress client fast + priority low +} + +define dumptype nocomp-root { + comp-root + comment "Root partitions without compression" + compress none +} + +define dumptype comp-high { + global + comment "very important partitions on fast machines" + compress client best + priority high +} + +define dumptype nocomp-high { + comp-high + comment "very important partitions on slow machines" + compress none +} + +define dumptype nocomp-test { + global + comment "test dump without compression, no /etc/dumpdates recording" + compress none + record no + priority medium +} + +define dumptype comp-test { + nocomp-test + comment "test dump with compression, no /etc/dumpdates recording" + compress client fast +} + +# network interfaces +# +# These are referred to by the disklist file. They define the attributes +# of the network interface that the remote machine is accessed through. +# Notes: - netusage above defines the attributes that are used when the +# disklist entry doesn't specify otherwise. +# - the values below are only samples. +# - specifying an interface does not force the traffic to pass +# through that interface. Your OS routing tables do that. This +# is just a mechanism to stop Amanda trashing your network. +# Attributes are: +# use - bandwidth above which amanda won't start +# backups using this interface. Note that if +# a single backup will take more than that, +# amanda won't try to make it run slower! + +define interface local { + comment "a local disk" + use 1000 kbps +} + +define interface eth0 { + comment "10 Mbps ethernet" + use 400 kbps +} + +# You may include other amanda configuration files, so you can share +# dumptypes, tapetypes and interface definitions among several +# configurations. + +#includefile "/usr/local/amanda.conf.main" diff --git a/amanda.crontab b/amanda.crontab new file mode 100644 index 0000000..8c8bc7d --- /dev/null +++ b/amanda.crontab @@ -0,0 +1,9 @@ +# This is an example for a crontab entry for automated backup with amanda +# With these cron lines, Amanda will check that the correct tape is in +# the drive every weekday afternoon at 4pm (if it isn't, all the +# operators will get mail). At 12:45am that night the dumps will be run. +# +# This should be put in user operator's crontab +# +0 16 * * 1-5 /usr/sbin/amcheck -m DailySet1 +45 0 * * 2-6 /usr/sbin/amdump DailySet1 diff --git a/amanda.spec b/amanda.spec new file mode 100644 index 0000000..f5751c9 --- /dev/null +++ b/amanda.spec @@ -0,0 +1,360 @@ +%define __spec_install_post exit 0 +%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.1p1 +Release: 18 +Source: ftp://ftp.amanda.org/pub/amanda/amanda-2.4.1p1.tar.gz +Source1: amanda.crontab +Source2: __README_QUICKSETUP__ +Source3: amanda.conf +Source4: disklist +Source5: amanda-xinetd +Source6: amandaidx-xinetd +Source7: amidxtape-xinetd +Patch0: amanda-glibc21.patch +Patch1: amanda-glibc22.patch +Copyright: distributable +Group: Applications/System +URL: http://www.amanda.org +Prereq: fileutils grep initscripts +BuildRequires: gnuplot, dump +BuildRoot: %{_tmppath}/%{name}-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. + +%prep +%setup -q +%patch0 -p1 -b .tim +%patch1 -p1 -b .tim1 + +%build +#fixes build issues on some newer arch's +#libtoolize --copy --force +#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --bindir=%{_sbindir} \ +# --mandir=%{_mandir} --libexecdir=%{_libexecdir} \ +# --sysconfdir=%{_sysconfdir} \ +# --localstatedir=%{_localstatedir} --with-index-server=localhost \ +# --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \ +# --with-smbclient=%{_bindir}/smbclient --with-amandahosts \ +# --with-user=operator --with-group=disk --with-gnutar=/bin/tar + +%configure \ + --with-index-server=localhost \ + --with-gnutar-listdir=%{_localstatedir}/amanda/gnutar-lists \ + --with-smbclient=%{_bindir}/smbclient \ + --with-amandahosts \ + --with-user=operator \ + --with-group=disk \ + --with-gnutar=/bin/tar + +make +(cd common-src; make security) + +%install +rm -rf ${RPM_BUILD_ROOT} +#make \ +# prefix=${RPM_BUILD_ROOT}%{_prefix} \ +# mandir=${RPM_BUILD_ROOT}%{_mandir} \ +# bindir=${RPM_BUILD_ROOT}%{_sbindir} \ +# libexecdir=${RPM_BUILD_ROOT}%{_libexecdir} \ +# install + +%makeinstall BINARY_OWNER=%(id -un) SETUID_GROUP=%(id -gn) + +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 examples +cp example/* examples +rm -f examples/Makefile* +rm -f examples/config.site + +cp common-src/security ${RPM_BUILD_ROOT}%{_sbindir} + +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 + + chmod 755 .%{_libdir}/libam* + strip .%{_sbindir}/* || : + strip --strip-debug .%{_libexecdir}/* || : +} + +#compress man pages +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%post -p /sbin/ldconfig + +%post client +/sbin/ldconfig +[ -f /var/lock/subsys/xinetd ] && /sbin/service xinetd reload > /dev/null 2>&1 || : + +# make sure there is an .amandahosts file, allow localhost by default +if [ ! -f ~operator/.amandahosts ]; then + echo "localhost operator" > ~operator/.amandahosts + echo "localhost.localdomain operator" > ~operator/.amandahosts +fi +# make sure user operator has an .amandahosts file +touch ~operator/.amandahosts +chown operator.disk ~operator/.amandahosts +chmod 660 ~operator/.amandahosts + +%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) +%doc examples docs/* +%config(noreplace) /etc/xinetd.d/amandaidx +%dir %{_sysconfdir}/amanda +%{_libdir}/libamanda* +%{_libdir}/libamtape* +%attr(-,operator,disk) %{_libexecdir}/amidxtaped +%attr(-,operator,disk) %{_sbindir}/amrestore +%{_mandir}/man8/amrestore.8* + +%attr(-,operator,disk) %{_sysconfdir}/amandates + +%files server +%defattr(-,root,root) +%{_libdir}/libamserver* +%config(noreplace) /etc/xinetd.d/amandaidx +%config(noreplace) /etc/xinetd.d/amidxtape +%attr(-,operator,disk) %{_libexecdir}/amindexd +%attr(-,operator,disk) %{_libexecdir}/amtrmidx +%attr(-,operator,disk) %{_libexecdir}/driver +%attr(4750,root,disk) %{_libexecdir}/dumper +%attr(-,operator,disk) %{_libexecdir}/getconf +%attr(4750,root,disk) %{_libexecdir}/planner +%attr(-,operator,disk) %{_libexecdir}/taper + +%attr(-,operator,disk) %{_sbindir}/amadmin +%attr(4750,root,disk) %{_sbindir}/amcheck +%attr(-,operator,disk) %{_sbindir}/amcheckdb +%attr(-,operator,disk) %{_sbindir}/amcleanup +%attr(-,operator,disk) %{_sbindir}/amdump +%attr(-,operator,disk) %{_sbindir}/amflush +%attr(-,operator,disk) %{_sbindir}/amlabel +%attr(-,operator,disk) %{_sbindir}/amoverview +%attr(-,operator,disk) %{_sbindir}/amplot +%attr(-,operator,disk) %{_sbindir}/amreport +%attr(-,operator,disk) %{_sbindir}/amrmtape +%attr(-,operator,disk) %{_sbindir}/amstatus +%attr(-,operator,disk) %{_sbindir}/amtape +%attr(-,operator,disk) %{_sbindir}/amtoc +%attr(-,operator,disk) %{_sbindir}/amverify + +%attr(-,operator,disk) %{_libexecdir}/amcat.awk +%attr(-,operator,disk) %{_libexecdir}/amplot.awk +%attr(-,operator,disk) %{_libexecdir}/amplot.g +%attr(-,operator,disk) %{_libexecdir}/amplot.gp +%{_mandir}/man8/amadmin.8* +%{_mandir}/man8/amrmtape.8* +%{_mandir}/man8/amtape.8* +%{_mandir}/man8/amtoc.8* +%{_mandir}/man8/amanda.8* +%{_mandir}/man8/amcheck.8* +%{_mandir}/man8/amcleanup.8* +%{_mandir}/man8/amdump.8* +%{_mandir}/man8/amflush.8* +%{_mandir}/man8/amlabel.8* +%{_mandir}/man8/amplot.8* +%{_mandir}/man8/amreport.8* +%{_mandir}/man8/amstatus.8* +%config %{_sysconfdir}/amanda/crontab.sample +%{_localstatedir}/amanda/gnutar-lists + +%files client +%defattr(-,root,root) +%{_libdir}/libamclient* +%attr(-,operator,disk) %{_libexecdir}/amandad +%attr(4750,root,disk) %{_libexecdir}/calcsize +%attr(-,operator,disk) %{_libexecdir}/chg-chio +%attr(-,operator,disk) %{_libexecdir}/chg-chs +%attr(-,operator,disk) %{_libexecdir}/chg-manual +%attr(-,operator,disk) %{_libexecdir}/chg-mtx +%attr(-,operator,disk) %{_libexecdir}/chg-multi +%attr(-,operator,disk) %{_libexecdir}/chg-rth +%attr(-,operator,disk) %{_libexecdir}/chg-zd-mtx +%attr(4750,root,disk) %{_libexecdir}/killpgrp +%attr(-,operator,disk) %{_libexecdir}/patch-system +%attr(4750,root,disk) %{_libexecdir}/rundump +%attr(4750,root,disk) %{_libexecdir}/runtar +%attr(-,operator,disk) %{_libexecdir}/selfcheck +%attr(-,operator,disk) %{_libexecdir}/sendbackup +%attr(-,operator,disk) %{_libexecdir}/sendsize +%attr(-,operator,disk) %{_libexecdir}/versionsuffix +%attr(-,operator,disk) %{_sbindir}/amrecover +%attr(-,operator,disk) %{_sbindir}/security + +%{_mandir}/man8/amrecover.8* +%attr(-,operator,disk) %dir %{_sysconfdir}/amanda/DailySet1 +%attr(-,operator,disk) %{_sysconfdir}/amanda/DailySet1/amanda.conf +%attr(-,operator,disk) %{_sysconfdir}/amanda/DailySet1/disklist +%attr(-,operator,disk) %dir %{_localstatedir}/amanda/DailySet1/ + +%changelog +* 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 + diff --git a/disklist b/disklist new file mode 100644 index 0000000..571b7c0 --- /dev/null +++ b/disklist @@ -0,0 +1,69 @@ +# sample Amanda2 disklist file, derived from CS.UMD.EDU's disklist +# +# If your configuration is called, say, "csd2", then this file normally goes +# in /etc/amanda/csd2/disklist. +# +# File format is: +# +# hostname diskdev dumptype +# +# where the dumptypes are defined by you in amanda.conf. + + +# At our site, root partitions have a different dumptype because they +# are of lower priority; they don't contain user data, and don't change +# much from the department prototype. In a crunch, they can be left for +# last or skipped. + +## A SPARCstation 1+ +#salty sd0a comp-root +#salty sd0g comp-user +#salty sd1g comp-user +#salty sd2a comp-root +#salty sd2g comp-user +#salty sd3c comp-user +# +## A DECstation 3100 +#slithy rz1a comp-root +#slithy rz1g comp-user +#slithy rz3a comp-root +#slithy rz3g comp-user +# +## We don't run compression on the master host since it is going to be +## busy enough running amanda. +#master sd0a nocomp-root -1 local +#master sd0g nocomp-user -1 local +## note: -1 is a placeholder for the spindle number +## the holding disk can't be dumped to itself, it uses a disktype that +## specifies the "no-hold" option (see amanda.conf). +#master sd1c holding-disk -1 local +# +## The chairman's disk is high priority to make sure it gets done. +#bigwig sd0a comp-root +#bigwig sd0g comp-high +## Likewise the named databases in the root partition on our primary +## nameserver. Also, compression is turned off because we don't want +## to create any unnecessary load on this baby (it's only a Sun3). +#bozo sd0a nocomp-high +#bozo sd0g nocomp-user +#bozo sd4c nocomp-user +# +## Dump Joe's NetBSD machine, with the mounted MS-DOS partition dumped +## using tar. +#joespc wd0a comp-root +#joespc wd0e comp-user +#joespc /msdos comp-user-tar +# +## Some really slow machines, like Sun2's and some Vaxstations, take +## forever to compress their dumps: it's just not worth it. +# +## A Sun2 +#cleo sd0a nocomp-root +#cleo sd0g nocomp-user +## A VaxStation +#susie rz8a nocomp-root +#susie rz8g nocomp-user +# +## and so on ... well, you get the idea + +localhost /etc comp-root-tar diff --git a/sources b/sources index e69de29..363c48f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +13f34dc97c35f85f88e54ca25b2009ed amanda-2.4.1p1.tar.gz