openbsd-ports/net/ucd-snmp/pkg/INSTALL

36 lines
592 B
Plaintext
Raw Normal View History

2000-06-02 11:45:05 -04:00
#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.2 2000/06/29 21:20:06 jakob Exp $
2000-06-02 11:45:05 -04:00
#
# 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