blob: 24671fe125d20b0b1a7293f6e60ecd8400aa7674 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# $NetBSD: INSTALL,v 1.2 2006/06/19 23:22:29 jlam Exp $
case "${STAGE}" in
POST-INSTALL)
emulsubdir=osf1
emuldir="/emul/$emulsubdir"
pkgemuldir="${PKG_PREFIX}/emul/$emulsubdir"
emuldir_pwd=`cd $emulsubdir 2>/dev/null && ${PWD_CMD}`
pkgemuldir_pwd=`cd $pkgemulsubdir 2>/dev/null && ${PWD_CMD}`
if ${TEST} "$emuldir_pwd" != "$pkgemuldir_pwd"; then
if ${TEST} -e $emuldir -o -L $emuldir ||
${TEST} \( -e /emul -o -L /emul \) -a ! -d /emul; 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
|