diff options
author | jlam <jlam@pkgsrc.org> | 2006-06-19 23:24:21 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-06-19 23:24:21 +0000 |
commit | 5e59ad964fccbb28df1b7e2cebedda05d7d55751 (patch) | |
tree | 94e9237cce677be8473d5ef11a1119b7df8d9297 /emulators/suse100_base | |
parent | ea184c8f99b1940058c84a51fb38357f9d013d0c (diff) | |
download | pkgsrc-5e59ad964fccbb28df1b7e2cebedda05d7d55751.tar.gz |
Cleanup fallout from {DE,}INSTALL_SRC removal: rewrite the INSTALL
script to be of the format expected by the pkginstall framework.
Also, split out the important text from the INSTALL script and put it
into a MESSAGE file.
Also, remove the unused show-shlib-type target.
Diffstat (limited to 'emulators/suse100_base')
-rw-r--r-- | emulators/suse100_base/INSTALL | 82 | ||||
-rw-r--r-- | emulators/suse100_base/MESSAGE.DragonFly | 7 | ||||
-rw-r--r-- | emulators/suse100_base/MESSAGE.FreeBSD | 7 | ||||
-rw-r--r-- | emulators/suse100_base/MESSAGE.NetBSD | 6 |
4 files changed, 42 insertions, 60 deletions
diff --git a/emulators/suse100_base/INSTALL b/emulators/suse100_base/INSTALL index fbae38ccb8d..6e8ec94ada5 100644 --- a/emulators/suse100_base/INSTALL +++ b/emulators/suse100_base/INSTALL @@ -1,68 +1,30 @@ -#!/bin/sh -# $NetBSD: INSTALL,v 1.1.1.1 2006/03/09 20:34:10 tonio Exp $ +# $NetBSD: INSTALL,v 1.2 2006/06/19 23:24:21 jlam Exp $ -if [ "$2" != "POST-INSTALL" ]; then exit 0; fi -emul=linux -OPSYS=`/usr/bin/uname -s` +case "${STAGE}" in +POST-INSTALL) + emulsubdir=linux -cat <<EOF -============================================================================== - -EOF - -if [ "$OPSYS" = "NetBSD" ]; then - cat <<-EOF - Do not forget to include COMPAT_LINUX (and EXEC_ELF32 on NetBSD systems older - than 1.5) in your kernel configuration file. (Linux binaries require these - options in order to work.) - EOF -fi + emuldir="@OPSYS_EMULDIR@" + pkgemuldir="${PKG_PREFIX}/emul/$emulsubdir" -if [ "$OPSYS" = "FreeBSD" ]; then - cat <<-EOF - Do not forget to include COMPAT_LINUX in your kernel configuration file. - You also need to load "linux.ko" kernel module (using kldload(8) or by - setting linux_enable="yes" in /etc/rc.conf. - EOF -fi + emuldir_pwd=`cd $emulsubdir 2>/dev/null && ${PWD_CMD}` + pkgemuldir_pwd=`cd $pkgemulsubdir 2>/dev/null && ${PWD_CMD}` -if [ "$OPSYS" = "NetBSD" ]; then - 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 -fi - -if [ "$OPSYS" = "FreeBSD" ]; then - if [ "`cd /etc && cd ${PKG_PREFIX}/emul/$emul 2>/dev/null && pwd -P`" != \ - "`cd / && cd /compat/$emul 2>/dev/null && pwd -P`" ]; then - if [ -e /compat/$emul -o -L /compat/$emul ] || \ - [ \( -e /compat -o -L /compat \) -a ! -d /compat ]; then - cat <<-EOF - - IMPORTANT: You must create a symbolic link from /compat/$emul to - ${PKG_PREFIX}/emul/$emul in order for this package to work properly. - (It seems there is something else located at /compat/$emul.) - EOF - else - mkdir -p /compat - ln -sf ${PKG_PREFIX}/emul/$emul /compat/$emul - fi - 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 diff --git a/emulators/suse100_base/MESSAGE.DragonFly b/emulators/suse100_base/MESSAGE.DragonFly new file mode 100644 index 00000000000..ad7982f820c --- /dev/null +++ b/emulators/suse100_base/MESSAGE.DragonFly @@ -0,0 +1,7 @@ +============================================================================== +$NetBSD: MESSAGE.DragonFly,v 1.1 2006/06/19 23:24:21 jlam Exp $ + +Do not forget to include COMPAT_LINUX in your kernel configuration file. +You will also need to load the "linux.ko" kernel module (using kldload(8) +or by setting linux_enable=yes in /etc/rc.conf. +============================================================================== diff --git a/emulators/suse100_base/MESSAGE.FreeBSD b/emulators/suse100_base/MESSAGE.FreeBSD new file mode 100644 index 00000000000..d31f10c9a2e --- /dev/null +++ b/emulators/suse100_base/MESSAGE.FreeBSD @@ -0,0 +1,7 @@ +============================================================================== +$NetBSD: MESSAGE.FreeBSD,v 1.1 2006/06/19 23:24:21 jlam Exp $ + +Do not forget to include COMPAT_LINUX in your kernel configuration file. +You will also need to load the "linux.ko" kernel module (using kldload(8) +or by setting linux_enable=yes in /etc/rc.conf. +============================================================================== diff --git a/emulators/suse100_base/MESSAGE.NetBSD b/emulators/suse100_base/MESSAGE.NetBSD new file mode 100644 index 00000000000..2019ec634e5 --- /dev/null +++ b/emulators/suse100_base/MESSAGE.NetBSD @@ -0,0 +1,6 @@ +============================================================================== +$NetBSD: MESSAGE.NetBSD,v 1.1 2006/06/19 23:24:21 jlam Exp $ + +Do not forget to include COMPAT_LINUX in your kernel configuration file. +Linux binaries require this option in order to work. +============================================================================== |