head	1.4;
access;
symbols
	pkgsrc-2013Q2:1.4.0.24
	pkgsrc-2013Q2-base:1.4
	pkgsrc-2012Q4:1.4.0.22
	pkgsrc-2012Q4-base:1.4
	pkgsrc-2011Q4:1.4.0.20
	pkgsrc-2011Q4-base:1.4
	pkgsrc-2011Q2:1.4.0.18
	pkgsrc-2011Q2-base:1.4
	pkgsrc-2009Q4:1.4.0.16
	pkgsrc-2009Q4-base:1.4
	pkgsrc-2008Q4:1.4.0.14
	pkgsrc-2008Q4-base:1.4
	pkgsrc-2008Q3:1.4.0.12
	pkgsrc-2008Q3-base:1.4
	cube-native-xorg:1.4.0.10
	cube-native-xorg-base:1.4
	pkgsrc-2008Q2:1.4.0.8
	pkgsrc-2008Q2-base:1.4
	pkgsrc-2008Q1:1.4.0.6
	pkgsrc-2008Q1-base:1.4
	pkgsrc-2007Q4:1.4.0.4
	pkgsrc-2007Q4-base:1.4
	pkgsrc-2007Q3:1.4.0.2
	pkgsrc-2007Q3-base:1.4
	pkgsrc-2007Q2:1.3.0.20
	pkgsrc-2007Q2-base:1.3
	pkgsrc-2007Q1:1.3.0.18
	pkgsrc-2007Q1-base:1.3
	pkgsrc-2006Q4:1.3.0.16
	pkgsrc-2006Q4-base:1.3
	pkgsrc-2006Q3:1.3.0.14
	pkgsrc-2006Q3-base:1.3
	pkgsrc-2006Q2:1.3.0.12
	pkgsrc-2006Q2-base:1.3
	pkgsrc-2006Q1:1.3.0.10
	pkgsrc-2006Q1-base:1.3
	pkgsrc-2005Q4:1.3.0.8
	pkgsrc-2005Q4-base:1.3
	pkgsrc-2005Q3:1.3.0.6
	pkgsrc-2005Q3-base:1.3
	pkgsrc-2005Q2:1.3.0.4
	pkgsrc-2005Q2-base:1.3
	pkgsrc-2005Q1:1.3.0.2
	pkgsrc-2005Q1-base:1.3
	pkgsrc-2004Q4:1.2.0.10
	pkgsrc-2004Q4-base:1.2
	pkgsrc-2004Q3:1.2.0.8
	pkgsrc-2004Q3-base:1.2
	pkgsrc-2004Q2:1.2.0.6
	pkgsrc-2004Q2-base:1.2
	pkgsrc-2004Q1:1.2.0.4
	pkgsrc-2004Q1-base:1.2
	pkgsrc-2003Q4:1.2.0.2
	pkgsrc-2003Q4-base:1.2
	netbsd-1-6-1:1.1.0.6
	netbsd-1-6-1-base:1.1
	netbsd-1-6:1.1.0.8
	netbsd-1-6-RELEASE-base:1.1
	pkgviews:1.1.0.4
	pkgviews-base:1.1
	buildlink2:1.1.0.2
	buildlink2-base:1.1
	netbsd-1-5-PATCH003:1.1;
locks; strict;
comment	@# @;


1.4
date	2007.08.21.22.49.26;	author jlam;	state dead;
branches;
next	1.3;

1.3
date	2005.01.11.05.12.56;	author hamajima;	state Exp;
branches;
next	1.2;

1.2
date	2003.08.30.19.07.10;	author jlam;	state Exp;
branches;
next	1.1;

1.1
date	2001.10.31.23.53.01;	author zuntum;	state Exp;
branches;
next	;


desc
@@


1.4
log
@* Support netbsd-* as a valid platform in EMUL_PLATFORMS.  Use the
  pkgsrc/emulator/compat* and pkgsrc/emulator/netbsd32_compat* packages
  to provide the necessary shared libraries to run dynamically linked
  NetBSD binaries from the days of yore.

