summaryrefslogtreecommitdiff
path: root/emulators/freebsd_lib/pkg/INSTALL
diff options
context:
space:
mode:
authortv <tv>1999-05-22 19:31:07 +0000
committertv <tv>1999-05-22 19:31:07 +0000
commit83d2f15718754c4bdc00861d01522582a1e78ed3 (patch)
treeadb66a3a9bfe7a9cd21e93ab28d58795ec74474e /emulators/freebsd_lib/pkg/INSTALL
parent9d85ee16165badb2f076939cf78b50bc7763d5f6 (diff)
downloadpkgsrc-83d2f15718754c4bdc00861d01522582a1e78ed3.tar.gz
Clean this up a bit:
- actually extract to ${WRKDIR} and use find, xargs, and ${INSTALL_DATA{,_DIR}} to get the permissions right - add a "smart-/emul" script that will automatically add a symlink from /emul/freebsd (adding /emul directory as necessary) only in the cases where this will not clobber something; otherwise print a message at install time that the user must do this. Note that this still works if /emul is a symlink to ${LOCALBASE}/emul, though that is no longer required. - issue a message at install time reminding the user to add COMPAT_FREEBSD to the kernel configuration.
Diffstat (limited to 'emulators/freebsd_lib/pkg/INSTALL')
-rw-r--r--emulators/freebsd_lib/pkg/INSTALL34
1 files changed, 34 insertions, 0 deletions
diff --git a/emulators/freebsd_lib/pkg/INSTALL b/emulators/freebsd_lib/pkg/INSTALL
new file mode 100644
index 00000000000..40af90b9a13
--- /dev/null
+++ b/emulators/freebsd_lib/pkg/INSTALL
@@ -0,0 +1,34 @@
+#!/bin/sh
+# $NetBSD: INSTALL,v 1.1 1999/05/22 19:31:07 tv Exp $
+
+emul=freebsd
+if [ "$2" != "POST-INSTALL" ]; then exit 0; fi
+
+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
+
+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