#!/bin/sh # # $NetBSD: INSTALL,v 1.1.1.1 2002/08/13 03:15:24 jdarrow Exp $ PKGNAME=$1 STAGE=$2 case ${STAGE} in PRE-INSTALL) ;; POST-INSTALL) MACHINE_ARCH=@MACHINE_ARCH@ OBJECT_FMT=@OBJECT_FMT@ if [ "${MACHINE_ARCH}" = "mipsel" ] then ln -sf ld.elf_so /usr/libexec/ld.so fi # Only create the symlink on certain platform/object combinations. Note # that sparc64 a.out compatibility lives in /emul/aout, not /emul/netbsd32. # create_emul_symlink=0 if [ "${OBJECT_FMT}" = "ELF" ] && \ [ "${MACHINE_ARCH}" = "i386" -o "${MACHINE_ARCH}" = "sparc" ] then create_emul_symlink=1 fi if [ ${create_emul_symlink} = 1 ] then # Create a symlink from /emul/aout --> ${PKG_PREFIX}/emul/aout # if it doesn't already exist. Warn if we can't do this. # emul=aout if [ "`cd /etc && cd ${PKG_PREFIX}/emul/$emul 2>/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 </dev/null 2>&1 ;; *) echo "Unexpected argument: ${STAGE}" exit 1 ;; esac exit 0