pkgsrc/emulators/compat12/INSTALL

51 lines
1.4 KiB
Text
Raw Normal View History

2003-08-30 20:53:07 +02:00
# $NetBSD: INSTALL,v 1.2 2003/08/30 18:53:07 jlam Exp $
case ${STAGE} in
POST-INSTALL)
MACHINE_ARCH=@MACHINE_ARCH@
OBJECT_FMT=@OBJECT_FMT@
# Only create the symlink on certain platform/object combinations.
#
create_emul_symlink=0
2000-10-14 02:17:18 +02:00
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/out
# 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
2003-08-30 20:53:07 +02:00
${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
2003-08-30 20:53:07 +02:00
${MKDIR} -p /emul
${LN} -sf ${PKG_PREFIX}/emul/$emul /emul/$emul
fi
fi
fi
# Regenerate the shared library cache. This should work on either
# a.out or on ELF with the 1.5 release.
#
2003-08-30 20:53:07 +02:00
( @LDCONFIG@ || ${TRUE} ) >/dev/null 2>&1
;;
esac