summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authormrg <mrg>2002-11-08 16:23:02 +0000
committermrg <mrg>2002-11-08 16:23:02 +0000
commit10af700a29a1e653aff2e48ac05e7e25500c0ba3 (patch)
treebc7fbc70032c2f60f1ac0073184249f867dc47fe /emulators
parentff63c324501169d3b08025f7f85d3e5fd958e695 (diff)
downloadpkgsrc-10af700a29a1e653aff2e48ac05e7e25500c0ba3.tar.gz
initial commit of the netbsd32_compat16 package that provides emulation
of 32 bit 1.6 binaries for 64 bit platforms that support this (really only sparc64.)
Diffstat (limited to 'emulators')
-rw-r--r--emulators/netbsd32_compat16/DEINSTALL30
-rw-r--r--emulators/netbsd32_compat16/DESCR5
-rw-r--r--emulators/netbsd32_compat16/INSTALL62
-rw-r--r--emulators/netbsd32_compat16/Makefile65
-rw-r--r--emulators/netbsd32_compat16/PLIST135
-rw-r--r--emulators/netbsd32_compat16/distinfo4
6 files changed, 301 insertions, 0 deletions
diff --git a/emulators/netbsd32_compat16/DEINSTALL b/emulators/netbsd32_compat16/DEINSTALL
new file mode 100644
index 00000000000..caab4d81b15
--- /dev/null
+++ b/emulators/netbsd32_compat16/DEINSTALL
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2002/11/08 16:23:02 mrg Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+case ${STAGE} in
+DEINSTALL)
+ ;;
+POST-DEINSTALL)
+ MACHINE_ARCH=@MACHINE_ARCH@
+ COMPAT_EMULSUBDIR=@COMPAT_EMULSUBDIR@
+
+ rmdir -p ${PKG_PREFIX}/${COMPAT_EMULSUBDIR} 2>/dev/null || true
+
+ # clean up the symlink
+ rm -f /emul/netbsd32
+
+ # 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
+ ;;
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/emulators/netbsd32_compat16/DESCR b/emulators/netbsd32_compat16/DESCR
new file mode 100644
index 00000000000..aa17c646fc6
--- /dev/null
+++ b/emulators/netbsd32_compat16/DESCR
@@ -0,0 +1,5 @@
+This package supplies the user files necessary for full compatibility with
+dynamically linked executables compiled under NetBSD 1.6, on a 32-bit
+platform, running on a 64-bit host.. You still need the options COMPAT_15
+and COMPAT_NETBSD32 in your kernel configuration (and probably others; see
+options(4) for more information) to make use of NetBSD 1.6 binaries.
diff --git a/emulators/netbsd32_compat16/INSTALL b/emulators/netbsd32_compat16/INSTALL
new file mode 100644
index 00000000000..5fc4f06cd99
--- /dev/null
+++ b/emulators/netbsd32_compat16/INSTALL
@@ -0,0 +1,62 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2002/11/08 16:23:02 mrg Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+case ${STAGE} in
+PRE-INSTALL)
+ ;;
+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
+ if [ "${MACHINE_ARCH}" = "sparc64" ]
+ then
+ create_emul_symlink=1
+ fi
+
+ 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=netbsd32
+ 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
+ ;;
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/emulators/netbsd32_compat16/Makefile b/emulators/netbsd32_compat16/Makefile
new file mode 100644
index 00000000000..da7bab4cc98
--- /dev/null
+++ b/emulators/netbsd32_compat16/Makefile
@@ -0,0 +1,65 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/11/08 16:23:02 mrg Exp $
+#
+
+.if ${MACHINE_ARCH} == "sparc64"
+MACHINE32_ARCH= sparc
+.else
+MACHINE32_ARCH= ${MACHINE_ARCH}
+.endif
+
+DISTNAME= compat16-${MACHINE32_ARCH}
+PKGNAME= netbsd32_compat16-1.0
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.netbsd.org/Releases/formal-1.6/index.html
+COMMENT= 32-bit shared libraries for NetBSD 1.6 (and earlier) compatibility
+
+CONFLICTS= netbsd32_compat15-[0-9]*
+
+ONLY_FOR_PLATFORM= NetBSD-*-sparc64
+
+NO_MTREE= # defined
+SHLIB_HANDLING= NO
+
+DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
+INSTALL_FILE= ${WRKDIR}/INSTALL
+
+.include "../../mk/bsd.prefs.mk"
+
+EMULSUBDIR= emul/netbsd32
+COMPAT_LIBDIR= ${PREFIX}/${EMULSUBDIR}/usr/lib
+COMPAT_LIBEXECDIR= ${PREFIX}/${EMULSUBDIR}/usr/libexec
+COMPAT_XLIBDIR= ${PREFIX}/${EMULSUBDIR}/usr/X11R6/lib
+
+PLIST_SUBST+= COMPAT_EMULSUBDIR=${EMULSUBDIR}
+
+do-build:
+ ${SED} -e "s,@MACHINE_ARCH@,${MACHINE_ARCH},g" \
+ -e "s,@COMPAT_EMULSUBDIR@,${COMPAT_EMULSUBDIR},g" \
+ -e "s,@LDCONFIG@,${LDCONFIG},g" \
+ < ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
+ ${SED} -e "s,@MACHINE_ARCH@,${MACHINE_ARCH},g" \
+ -e "s,@OBJECT_FMT@,${OBJECT_FMT},g" \
+ -e "s,@LDCONFIG@,${LDCONFIG},g" \
+ < ${PKGDIR}/INSTALL > ${INSTALL_FILE}
+
+# XXX using pax to copy symlinks properly.
+do-install:
+ ${INSTALL_DATA_DIR} ${COMPAT_LIBDIR} ${COMPAT_XLIBDIR} \
+ ${COMPAT_LIBEXECDIR}
+ (cd ${WRKDIR}/usr/lib; pax -rwv lib*.so* i18n/lib*.so* ${COMPAT_LIBDIR})
+ (cd ${WRKDIR}/usr/X11R6/lib; pax -rwv lib*.so* ${COMPAT_XLIBDIR})
+ (cd ${WRKDIR}/usr/libexec; pax -rwv ld.*so ${COMPAT_LIBEXECDIR})
+ chown ${ROOT_USER}:${ROOT_GROUP} \
+ ${COMPAT_LIBDIR}/lib*.so* ${COMPAT_LIBDIR}/i18n/lib*.so* \
+ ${COMPAT_XLIBDIR}/lib*.so* ${COMPAT_LIBEXECDIR}/ld.*so
+ chmod 555 ${COMPAT_LIBDIR}/lib*.so* ${COMPAT_LIBDIR}/i18n/lib*.so* \
+ ${COMPAT_XLIBDIR}/lib*.so* ${COMPAT_LIBEXECDIR}/ld.*so
+
+post-install:
+ PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/netbsd32_compat16/PLIST b/emulators/netbsd32_compat16/PLIST
new file mode 100644
index 00000000000..96c42011ec6
--- /dev/null
+++ b/emulators/netbsd32_compat16/PLIST
@@ -0,0 +1,135 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/11/08 16:23:02 mrg Exp $
+${COMPAT_EMULSUBDIR}/usr/lib/libamu.so.2
+${COMPAT_EMULSUBDIR}/usr/lib/libamu.so.2.1
+${COMPAT_EMULSUBDIR}/usr/lib/libasn1.so.6
+${COMPAT_EMULSUBDIR}/usr/lib/libasn1.so.6.0
+${COMPAT_EMULSUBDIR}/usr/lib/libbz2.so.1
+${COMPAT_EMULSUBDIR}/usr/lib/libbz2.so.1.0
+${COMPAT_EMULSUBDIR}/usr/lib/libc.so.12
+${COMPAT_EMULSUBDIR}/usr/lib/libc.so.12.83
+${COMPAT_EMULSUBDIR}/usr/lib/libcdk.so.1
+${COMPAT_EMULSUBDIR}/usr/lib/libcdk.so.1.0
+${COMPAT_EMULSUBDIR}/usr/lib/libcom_err.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/libcom_err.so.4.1
+${COMPAT_EMULSUBDIR}/usr/lib/libcrypt.so.0
+${COMPAT_EMULSUBDIR}/usr/lib/libcrypt.so.0.0
+${COMPAT_EMULSUBDIR}/usr/lib/libcrypto.so.1
+${COMPAT_EMULSUBDIR}/usr/lib/libcrypto.so.1.1
+${COMPAT_EMULSUBDIR}/usr/lib/libcurses.so.5
+${COMPAT_EMULSUBDIR}/usr/lib/libcurses.so.5.0
+${COMPAT_EMULSUBDIR}/usr/lib/libdes.so.6
+${COMPAT_EMULSUBDIR}/usr/lib/libdes.so.6.0
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libBIG5.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libBIG5.so.4.0
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libEUC.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libEUC.so.4.0
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libEUCTW.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libEUCTW.so.4.0
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libISO2022.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libISO2022.so.4.0
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libMSKanji.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libMSKanji.so.4.0
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libUTF8.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/i18n/libUTF8.so.4.0
+${COMPAT_EMULSUBDIR}/usr/lib/libedit.so.2
+${COMPAT_EMULSUBDIR}/usr/lib/libedit.so.2.6
+${COMPAT_EMULSUBDIR}/usr/lib/libform.so.3
+${COMPAT_EMULSUBDIR}/usr/lib/libform.so.3.0
+${COMPAT_EMULSUBDIR}/usr/lib/libgnumalloc.so.0
+${COMPAT_EMULSUBDIR}/usr/lib/libgnumalloc.so.0.0
+${COMPAT_EMULSUBDIR}/usr/lib/libgssapi.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/libgssapi.so.4.0
+${COMPAT_EMULSUBDIR}/usr/lib/libhdb.so.8
+${COMPAT_EMULSUBDIR}/usr/lib/libhdb.so.8.0
+${COMPAT_EMULSUBDIR}/usr/lib/libintl.so.0
+${COMPAT_EMULSUBDIR}/usr/lib/libintl.so.0.0
+${COMPAT_EMULSUBDIR}/usr/lib/libipsec.so.2
+${COMPAT_EMULSUBDIR}/usr/lib/libipsec.so.2.0
+${COMPAT_EMULSUBDIR}/usr/lib/libkadm.so.5
+${COMPAT_EMULSUBDIR}/usr/lib/libkadm.so.5.0
+${COMPAT_EMULSUBDIR}/usr/lib/libkadm5clnt.so.7
+${COMPAT_EMULSUBDIR}/usr/lib/libkadm5clnt.so.7.0
+${COMPAT_EMULSUBDIR}/usr/lib/libkadm5srv.so.8
+${COMPAT_EMULSUBDIR}/usr/lib/libkadm5srv.so.8.0
+${COMPAT_EMULSUBDIR}/usr/lib/libkafs.so.5
+${COMPAT_EMULSUBDIR}/usr/lib/libkafs.so.5.1
+${COMPAT_EMULSUBDIR}/usr/lib/libkdb.so.5
+${COMPAT_EMULSUBDIR}/usr/lib/libkdb.so.5.0
+${COMPAT_EMULSUBDIR}/usr/lib/libkrb.so.5
+${COMPAT_EMULSUBDIR}/usr/lib/libkrb.so.5.1
+${COMPAT_EMULSUBDIR}/usr/lib/libkrb5.so.18
+${COMPAT_EMULSUBDIR}/usr/lib/libkrb5.so.18.0
+${COMPAT_EMULSUBDIR}/usr/lib/libkstream.so.2
+${COMPAT_EMULSUBDIR}/usr/lib/libkstream.so.2.0
+${COMPAT_EMULSUBDIR}/usr/lib/libkvm.so.5
+${COMPAT_EMULSUBDIR}/usr/lib/libkvm.so.5.1
+${COMPAT_EMULSUBDIR}/usr/lib/libm.so.0
+${COMPAT_EMULSUBDIR}/usr/lib/libm.so.0.1
+${COMPAT_EMULSUBDIR}/usr/lib/libmenu.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/libmenu.so.4.0
+${COMPAT_EMULSUBDIR}/usr/lib/libobjc.so.1
+${COMPAT_EMULSUBDIR}/usr/lib/libobjc.so.1.0
+${COMPAT_EMULSUBDIR}/usr/lib/libossaudio.so.0
+${COMPAT_EMULSUBDIR}/usr/lib/libossaudio.so.0.0
+${COMPAT_EMULSUBDIR}/usr/lib/libpcap.so.1
+${COMPAT_EMULSUBDIR}/usr/lib/libpcap.so.1.2
+${COMPAT_EMULSUBDIR}/usr/lib/libpci.so.0
+${COMPAT_EMULSUBDIR}/usr/lib/libpci.so.0.0
+${COMPAT_EMULSUBDIR}/usr/lib/libposix.so.0
+${COMPAT_EMULSUBDIR}/usr/lib/libposix.so.0.1
+${COMPAT_EMULSUBDIR}/usr/lib/libresolv.so.1
+${COMPAT_EMULSUBDIR}/usr/lib/libresolv.so.1.0
+${COMPAT_EMULSUBDIR}/usr/lib/libroken.so.12
+${COMPAT_EMULSUBDIR}/usr/lib/libroken.so.12.2
+${COMPAT_EMULSUBDIR}/usr/lib/libskey.so.1
+${COMPAT_EMULSUBDIR}/usr/lib/libskey.so.1.0
+${COMPAT_EMULSUBDIR}/usr/lib/libsl.so.2
+${COMPAT_EMULSUBDIR}/usr/lib/libsl.so.2.0
+${COMPAT_EMULSUBDIR}/usr/lib/libss.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/libss.so.4.0
+${COMPAT_EMULSUBDIR}/usr/lib/libssl.so.2
+${COMPAT_EMULSUBDIR}/usr/lib/libssl.so.2.1
+${COMPAT_EMULSUBDIR}/usr/lib/libstdc++.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/libstdc++.so.4.0
+${COMPAT_EMULSUBDIR}/usr/lib/libtelnet.so.4
+${COMPAT_EMULSUBDIR}/usr/lib/libtelnet.so.4.0
+${COMPAT_EMULSUBDIR}/usr/lib/libtermcap.so.0
+${COMPAT_EMULSUBDIR}/usr/lib/libtermcap.so.0.5
+${COMPAT_EMULSUBDIR}/usr/lib/libtermlib.so.0
+${COMPAT_EMULSUBDIR}/usr/lib/libtermlib.so.0.5
+${COMPAT_EMULSUBDIR}/usr/lib/libusbhid.so.1
+${COMPAT_EMULSUBDIR}/usr/lib/libusbhid.so.1.0
+${COMPAT_EMULSUBDIR}/usr/lib/libutil.so.6
+${COMPAT_EMULSUBDIR}/usr/lib/libutil.so.6.0
+${COMPAT_EMULSUBDIR}/usr/lib/libwrap.so.0
+${COMPAT_EMULSUBDIR}/usr/lib/libwrap.so.0.2
+${COMPAT_EMULSUBDIR}/usr/lib/libz.so.0
+${COMPAT_EMULSUBDIR}/usr/lib/libz.so.0.2
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libICE.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libICE.so.6.3
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libPEX5.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libPEX5.so.6.0
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libSM.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libSM.so.6.0
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libX11.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libX11.so.6.1
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXIE.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXIE.so.6.0
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXaw.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXaw.so.6.1
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXext.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXext.so.6.3
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXi.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXi.so.6.0
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXmu.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXmu.so.6.0
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXp.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXp.so.6.2
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXt.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXt.so.6.0
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXtst.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/libXtst.so.6.1
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/liboldX.so.6
+${COMPAT_EMULSUBDIR}/usr/X11R6/lib/liboldX.so.6.0
+${COMPAT_EMULSUBDIR}/usr/libexec/ld.elf_so
+${COMPAT_EMULSUBDIR}/usr/libexec/ld.so
diff --git a/emulators/netbsd32_compat16/distinfo b/emulators/netbsd32_compat16/distinfo
new file mode 100644
index 00000000000..bcb20c92432
--- /dev/null
+++ b/emulators/netbsd32_compat16/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/11/08 16:23:02 mrg Exp $
+
+SHA1 (compat16-sparc.tar.bz2) = f5cb874b06e2664582bf06680a952cf7bb571aaa
+Size (compat16-sparc.tar.bz2) = 2550861 bytes