#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.2 2000/06/29 21:20:06 jakob Exp $
#
# post-installation setup of ucd-snmp

PERSISTENT_DIR=/var/ucd-snmp

create_persistent()
{
	install -d -m 755 -o root -g wheel ${1}
}

# verify proper execution
#
if [ $# -ne 2 ]; then
    echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
    exit 1
fi

# Verify/process the command
#
case $2 in
    PRE-INSTALL)
	: nothing to pre-install for this port
	;;
    POST-INSTALL)
	create_persistent ${PERSISTENT_DIR}
	;;
    *)
	echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
	exit 1
	;;
esac
exit 0
