diff options
Diffstat (limited to 'emulators/freebsd_lib/INSTALL')
-rw-r--r-- | emulators/freebsd_lib/INSTALL | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/emulators/freebsd_lib/INSTALL b/emulators/freebsd_lib/INSTALL index 975aeb7b90e..da11b01b1f5 100644 --- a/emulators/freebsd_lib/INSTALL +++ b/emulators/freebsd_lib/INSTALL @@ -1,34 +1,30 @@ -#!/bin/sh -# $NetBSD: INSTALL,v 1.1 2001/10/31 23:52:39 zuntum Exp $ +# $NetBSD: INSTALL,v 1.2 2006/06/19 23:20:59 jlam Exp $ -emul=freebsd -if [ "$2" != "POST-INSTALL" ]; then exit 0; fi +case "${STAGE}" in +POST-INSTALL) + emulsubdir=freebsd -cat <<EOF -============================================================================== - -Do not forget to include COMPAT_FREEBSD in your kernel configuration file. -(FreeBSD binaries require this option in order to work.) -Note that FreeBSD ELF binaries are not yet supported with this package. -EOF + emuldir="/emul/$emulsubdir" + pkgemuldir="${PKG_PREFIX}/emul/$emulsubdir" -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 <<-EOF + emuldir_pwd=`cd $emulsubdir 2>/dev/null && ${PWD_CMD}` + pkgemuldir_pwd=`cd $pkgemulsubdir 2>/dev/null && ${PWD_CMD}` - 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 + 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: -cat <<EOF + $pkgemuldir -> $emuldir +It seems there is something else located at $emuldir. ============================================================================== EOF + else + ${MKDIR} -p `${DIRNAME} $emuldir` && + ${LN} -fs $pkgemuldir $emuldir + fi + fi + ;; +esac |