pkgsrc/emulators/freebsd_lib/INSTALL
2006-06-23 15:48:50 +00:00

30 lines
826 B
Text

# $NetBSD: INSTALL,v 1.3 2006/06/23 15:48:50 jlam Exp $
case "${STAGE}" in
POST-INSTALL)
emulsubdir=freebsd
emuldir="/emul/$emulsubdir"
pkgemuldir="${PKG_PREFIX}/emul/$emulsubdir"
emuldir_pwd=`cd $emuldir 2>/dev/null && ${PWD_CMD}`
pkgemuldir_pwd=`cd $pkgemuldir 2>/dev/null && ${PWD_CMD}`
if ${TEST} "$emuldir_pwd" != "$pkgemuldir_pwd"; then
if ${TEST} -e $emuldir -o -L $emuldir; then
${CAT} << EOF
==============================================================================
You must create a symbolic link for ${PKGNAME} to work properly:
$pkgemuldir -> $emuldir
It seems there is something else located at $emuldir.
==============================================================================
EOF
else
${MKDIR} -p `${DIRNAME} $emuldir` &&
${LN} -fs $pkgemuldir $emuldir
fi
fi
;;
esac