openbsd-ports/mail/solid-pop3d/pkg/INSTALL

37 lines
652 B
Plaintext
Raw Normal View History

2000-05-25 21:51:34 -04:00
#!/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"
2000-05-25 21:51:34 -04:00
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
2000-05-25 21:51:34 -04:00
fi
}
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
2000-05-25 21:51:34 -04:00
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
;;
2000-05-25 21:51:34 -04:00
esac
exit 0