openbsd-ports/www/netscape/communicator-old/pkg/REQ

58 lines
1.1 KiB
Bash

#!/bin/sh
# $OpenBSD: REQ,v 1.1 2001/08/10 15:17:09 brad Exp $
#
# install/deinstall requirements check for communicator-old
# exit on errors, use a sane path
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
# Function: tell the user the requirements for this port
#
do_notice()
{
case `uname -m` in
sparc)
echo
echo "+---------------"
echo "| This application requires a kernel compiled with"
echo "| 'option COMPAT_SUNOS' and SunOS shared libraries"
echo "| for proper operation; see compat_sunos(8) for"
echo "| further details. The GENERIC kernel contains this"
echo "| option."
echo "+---------------"
echo
if [ ! -f /emul/sunos/usr/lib/ld.so ]; then
echo " You have no SunOS shared libraries installed."
echo
exit 1
fi
;;
esac
}
# Verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { INSTALL | DEINSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
DEINSTALL)
: nothing to de-install for this port
;;
INSTALL)
do_notice
;;
*)
echo "usage: $0 distname { INSTALL | DEINSTALL }" >&2
exit 1
;;
esac
exit 0