aboutsummaryrefslogtreecommitdiff
path: root/libraries/amanda
diff options
context:
space:
mode:
authorChristopher Walker <kris240376@gmail.com>2010-05-11 22:53:56 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:53:56 +0200
commit47e6e7d729fb6f0b9dc82585860a4486f9285ca0 (patch)
tree07a8f67273562df3b090651876c9d6dfb06d2e40 /libraries/amanda
parent6bcfa0dd0e3ca0f140b533314bc01d4b7600041a (diff)
libraries/amanda: Added to 12.1 repository
Diffstat (limited to 'libraries/amanda')
-rw-r--r--libraries/amanda/README14
-rw-r--r--libraries/amanda/README-SLACKWARE16
-rw-r--r--libraries/amanda/amanda.SlackBuild104
-rw-r--r--libraries/amanda/amanda.info8
-rw-r--r--libraries/amanda/doinst.sh26
-rw-r--r--libraries/amanda/slack-desc19
6 files changed, 187 insertions, 0 deletions
diff --git a/libraries/amanda/README b/libraries/amanda/README
new file mode 100644
index 0000000000000..be939704947be
--- /dev/null
+++ b/libraries/amanda/README
@@ -0,0 +1,14 @@
+AMANDA, the Advanced Maryland Autoamatic 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. Recent versions
+can also use SAMBA to back up Microsoft Windows hosts.
+
+You will need to have a special user and group created for AMANDA to use;
+this defaults to user and group of "amanda" but you can specify whatever
+group you wish - see the build script for more information.
+
+After installing, see the /usr/doc/amanda-2.5.2p1/README-SLACKWARE for more
+information on how to modify inetd.conf to start the the Amanda daemons
+automatically at boot.
diff --git a/libraries/amanda/README-SLACKWARE b/libraries/amanda/README-SLACKWARE
new file mode 100644
index 0000000000000..e58e92e4b7525
--- /dev/null
+++ b/libraries/amanda/README-SLACKWARE
@@ -0,0 +1,16 @@
+README-SLACKWARE
+Written by Christopher Walker <kris240376@gmail.com>
+
+You'll need to start the Amanda indexing services at boot.
+The recommended way of doing this is to add the following to your /etc/inetd.conf
+file (note that lines below may be wrapped):
+
+ amandaidx stream tcp nowait amanda /usr/libexec/amindexd amindexd -auth=bsdtcp amdump amindexd amidxtaped
+ amidxtape stream tcp nowait amanda /usr/libexec/amidxtaped amidxtaped -auth=bsdtcp amdump amindexd amidxtaped
+
+You'll also need to start the Amanda client services at boot.
+The recommended way of doing this is to add the following to /etc/inetd.conf
+(note that the line may be wrapped):
+
+ amanda stream tcp nowait amanda /usr/libexec/amandad amandad -auth=bsdtcp amdump amindexd amidxtaped
+
diff --git a/libraries/amanda/amanda.SlackBuild b/libraries/amanda/amanda.SlackBuild
new file mode 100644
index 0000000000000..bb6af9177ad07
--- /dev/null
+++ b/libraries/amanda/amanda.SlackBuild
@@ -0,0 +1,104 @@
+#!/bin/sh
+
+# Slackware build script for amanda
+# Written by Christopher Walker <kris240376@gmail.com>
+
+PRGNAM=amanda
+VERSION=${VERSION:-2.5.2p1}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAB:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+AMANDAUSR=${AMANDAUSR:-amanda}
+AMANDAGRP=${AMANDAGRP:-amanda}
+AMANDAUID=${AMANDAUID:-211}
+AMANDAGID=${AMANDAGID:-211}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+do_exit() {
+ echo ; echo "You must have the ${AMANDAUSR} user and ${AMANDAGRP} group in"
+ echo "order to build amanda. Sample lines to do so are below:"
+ echo "# groupadd -g ${AMANDAGID} ${AMANDAGRP}"
+ echo "# useradd -u ${AMANDAUID} -d /var/lib/amanda -s /bin/false -g ${AMANDAGRP} ${AMANDAUSR}"
+ echo "Exiting..." ; echo ; exit 1
+}
+
+# Check for Amanada user and group availability
+if ! grep -q ^${AMANDAGRP}: /etc/group 2>/dev/null ; then
+ do_exit ;
+elif ! grep -q ^${AMANDAUSR}: /etc/passwd 2>/dev/null ; then
+ do_exit ;
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R a-s,u+w,go+r-w .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --mandir=/usr/man \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --with-user=$AMANDAUSR \
+ --with-group=$AMANDAGRP\
+ --with-owner=root \
+ --with-bsdudp-security \
+ --with-ssh-security \
+ --with-bsdtcp-security \
+ --disable-static
+
+make || exit 1
+make install DESTDIR=$PKG || exit 1
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+chown -R root:root $PKG/usr/man
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYRIGHT COPYRIGHT-APACHE COPYRIGHT-REGEX ChangeLog INSTALL \
+ NEWS README ReleaseNotes $CWD/README-SLACKWARE $PKG/usr/doc/$PRGNAM-$VERSION
+# Move documentation to Slackware'esque location
+mv $PKG/usr/share/amanda/* $PKG/usr/doc/$PRGNAM-$VERSION
+rm -rf $PKG/usr/share
+chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
+chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
+
+mkdir -p $PKG/etc/$PRGNAM
+for i in 3hole.ps 8.5x11.ps DIN-A4.ps DLT.ps EXB-8500.ps \
+ HP-DAT.ps amanda-client.conf amanda.conf chg-mcutil.conf \
+ chg-multi.conf chg-scsi.conf disklist ; do
+ cp -a example/$i $PKG/etc/$PRGNAM/$i.new;
+done
+
+chown -R root.root $PKG/etc/$PRGNAM
+chmod 644 $PKG/etc/$PRGNAM/*
+
+mkdir -p $PKG/var/lib/amanda
+chown -R $AMANDAUSR:$AMANDAGRP $PKG/var/lib/amanda
+
+mkdir $PKG/install
+cp $CWD/doinst.sh $CWD/slack-desc $PKG/install
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/libraries/amanda/amanda.info b/libraries/amanda/amanda.info
new file mode 100644
index 0000000000000..34fa23cbea588
--- /dev/null
+++ b/libraries/amanda/amanda.info
@@ -0,0 +1,8 @@
+PRGNAM="amanda"
+VERSION="2.5.2p1"
+HOMEPAGE="http://www.amanda.org/"
+DOWNLOAD="http://downloads.sourceforge.net/amanda/amanda-2.5.2p1.tar.gz"
+MD5SUM="da1234b12e1e34f8535f1c6269d27788"
+MAINTAINER="Christopher Walker"
+EMAIL="kris240376@gmail.com"
+APPROVED="rworkman"
diff --git a/libraries/amanda/doinst.sh b/libraries/amanda/doinst.sh
new file mode 100644
index 0000000000000..6910610d707d3
--- /dev/null
+++ b/libraries/amanda/doinst.sh
@@ -0,0 +1,26 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/amanda/3hole.ps.new
+config etc/amanda/8.5x11.ps.new
+config etc/amanda/DIN-A4.ps.new
+config etc/amanda/DLT.ps.new
+config etc/amanda/EXB-8500.ps.new
+config etc/amanda/HP-DAT.ps.new
+config etc/amanda/amanda-client.conf.new
+config etc/amanda/amanda.conf.new
+config etc/amanda/chg-mcutil.conf.new
+config etc/amanda/chg-multi.conf.new
+config etc/amanda/chg-scsi.conf.new
+config etc/amanda/disklist.new
+
diff --git a/libraries/amanda/slack-desc b/libraries/amanda/slack-desc
new file mode 100644
index 0000000000000..3912407eb429a
--- /dev/null
+++ b/libraries/amanda/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+amanda: amanda (Advanced Maryland Autoamatic Network Disk Archiver)
+amanda:
+amanda: AMANDA, the Advanced Maryland Autoamatic Network Disk Archiver,
+amanda: is a backup system that allows the administrator of a LAN to set
+amanda: up a single master backup server to back up multiple hosts to a
+amanda: single large capacity tape drive. AMANDA uses native dump
+amanda: and/or GNU tar facilities and can back up a large number of
+amanda: workstations running multiple versions of Unix. Recent versions
+amanda: can also use SAMBA to back up Microsoft Windows hosts.
+amanda:
+amanda: