aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Walker <kris240376@gmail.com>2010-05-13 01:00:40 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 01:00:40 +0200
commit4720e93ed04a74086488005de86ed90afe4bf6a2 (patch)
tree5a47277bcd719c5e75b30c892c6e1bd6b1b2513b
parent0bb906e91bc208579bcfdaace96296f5afaf37f7 (diff)
system/amanda: Added to 13.0 repository
-rw-r--r--system/amanda/README14
-rw-r--r--system/amanda/README.SLACKWARE17
-rw-r--r--system/amanda/amanda.SlackBuild142
-rw-r--r--system/amanda/amanda.info10
-rw-r--r--system/amanda/doinst.sh26
-rw-r--r--system/amanda/slack-desc19
6 files changed, 228 insertions, 0 deletions
diff --git a/system/amanda/README b/system/amanda/README
new file mode 100644
index 000000000000..6cba710a2ad5
--- /dev/null
+++ b/system/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.6.1p1/README.SLACKWARE for more
+information on how to modify inetd.conf to start the the Amanda daemons
+automatically at boot.
diff --git a/system/amanda/README.SLACKWARE b/system/amanda/README.SLACKWARE
new file mode 100644
index 000000000000..7b01ade70767
--- /dev/null
+++ b/system/amanda/README.SLACKWARE
@@ -0,0 +1,17 @@
+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 /etc/inetd.conf:
+
+ 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
+
+ amanda stream tcp nowait amanda /usr/libexec/amandad \
+ amandad -auth=bsdtcp amdump amindexd amidxtaped
+
diff --git a/system/amanda/amanda.SlackBuild b/system/amanda/amanda.SlackBuild
new file mode 100644
index 000000000000..c9d1196728fa
--- /dev/null
+++ b/system/amanda/amanda.SlackBuild
@@ -0,0 +1,142 @@
+#!/bin/sh
+
+# Slackware build script for amanda
+
+# Copyright (c) 2009 Chris Walker <kris240376@gmail.com>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following disclaimer
+# in the documentation and/or other materials provided with the
+# distribution.
+# * Neither the name of the {company} nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=amanda
+VERSION=${VERSION:-2.6.1p1}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-2}
+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"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+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 ! getent group | grep -q ^${AMANDAGRP}: 2>/dev/null ; then
+ do_exit;
+elif ! getent passwd | grep -q ^${AMANDAUSR}: 2>/dev/null ; then
+ do_exit;
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R a-s,u+w,go+r-w .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --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 \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+( 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 || true
+)
+
+chown -R root:root $PKG/usr/man
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
+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
+ cat example/$i > $PKG/etc/$PRGNAM/$i.new ;
+done
+
+mkdir -p $PKG/var/lib/amanda
+chown -R $AMANDAUSR:$AMANDAGRP $PKG/var/lib/amanda
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+( cd $PKG/usr/doc/$PRGNAM-$VERSION
+ for i in template.d example ChangeLog COPYRIGHT NEWS ReleaseNotes ; do
+ ln -s ../../share/amanda/$i $i ;
+ done
+)
+
+mkdir $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/amanda/amanda.info b/system/amanda/amanda.info
new file mode 100644
index 000000000000..eb538c554c59
--- /dev/null
+++ b/system/amanda/amanda.info
@@ -0,0 +1,10 @@
+PRGNAM="amanda"
+VERSION="2.6.1p1"
+HOMEPAGE="http://www.amanda.org/"
+DOWNLOAD="http://downloads.sourceforge.net/amanda/amanda-2.6.1p1.tar.gz"
+MD5SUM="eae0a75f21aa708a8dccf9ea7ac1c631"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Christopher Walker"
+EMAIL="kris240376@gmail.com"
+APPROVED="dsomero"
diff --git a/system/amanda/doinst.sh b/system/amanda/doinst.sh
new file mode 100644
index 000000000000..6910610d707d
--- /dev/null
+++ b/system/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/system/amanda/slack-desc b/system/amanda/slack-desc
new file mode 100644
index 000000000000..3f85287680d1
--- /dev/null
+++ b/system/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 Automatic Network Disk Archiver)
+amanda:
+amanda: AMANDA, the Advanced Maryland Automatic 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: Homepage: http://www.amanda.org/