#!/bin/sh # $OpenBSD: INSTALL,v 1.2 2001/02/13 01:31:24 danh Exp $ # set -e PATH="/bin:/usr/bin:/sbin:/usr/sbin" PREFIX="${PKG_PREFIX:-/usr/local}" SPOOL_DIR="/var/spool/spop3d" post_install () { if [ ! -d ${SPOOL_DIR} ]; then install -d -m 755 -o root -g wheel ${SPOOL_DIR} install -d -m 755 -o root -g wheel ${SPOOL_DIR}/bulletins fi } if [ $# -ne 2 ]; then echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 exit 1 fi case $2 in PRE-INSTALL) : nothing to pre-install for this port ;; POST-INSTALL) post_install ;; *) echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 exit 1 ;; esac exit 0