openbsd-ports/security/cyrus-sasl2/pkg/INSTALL

36 lines
632 B
Plaintext
Raw Normal View History

2002-06-22 04:55:44 -04:00
#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.3 2003/06/17 23:09:00 naddy Exp $
2002-06-22 04:55:44 -04:00
# exit on errors, use a sane path and install prefix
#
set -e
2002-06-22 04:55:44 -04:00
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
2002-06-22 04:55:44 -04:00
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ ! -e /usr/lib/sasl2 ]; then
ln -s ${PREFIX}/lib/sasl2 /usr/lib/sasl2
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
2002-06-22 04:55:44 -04:00
exit 0