#!/bin/sh # $NetBSD: INSTALL,v 1.1.1.1 2004/07/13 10:31:13 tron Exp $ if [ "$2" != "POST-INSTALL" ]; then exit 0; fi emul=linux OPSYS=`/usr/bin/uname -s` cat </dev/null && pwd -P`" != \ "`cd / && cd /emul/$emul 2>/dev/null && pwd -P`" ]; then if [ -e /emul/$emul -o -L /emul/$emul ] || \ [ \( -e /emul -o -L /emul \) -a ! -d /emul ]; then cat <<-EOF IMPORTANT: You must create a symbolic link from /emul/$emul to ${PKG_PREFIX}/emul/$emul in order for this package to work properly. (It seems there is something else located at /emul/$emul.) EOF else mkdir -p /emul ln -sf ${PKG_PREFIX}/emul/$emul /emul/$emul fi fi fi if [ "$OPSYS" = "FreeBSD" ]; then if [ "`cd /etc && cd ${PKG_PREFIX}/emul/$emul 2>/dev/null && pwd -P`" != \ "`cd / && cd /compat/$emul 2>/dev/null && pwd -P`" ]; then if [ -e /compat/$emul -o -L /compat/$emul ] || \ [ \( -e /compat -o -L /compat \) -a ! -d /compat ]; then cat <<-EOF IMPORTANT: You must create a symbolic link from /compat/$emul to ${PKG_PREFIX}/emul/$emul in order for this package to work properly. (It seems there is something else located at /compat/$emul.) EOF else mkdir -p /compat ln -sf ${PKG_PREFIX}/emul/$emul /compat/$emul fi fi fi cat <