summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authortv <tv>1999-05-24 20:11:10 +0000
committertv <tv>1999-05-24 20:11:10 +0000
commit2dceb46da5667da02f175cdab8fb327156a5ac34 (patch)
tree2b383e67543e8b4ffbb11b2b3bb9e5fb5aaf9984 /emulators
parentba79975386cdfcdcb58cf260d64f3bef50fd7073 (diff)
downloadpkgsrc-2dceb46da5667da02f175cdab8fb327156a5ac34.tar.gz
Adapt freebsd_lib's "smart /emul" script to suse_base.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/suse_base/pkg/INSTALL57
1 files changed, 30 insertions, 27 deletions
diff --git a/emulators/suse_base/pkg/INSTALL b/emulators/suse_base/pkg/INSTALL
index 090c256c2b7..5e4aa8ab5da 100644
--- a/emulators/suse_base/pkg/INSTALL
+++ b/emulators/suse_base/pkg/INSTALL
@@ -1,31 +1,34 @@
#!/bin/sh
-#
-# $NetBSD: INSTALL,v 1.1.1.1 1999/05/17 00:14:50 tron Exp $
-#
+# $NetBSD: INSTALL,v 1.2 1999/05/24 20:11:10 tv Exp $
-PKGNAME=$1
+emul=linux
+if [ "$2" != "POST-INSTALL" ]; then exit 0; fi
-case $2 in
- PRE-INSTALL)
- ;;
- POST-INSTALL)
- if [ ! -e /emul/linux ] || \
- [ "`cd /emul/linux && ls -di .`" != \
- "`cd @@EMULDIR@@ && ls -di`" ]
- then
- echo "===> Please note the following:"
- echo ""
- echo -n "You must create a link \"/emul/linux\" "
- echo "pointing to \"@@EMULDIR@@\""
- echo "to be able to use this package."
- echo ""
- fi
- @@EMULDIR@@/sbin/ldconfig -r @@EMULDIR@@
- ;;
- *)
- echo "Unexpected Argument ${2}."
- exit 1
- ;;
-esac
+cat <<EOF
+==============================================================================
-exit 0
+Do not forget to include COMPAT_LINUX and EXEC_ELF32 in your kernel
+configuration file. (Linux binaries require these options in order to
+work.)
+EOF
+
+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
+
+ 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
+
+cat <<EOF
+
+==============================================================================
+EOF