8924f7ee74
rename patches to new naming scheme (from maintainer; Dan Harnett <danh@nfol.com>)
36 lines
592 B
Plaintext
36 lines
592 B
Plaintext
#!/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
|