openbsd-ports/misc/amanda/pkg/INSTALL-client
naddy 5f445542e2 Update amanda to 2.4.2p2. Overhaul port completely.
Submitted by Tom Schutter <t.schutter@att.net>.
2001-05-12 16:41:08 +00:00

43 lines
747 B
Bash

#!/bin/sh
# $OpenBSD: INSTALL-client,v 1.1 2001/05/12 16:41:10 naddy Exp $
#
# Pre/post-installation setup of amanda
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# create the needed /var directories
#
do_var()
{
mkdir -p /var/amanda/gnutar-lists
chown -R operator.operator /var/amanda
}
# create the needed /etc/amandates file if it does not exist
# note that it is hardwired to be in /etc, not ${SYSCONFDIR}
#
do_amandates()
{
touch /etc/amandates
chown operator.operator /etc/amandates
}
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
do_var
do_amandates
echo ""
;;
esac
exit 0