2000-05-25 21:51:34 -04:00
|
|
|
#!/bin/sh
|
2001-02-12 20:31:23 -05:00
|
|
|
# $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 ()
|
|
|
|
{
|
2001-02-12 20:31:23 -05:00
|
|
|
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
|
2001-02-12 20:31:23 -05:00
|
|
|
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
|
|
|
exit 1
|
2000-05-25 21:51:34 -04:00
|
|
|
fi
|
|
|
|
|
2001-02-12 20:31:23 -05:00
|
|
|
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
|
2001-02-12 20:31:23 -05:00
|
|
|
|
|
|
|
exit 0
|