summaryrefslogtreecommitdiff
path: root/emulators/compat15
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-08-21 22:49:02 +0000
committerjlam <jlam@pkgsrc.org>2007-08-21 22:49:02 +0000
commitffd0fa8226d0808ce1982c1aede01b2328403b8f (patch)
treec963fbe349aa6c3a854fc36e80c1b467ee94113c /emulators/compat15
parentf7addad279e6d9bddee039abf2c4e73c32086181 (diff)
downloadpkgsrc-ffd0fa8226d0808ce1982c1aede01b2328403b8f.tar.gz
* 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.
Diffstat (limited to 'emulators/compat15')
-rw-r--r--emulators/compat15/DESCR2
-rw-r--r--emulators/compat15/MESSAGE7
-rw-r--r--emulators/compat15/Makefile64
-rw-r--r--emulators/compat15/PLIST.ELF53
-rw-r--r--emulators/compat15/PLIST.a.out47
-rw-r--r--emulators/compat15/PLIST.alpha8
-rw-r--r--emulators/compat15/PLIST.arm17
-rw-r--r--emulators/compat15/PLIST.i38614
-rw-r--r--emulators/compat15/PLIST.m68k17
-rw-r--r--emulators/compat15/PLIST.mipsel8
-rw-r--r--emulators/compat15/PLIST.powerpc14
-rw-r--r--emulators/compat15/PLIST.sparc8
-rw-r--r--emulators/compat15/PLIST.sparc642
-rw-r--r--emulators/compat15/PLIST.vax16
-rw-r--r--emulators/compat15/distinfo32
-rw-r--r--emulators/compat15/emulator.mk57
16 files changed, 366 insertions, 0 deletions
diff --git a/emulators/compat15/DESCR b/emulators/compat15/DESCR
new file mode 100644
index 00000000000..1a241b83961
--- /dev/null
+++ b/emulators/compat15/DESCR
@@ -0,0 +1,2 @@
+This package supplies the user files needed to run dynamically linked
+executables compiled under NetBSD 1.5.
diff --git a/emulators/compat15/MESSAGE b/emulators/compat15/MESSAGE
new file mode 100644
index 00000000000..24b8a6fa101
--- /dev/null
+++ b/emulators/compat15/MESSAGE
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2007/08/21 22:49:11 jlam Exp $
+
+The COMPAT_15 option must be included in the kernel configuration (and
+possibly others; see options(4) for more information) to make use of
+NetBSD 1.5 binaries.
+===========================================================================
diff --git a/emulators/compat15/Makefile b/emulators/compat15/Makefile
new file mode 100644
index 00000000000..e5cf8deae0a
--- /dev/null
+++ b/emulators/compat15/Makefile
@@ -0,0 +1,64 @@
+# $NetBSD: Makefile,v 1.1 2007/08/21 22:49:11 jlam Exp $
+
+DISTNAME= compat15 # overridden below
+NETBSD_VERSION= 1.5
+
+HOMEPAGE= http://www.NetBSD.org/Releases/formal-1.5/index.html
+COMMENT= Shared libraries for NetBSD 1.5 compatibility
+
+.if defined(NETBSD_COMPAT32)
+EMUL_PLATFORMS= netbsd-i386 netbsd-sparc
+
+ACCEPTABLE_NETBSD= NetBSD-1.4[A-Z]* NetBSD-1.5 NetBSD-1.5.* \
+ NetBSD-1.5[A-Z]* NetBSD-1.[6-9]* NetBSD-[2-9]* \
+ NetBSD-[1-9][0-9]*
+.else
+EMUL_PLATFORMS= netbsd-alpha netbsd-arm netbsd-i386 netbsd-m68k \
+ netbsd-mipsel netbsd-ns32k netbsd-powerpc \
+ netbsd-sparc netbsd-sparc64 netbsd-vax
+
+ONLY_FOR_PLATFORM= NetBSD-1.5[A-Z]*-* NetBSD-1.[6-9]*-* \
+ NetBSD-[2-9]*-* NetBSD-[1-9][0-9]*-*
+.endif
+
+.include "../../emulators/compat_netbsd/Makefile.common"
+
+.if (${EMUL_PLATFORM} == "netbsd-sparc64")
+DISTNAME= compat15-${EMUL_ARCH}-1.5.2
+.else
+DISTNAME= compat15-${EMUL_ARCH}-${COMPAT_VERSION}
+.endif
+COMPAT_VERSION= 1.5.3
+
+# For COMPAT_NETBSD32, we need to depend on the compat15-extras package
+# on NetBSD-1.5 to supply the missing shared libraries; otherwise, we
+# just depend on the compat16 for the missing shared libraries.
+#
+.if defined(NETBSD_COMPAT32)
+COMPAT_EXTRAS= # empty
+. for _netbsd_ in ${ACCEPTABLE_NETBSD}
+COMPAT_EXTRAS= netbsd32_compat15-extras-${COMPAT_VERSION}{,nb*}:../../emulators/netbsd32_compat15-extras
+. endfor
+. if !empty(COMPAT_EXTRAS)
+DEPENDS+= ${COMPAT_EXTRAS}
+. else
+DEPENDS+= netbsd32_compat16>=1.6:../../emulators/netbsd32_compat16
+. endif
+#
+# arm, m68k and vax switched from a.out to ELF after NetBSD-1.5, and
+# they don't need any other packages to supply missing a.out shared
+# libraries.
+#
+.elif (${EMUL_ARCH} == "arm") || (${EMUL_ARCH} == "m68k") || \
+ (${EMUL_ARCH} == "vax")
+#DEPENDS+= # no additional dependencies
+#
+# We need to depend on the compat16 package to supply shared libraries
+# missing from compat15 on NetBSD>1.6.
+#
+.elif empty(OS_VERSION:M0.[0-9]*) && empty(OS_VERSION:M1.[0-5]*) && \
+ empty(OS_VERSION:M1.6) && empty(OS_VERSION:M1.6.*)
+DEPENDS+= compat16>=1.6:../../emulators/compat16
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/compat15/PLIST.ELF b/emulators/compat15/PLIST.ELF
new file mode 100644
index 00000000000..d11bca94bbc
--- /dev/null
+++ b/emulators/compat15/PLIST.ELF
@@ -0,0 +1,53 @@
+@comment $NetBSD: PLIST.ELF,v 1.1 2007/08/21 22:49:11 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libamu.so.1
+${EMULSUBDIRSLASH}usr/lib/libamu.so.1.1
+${EMULSUBDIRSLASH}usr/lib/libasn1.so.4
+${EMULSUBDIRSLASH}usr/lib/libasn1.so.4.0
+${EMULSUBDIRSLASH}usr/lib/libbz2.so.0
+${EMULSUBDIRSLASH}usr/lib/libbz2.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libcom_err.so.3
+${EMULSUBDIRSLASH}usr/lib/libcom_err.so.3.1
+${EMULSUBDIRSLASH}usr/lib/libcrypto.so.0
+${EMULSUBDIRSLASH}usr/lib/libcrypto.so.0.2
+${EMULSUBDIRSLASH}usr/lib/libcurses.so.3
+${EMULSUBDIRSLASH}usr/lib/libcurses.so.3.6
+${EMULSUBDIRSLASH}usr/lib/libdes.so.5
+${EMULSUBDIRSLASH}usr/lib/libdes.so.5.1
+${EMULSUBDIRSLASH}usr/lib/libgssapi.so.3
+${EMULSUBDIRSLASH}usr/lib/libgssapi.so.3.0
+${EMULSUBDIRSLASH}usr/lib/libhdb.so.7
+${EMULSUBDIRSLASH}usr/lib/libhdb.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libkadm.so.4
+${EMULSUBDIRSLASH}usr/lib/libkadm.so.4.0
+${EMULSUBDIRSLASH}usr/lib/libkadm5clnt.so.6
+${EMULSUBDIRSLASH}usr/lib/libkadm5clnt.so.6.1
+${EMULSUBDIRSLASH}usr/lib/libkadm5srv.so.7
+${EMULSUBDIRSLASH}usr/lib/libkadm5srv.so.7.1
+${EMULSUBDIRSLASH}usr/lib/libkafs.so.4
+${EMULSUBDIRSLASH}usr/lib/libkafs.so.4.1
+${EMULSUBDIRSLASH}usr/lib/libkdb.so.4
+${EMULSUBDIRSLASH}usr/lib/libkdb.so.4.0
+${EMULSUBDIRSLASH}usr/lib/libkrb.so.4
+${EMULSUBDIRSLASH}usr/lib/libkrb.so.4.0
+${EMULSUBDIRSLASH}usr/lib/libkrb5.so.15
+${EMULSUBDIRSLASH}usr/lib/libkrb5.so.15.0
+${EMULSUBDIRSLASH}usr/lib/libkstream.so.1
+${EMULSUBDIRSLASH}usr/lib/libkstream.so.1.0
+${EMULSUBDIRSLASH}usr/lib/libmenu.so.1
+${EMULSUBDIRSLASH}usr/lib/libmenu.so.1.0
+${EMULSUBDIRSLASH}usr/lib/libroken.so.11
+${EMULSUBDIRSLASH}usr/lib/libroken.so.11.0
+${EMULSUBDIRSLASH}usr/lib/libsl.so.1
+${EMULSUBDIRSLASH}usr/lib/libsl.so.1.1
+${EMULSUBDIRSLASH}usr/lib/libss.so.3
+${EMULSUBDIRSLASH}usr/lib/libss.so.3.1
+${EMULSUBDIRSLASH}usr/lib/libssl.so.1
+${EMULSUBDIRSLASH}usr/lib/libssl.so.1.0
+${EMULSUBDIRSLASH}usr/lib/libtelnet.so.3
+${EMULSUBDIRSLASH}usr/lib/libtelnet.so.3.1
+${EMULSUBDIRSLASH}usr/lib/libusb.so.0
+${EMULSUBDIRSLASH}usr/lib/libusb.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libutil.so.5
+${EMULSUBDIRSLASH}usr/lib/libutil.so.5.2.1
+@dirrm ${EMULSUBDIRSLASH}usr/lib
+@dirrm ${EMULSUBDIRSLASH}usr
diff --git a/emulators/compat15/PLIST.a.out b/emulators/compat15/PLIST.a.out
new file mode 100644
index 00000000000..0b15954ed87
--- /dev/null
+++ b/emulators/compat15/PLIST.a.out
@@ -0,0 +1,47 @@
+@comment $NetBSD: PLIST.a.out,v 1.1 2007/08/21 22:49:11 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libamu.so.1.1
+${EMULSUBDIRSLASH}usr/lib/libasn1.so.4.0
+${EMULSUBDIRSLASH}usr/lib/libbz2.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libc.so.12.62.1
+${EMULSUBDIRSLASH}usr/lib/libcom_err.so.3.1
+${EMULSUBDIRSLASH}usr/lib/libcrypt.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libcrypto.so.0.2
+${EMULSUBDIRSLASH}usr/lib/libcurses.so.3.6
+${EMULSUBDIRSLASH}usr/lib/libdes.so.5.1
+${EMULSUBDIRSLASH}usr/lib/libedit.so.2.3
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libgnumalloc.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libgssapi.so.3.0
+${EMULSUBDIRSLASH}usr/lib/libhdb.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libipsec.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libkadm.so.4.0
+${EMULSUBDIRSLASH}usr/lib/libkadm5clnt.so.6.1
+${EMULSUBDIRSLASH}usr/lib/libkadm5srv.so.7.1
+${EMULSUBDIRSLASH}usr/lib/libkafs.so.4.1
+${EMULSUBDIRSLASH}usr/lib/libkdb.so.4.0
+${EMULSUBDIRSLASH}usr/lib/libkrb.so.4.0
+${EMULSUBDIRSLASH}usr/lib/libkrb5.so.15.0
+${EMULSUBDIRSLASH}usr/lib/libkstream.so.1.0
+${EMULSUBDIRSLASH}usr/lib/libkvm.so.5.1
+${EMULSUBDIRSLASH}usr/lib/libm.so.0.1
+${EMULSUBDIRSLASH}usr/lib/libmenu.so.1.0
+${EMULSUBDIRSLASH}usr/lib/libobjc.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libossaudio.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libpcap.so.1.1
+${EMULSUBDIRSLASH}usr/lib/libposix.so.0.1
+${EMULSUBDIRSLASH}usr/lib/libresolv.so.1.0
+${EMULSUBDIRSLASH}usr/lib/libroken.so.11.0
+${EMULSUBDIRSLASH}usr/lib/libskey.so.1.0
+${EMULSUBDIRSLASH}usr/lib/libsl.so.1.1
+${EMULSUBDIRSLASH}usr/lib/libss.so.3.1
+${EMULSUBDIRSLASH}usr/lib/libssl.so.1.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libtelnet.so.3.1
+${EMULSUBDIRSLASH}usr/lib/libtermcap.so.0.4
+${EMULSUBDIRSLASH}usr/lib/libtermlib.so.0.4
+${EMULSUBDIRSLASH}usr/lib/libusb.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libutil.so.5.2.1
+${EMULSUBDIRSLASH}usr/lib/libwrap.so.0.2
+${EMULSUBDIRSLASH}usr/lib/libz.so.0.2
+@dirrm ${EMULSUBDIRSLASH}usr/lib
+@dirrm ${EMULSUBDIRSLASH}usr
diff --git a/emulators/compat15/PLIST.alpha b/emulators/compat15/PLIST.alpha
new file mode 100644
index 00000000000..28cc023bfed
--- /dev/null
+++ b/emulators/compat15/PLIST.alpha
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.alpha,v 1.1 2007/08/21 22:49:11 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libobjc.so.0
+${EMULSUBDIRSLASH}usr/lib/libobjc.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.2
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libutil.so.5.2.1
diff --git a/emulators/compat15/PLIST.arm b/emulators/compat15/PLIST.arm
new file mode 100644
index 00000000000..d586164475c
--- /dev/null
+++ b/emulators/compat15/PLIST.arm
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST.arm,v 1.1 2007/08/21 22:49:11 jlam Exp $
+${EMULSUBDIRSLASH}usr/X11R6/lib/libICE.so.6.3
+${EMULSUBDIRSLASH}usr/X11R6/lib/libPEX5.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libSM.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libX11.so.6.1
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXIE.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXaw.so.6.1
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXext.so.6.3
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXi.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXmu.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXp.so.6.2
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXt.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXtst.so.6.1
+${EMULSUBDIRSLASH}usr/X11R6/lib/liboldX.so.6.0
+${EMULSUBDIRSLASH}usr/lib/libarm32.so.0.0
+@dirrm ${EMULSUBDIRSLASH}usr/X11R6/lib
+@dirrm ${EMULSUBDIRSLASH}usr/X11R6
diff --git a/emulators/compat15/PLIST.i386 b/emulators/compat15/PLIST.i386
new file mode 100644
index 00000000000..6f93fedee1b
--- /dev/null
+++ b/emulators/compat15/PLIST.i386
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST.i386,v 1.1 2007/08/21 22:49:12 jlam Exp $
+${EMULSUBDIRSLASH}usr/X11R6/lib/libPEX5.so.6
+${EMULSUBDIRSLASH}usr/X11R6/lib/libPEX5.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXIE.so.6
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXIE.so.6.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libobjc.so.0
+${EMULSUBDIRSLASH}usr/lib/libobjc.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.2
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libutil.so.5.2.1
+@dirrm ${EMULSUBDIRSLASH}usr/X11R6/lib
+@dirrm ${EMULSUBDIRSLASH}usr/X11R6
diff --git a/emulators/compat15/PLIST.m68k b/emulators/compat15/PLIST.m68k
new file mode 100644
index 00000000000..362fb6cf9b6
--- /dev/null
+++ b/emulators/compat15/PLIST.m68k
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST.m68k,v 1.1 2007/08/21 22:49:12 jlam Exp $
+${EMULSUBDIRSLASH}usr/X11R6/lib/libICE.so.6.3
+${EMULSUBDIRSLASH}usr/X11R6/lib/libPEX5.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libSM.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libX11.so.6.1
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXIE.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXaw.so.6.1
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXext.so.6.3
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXi.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXmu.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXp.so.6.2
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXt.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXtst.so.6.1
+${EMULSUBDIRSLASH}usr/X11R6/lib/liboldX.so.6.0
+${EMULSUBDIRSLASH}usr/lib/libm68k.so.0.0
+@dirrm ${EMULSUBDIRSLASH}usr/X11R6/lib
+@dirrm ${EMULSUBDIRSLASH}usr/X11R6
diff --git a/emulators/compat15/PLIST.mipsel b/emulators/compat15/PLIST.mipsel
new file mode 100644
index 00000000000..1854973e3a9
--- /dev/null
+++ b/emulators/compat15/PLIST.mipsel
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.mipsel,v 1.1 2007/08/21 22:49:12 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libobjc.so.0
+${EMULSUBDIRSLASH}usr/lib/libobjc.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.2
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libutil.so.5.2.1
diff --git a/emulators/compat15/PLIST.powerpc b/emulators/compat15/PLIST.powerpc
new file mode 100644
index 00000000000..4fd43935cfe
--- /dev/null
+++ b/emulators/compat15/PLIST.powerpc
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST.powerpc,v 1.1 2007/08/21 22:49:12 jlam Exp $
+${EMULSUBDIRSLASH}usr/X11R6/lib/libPEX5.so.6
+${EMULSUBDIRSLASH}usr/X11R6/lib/libPEX5.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXIE.so.6
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXIE.so.6.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libobjc.so.0
+${EMULSUBDIRSLASH}usr/lib/libobjc.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.2
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libutil.so.5.2.1
+@dirrm ${EMULSUBDIRSLASH}usr/X11R6/lib
+@dirrm ${EMULSUBDIRSLASH}usr/X11R6
diff --git a/emulators/compat15/PLIST.sparc b/emulators/compat15/PLIST.sparc
new file mode 100644
index 00000000000..df07c981497
--- /dev/null
+++ b/emulators/compat15/PLIST.sparc
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.sparc,v 1.1 2007/08/21 22:49:12 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libobjc.so.0
+${EMULSUBDIRSLASH}usr/lib/libobjc.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.2
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libutil.so.5.2.1
diff --git a/emulators/compat15/PLIST.sparc64 b/emulators/compat15/PLIST.sparc64
new file mode 100644
index 00000000000..53cf5e16a52
--- /dev/null
+++ b/emulators/compat15/PLIST.sparc64
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.sparc64,v 1.1 2007/08/21 22:49:12 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libutil.so.5.2
diff --git a/emulators/compat15/PLIST.vax b/emulators/compat15/PLIST.vax
new file mode 100644
index 00000000000..09a80f6c6fb
--- /dev/null
+++ b/emulators/compat15/PLIST.vax
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST.vax,v 1.1 2007/08/21 22:49:13 jlam Exp $
+${EMULSUBDIRSLASH}usr/X11R6/lib/libICE.so.6.3
+${EMULSUBDIRSLASH}usr/X11R6/lib/libPEX5.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libSM.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libX11.so.6.1
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXIE.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXaw.so.6.1
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXext.so.6.3
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXi.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXmu.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXp.so.6.2
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXt.so.6.0
+${EMULSUBDIRSLASH}usr/X11R6/lib/libXtst.so.6.1
+${EMULSUBDIRSLASH}usr/X11R6/lib/liboldX.so.6.0
+@dirrm ${EMULSUBDIRSLASH}usr/X11R6/lib
+@dirrm ${EMULSUBDIRSLASH}usr/X11R6
diff --git a/emulators/compat15/distinfo b/emulators/compat15/distinfo
new file mode 100644
index 00000000000..eeb69362217
--- /dev/null
+++ b/emulators/compat15/distinfo
@@ -0,0 +1,32 @@
+$NetBSD: distinfo,v 1.1 2007/08/21 22:49:13 jlam Exp $
+
+SHA1 (compat15-alpha-1.5.3.tar.bz2) = 42b28c846a90126d5c994286dcfcde91d0b0e91b
+RMD160 (compat15-alpha-1.5.3.tar.bz2) = 7a93ac1f755f3e9702a9950531fc72bbc597e2e5
+Size (compat15-alpha-1.5.3.tar.bz2) = 1412510 bytes
+SHA1 (compat15-arm-1.5.3.tar.bz2) = 8276b2566993085d4c12f8fa4ebbb0fa7f3354e1
+RMD160 (compat15-arm-1.5.3.tar.bz2) = 092dcf5df1f6a2c4451c5adf82011d596584521d
+Size (compat15-arm-1.5.3.tar.bz2) = 2738008 bytes
+SHA1 (compat15-i386-1.5.3.tar.bz2) = 96cc83cccd046c6698012d704327a5deda9d740a
+RMD160 (compat15-i386-1.5.3.tar.bz2) = c1caaeadf8045128fce54294ae09d34dd03c8535
+Size (compat15-i386-1.5.3.tar.bz2) = 1008025 bytes
+SHA1 (compat15-m68k-1.5.3.tar.bz2) = ee4e095c3673a8fcf39d38540b70083a37b54f71
+RMD160 (compat15-m68k-1.5.3.tar.bz2) = 081fa60c92926d3105579cfbcf89b2720f1c2d10
+Size (compat15-m68k-1.5.3.tar.bz2) = 2183410 bytes
+SHA1 (compat15-mipsel-1.5.3.tar.bz2) = 4d3f22df172ef223d1fe66bb478cc9d223943de0
+RMD160 (compat15-mipsel-1.5.3.tar.bz2) = d7be8fb7190f4c1eab40bc5164bf5bd6dd319e18
+Size (compat15-mipsel-1.5.3.tar.bz2) = 1307378 bytes
+SHA1 (compat15-ns32k-1.5.3.tar.bz2) = 1ad38e67dcab726dcd61d15220a6c47fa2001045
+RMD160 (compat15-ns32k-1.5.3.tar.bz2) = ab3be90a62a84c8ec4b47b307026ee3b4a7932c4
+Size (compat15-ns32k-1.5.3.tar.bz2) = 1524809 bytes
+SHA1 (compat15-powerpc-1.5.3.tar.bz2) = 577b0de89fc2db4117273bab13e91928e8f31fd3
+RMD160 (compat15-powerpc-1.5.3.tar.bz2) = 061cedfef2e28c10a07ab401519934494c9d3f4c
+Size (compat15-powerpc-1.5.3.tar.bz2) = 1055544 bytes
+SHA1 (compat15-sparc-1.5.3.tar.bz2) = e72764d9ee1ac4795497b3b24505f19f46c98418
+RMD160 (compat15-sparc-1.5.3.tar.bz2) = e2c320d8dedb42cad978029e0a69f3574f5fdfaa
+Size (compat15-sparc-1.5.3.tar.bz2) = 965134 bytes
+SHA1 (compat15-sparc64-1.5.2.tar.bz2) = 502d94a8be4d0939f3e8bc55a09b99bbe92f5a72
+RMD160 (compat15-sparc64-1.5.2.tar.bz2) = 50d126dc6213c02687aaf7dcb16a7e3236c82b34
+Size (compat15-sparc64-1.5.2.tar.bz2) = 760818 bytes
+SHA1 (compat15-vax-1.5.3.tar.bz2) = 56786b222e22be8230224da66e4b12da0759c4cc
+RMD160 (compat15-vax-1.5.3.tar.bz2) = d402595ce921bf50fa9b0d63ec5ed5b3abb84880
+Size (compat15-vax-1.5.3.tar.bz2) = 2060891 bytes
diff --git a/emulators/compat15/emulator.mk b/emulators/compat15/emulator.mk
new file mode 100644
index 00000000000..338f49e0430
--- /dev/null
+++ b/emulators/compat15/emulator.mk
@@ -0,0 +1,57 @@
+# $NetBSD: emulator.mk,v 1.1 2007/08/21 22:49:13 jlam Exp $
+#
+# This file is included by netbsd-compat.mk in the emulator framework.
+#
+# Variables set by this file:
+#
+# EMUL_DISTRO
+# The NetBSD distribution used to provide the files.
+#
+# EMUL_EXEC_FMT
+# The executable format of the emulated operating system.
+#
+# EMULSUBDIR
+# Path relative to ${PREFIX} where the files and directories are
+# located, e.g. emul/aout.
+#
+# DEPENDS_${EMUL_DISTRO}.*
+# A table that maps "modules" to NetBSD package dependencies.
+#
+
+EMUL_DISTRO= netbsd-1.5
+
+# arm, m68k and vax switched from a.out to ELF post-1.5.
+# ns32k never switched from a.out.
+#
+.if (${EMUL_ARCH} == "arm") || (${EMUL_ARCH} == "m68k") || \
+ (${EMUL_ARCH} == "ns32k") || (${EMUL_ARCH} == "vax")
+EMUL_EXEC_FMT= a.out
+.else
+EMUL_EXEC_FMT= ELF
+.endif
+
+.if (${NATIVE_EXEC_FMT} == "ELF") && (${EMUL_EXEC_FMT} == "a.out")
+EMULSUBDIR= emul/aout
+OPSYS_EMULDIR= ${_OPSYS_EMULDIR.aout}
+.else
+EMULSUBDIR= emul/netbsd
+OPSYS_EMULDIR= ${_OPSYS_EMULDIR.netbsd}
+.endif
+
+# For COMPAT_NETBSD32, we always need the dependency to supply 32-bit
+# shared libaries for NetBSD-1.5.
+#
+.if ((${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")) || \
+ ((${EMUL_ARCH} == "sparc") && (${MACHINE_ARCH} == "sparc64"))
+EMULSUBDIR= emul/netbsd32
+OPSYS_EMULDIR= ${_OPSYS_EMULDIR.netbsd32}
+
+DEPENDS_netbsd-1.5.base?= netbsd32_compat15>=1.5:../../emulators/netbsd32_compat15
+#
+# We need to depend on the compat15 package to supply missing shared
+# libraries only on NetBSD>1.5.
+#
+.elif empty(OS_VERSION:M0.[0-9]*) && empty(OS_VERSION:M1.[0-4]*) && \
+ empty(OS_VERSION:M1.5) && empty(OS_VERSION:M1.5.*)
+DEPENDS_netbsd-1.5.base?= compat15>=1.5:../../emulators/compat15
+.endif