* Add some additional compat* packages for completeness:

	compat15, compat20, compat30

* Modify the compat* packages so that "compatNM" only provides files
  that aren't in "NetBSD-N.(M+1)".  For example, compat12 only provides
  files that don't exist in NetBSD-1.3.x, compat13 only provides files
  that don't exist in NetBSD-1.4.x, etc.

  As a result, if you are running NetBSD-3.0/alpha and want to run a
  1.3 dynamically linked binary, there is an automatic dependency
  chain that causes the following packages to be installed:

	compat13, compat14, compat15, compat16, compat20

  There are some deviations from this dependency chain on platforms
  that have changed executable formats, e.g. i386, m68, sparc, etc.
  However, in general pkgsrc will require that you have the necessary
  COMPAT_* options in your kernel to match the installed compat*
  packages.  This restriction is an artificial one imposed by pkgsrc,
  but allows for a single set of distfiles to be used on all versions
  of NetBSD.

* Provide compat* package support for every supported architecture
  of NetBSD.  Verily, it is now possible to run 1.2 binaries on
  NetBSD-1.5.3/pc532 by installing the compat12 package from pkgsrc.
  Rejoice, one and all!

* The netbsd32_compat* packages mirror the corresponding compat*
  packages for use by sparc64 and x86_64 to allow running 32-bit
  binaries with COMPAT_NETBSD32 kernel support.  The "extras" packages
  supply the additional shared libraries from the corresponding release
  of NetBSD so that the set of files in /emul/netbsd32 will be complete.

* pkgsrc/emulators/compat_netbsd contains infrastructure files shared
  by all of the compat* packages.
@
text
@# $NetBSD: INSTALL,v 1.3 2005/01/11 05:12:56 hamajima Exp $

case ${STAGE} in
POST-INSTALL)
	MACHINE_ARCH=@@MACHINE_ARCH@@
	OBJECT_FMT=@@OBJECT_FMT@@

	# Only create the symlink on certain platform/object combinations.  Note
	# that sparc64 a.out compatibility lives in /emul/aout, not /emul/netbsd32.
	#
	create_emul_symlink=0
	case ${MACHINE_ARCH} in
		sparc64 | x86_64)
			create_emul_symlink=1
			;;
	esac

	if [ ${create_emul_symlink} = 1 ]
	then
		# Create a symlink from /emul/aout --> ${PKG_PREFIX}/emul/aout
		# if it doesn't already exist.  Warn if we can't do this.
		#
		emul=aout
		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

	# Regenerate the shared library cache.  This should work on either
	# a.out or on ELF with the 1.5 release.
	#
	( @@LDCONFIG@@ || ${TRUE} ) >/dev/null 2>&1
	;;
esac
@


1.3
log
@support i386 a.out and ELF binary emulation for amd64.
@
text
@d1 1
a1 1
# $NetBSD: INSTALL,v 1.2 2003/08/30 19:07:10 jlam Exp $
@


1.2
log
@Convert to use bsd.pkg.install.mk.
@
text
@d1 1
a1 1
# $NetBSD: INSTALL,v 1.1 2001/10/31 23:53:01 zuntum Exp $
d12 5
a16 4
	if [ "${MACHINE_ARCH}" = "sparc64" ]
	then
		create_emul_symlink=1
	fi
@


1.1
log
@Move pkg/ files into package's toplevel directory
@
text
@d1 1
a1 6
#!/bin/sh
#
# $NetBSD: INSTALL,v 1.1.1.1 2001/02/04 07:16:30 mrg Exp $

PKGNAME=$1
STAGE=$2
a3 2
PRE-INSTALL)
	;;
d29 1
a29 1
				cat <<EOF
d39 2
a40 2
				mkdir -p /emul
				ln -sf ${PKG_PREFIX}/emul/$emul /emul/$emul
d48 1
a48 5
	( @@LDCONFIG@@ || true ) >/dev/null 2>&1
	;;
*)
	echo "Unexpected argument: ${STAGE}"
	exit 1
a50 1
exit 0
@

