summaryrefslogtreecommitdiff
path: root/emulators/compat30
diff options
context:
space:
mode:
authorjlam <jlam>2007-08-21 22:49:02 +0000
committerjlam <jlam>2007-08-21 22:49:02 +0000
commita8812ccc9f997bd032c31c8c1551388c9e89e11e (patch)
treec963fbe349aa6c3a854fc36e80c1b467ee94113c /emulators/compat30
parent2e9b2887dba8606c34e6b21ef614bba2e788de02 (diff)
downloadpkgsrc-a8812ccc9f997bd032c31c8c1551388c9e89e11e.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/compat30')
-rw-r--r--emulators/compat30/DESCR2
-rw-r--r--emulators/compat30/MESSAGE7
-rw-r--r--emulators/compat30/Makefile63
-rw-r--r--emulators/compat30/PLIST49
-rw-r--r--emulators/compat30/PLIST.alpha8
-rw-r--r--emulators/compat30/PLIST.arm8
-rw-r--r--emulators/compat30/PLIST.i3868
-rw-r--r--emulators/compat30/PLIST.m68k8
-rw-r--r--emulators/compat30/PLIST.mipseb8
-rw-r--r--emulators/compat30/PLIST.mipsel8
-rw-r--r--emulators/compat30/PLIST.powerpc8
-rw-r--r--emulators/compat30/PLIST.sh3eb8
-rw-r--r--emulators/compat30/PLIST.sh3el8
-rw-r--r--emulators/compat30/PLIST.sparc8
-rw-r--r--emulators/compat30/PLIST.sparc648
-rw-r--r--emulators/compat30/PLIST.x86_648
-rw-r--r--emulators/compat30/distinfo41
-rw-r--r--emulators/compat30/emulator.mk44
18 files changed, 302 insertions, 0 deletions
diff --git a/emulators/compat30/DESCR b/emulators/compat30/DESCR
new file mode 100644
index 00000000000..b93a97184f6
--- /dev/null
+++ b/emulators/compat30/DESCR
@@ -0,0 +1,2 @@
+This package supplies the user files needed to run dynamically linked
+executables compiled under NetBSD 3.0.
diff --git a/emulators/compat30/MESSAGE b/emulators/compat30/MESSAGE
new file mode 100644
index 00000000000..39704637078
--- /dev/null
+++ b/emulators/compat30/MESSAGE
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2007/08/21 22:49:20 jlam Exp $
+
+The COMPAT_30 option must be included in the kernel configuration (and
+possibly others; see options(4) for more information) to make use of
+NetBSD 3.0 binaries.
+===========================================================================
diff --git a/emulators/compat30/Makefile b/emulators/compat30/Makefile
new file mode 100644
index 00000000000..32a7a9c86a7
--- /dev/null
+++ b/emulators/compat30/Makefile
@@ -0,0 +1,63 @@
+# $NetBSD: Makefile,v 1.1 2007/08/21 22:49:20 jlam Exp $
+
+DISTNAME= compat30 # overridden below
+NETBSD_VERSION= 3.0
+
+HOMEPAGE= http://www.NetBSD.org/Releases/formal-3.0/index.html
+COMMENT= Shared libraries for NetBSD 3.0 compatibility
+
+.if defined(NETBSD_COMPAT32)
+EMUL_PLATFORMS= netbsd-i386 netbsd-sparc
+
+ACCEPTABLE_NETBSD= NetBSD-2.99.* NetBSD-3.[0-9] \
+ NetBSD-3.[1-8][0-9]* NetBSD-3.9[0-8]* \
+ NetBSD-3.99.* NetBSD-[4-9]* NetBSD-[1-9][0-9]*
+.else
+EMUL_PLATFORMS= netbsd-alpha netbsd-arm netbsd-i386 netbsd-m68k \
+ netbsd-mipseb netbsd-mipsel netbsd-powerpc \
+ netbsd-sh3eb netbsd-sh3el netbsd-sparc \
+ netbsd-sparc64 netbsd-vax netbsd-x86_64
+
+ONLY_FOR_PLATFORM= NetBSD-3.99.*-* NetBSD-[4-9]*-* NetBSD-[1-9][0-9]*-*
+.endif
+
+.include "../../emulators/compat_netbsd/Makefile.common"
+
+DISTNAME= compat30-${EMUL_ARCH}-${COMPAT_VERSION}
+COMPAT_VERSION= 3.1
+
+# For COMPAT_NETBSD32, we need to depend on the compat30-extras package
+# on NetBSD-3.0 to supply the missing shared libraries; otherwise, we
+# just depend on the compat40 package for the missing shared libraries.
+#
+.if defined(NETBSD_COMPAT32)
+COMPAT_EXTRAS= # empty
+. for _netbsd_ in ${ACCEPTABLE_NETBSD}
+COMPAT_EXTRAS= netbsd32_compat30-extras-${COMPAT_VERSION}{,nb*}:../../emulators/netbsd32_compat30-extras
+. endfor
+. if !empty(COMPAT_EXTRAS)
+DEPENDS+= ${COMPAT_EXTRAS}
+. else
+# XXX This package doesn't exist yet.
+#DEPENDS+= netbsd32_compat40>=4.0:../../emulators/netbsd32_compat40
+. endif
+#
+# vax running NetBSD-4.x lacks any shared libraries, so depend on the
+# compat30-extras package to supply shared libraries missing from compat30.
+#
+.elif (${EMUL_ARCH} == "vax") && \
+ (!empty(OS_VERSION:M3.99.*) || !empty(OS_VERSION:M4.[0-9]) || \
+ !empty(OS_VERSION:M4.[1-8][0-9].*) || empty(NetBSD-4.9[0-8].*))
+DEPENDS+= compat30-extras-${COMPAT_VERSION}{,nb*}:../../emulators/compat30-extras
+#
+# We need to depend on the compat40 package to supply shared libraries
+# missing from compat30 on NetBSD>4.x.
+#
+.elif empty(OS_VERSION:M[0-3].*) && empty(OS_VERSION:M4.[0-9]) && \
+ empty(OS_VERSION:M4.[0-9].*) && empty(OS_VERSION:M4.[1-8][0-9].*) && \
+ empty(OS_VERSION:M4.9[0-8]*)
+# XXX This package doesn't exist yet.
+#DEPENDS+= compat40>=4.0:../../emulators/compat40
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/compat30/PLIST b/emulators/compat30/PLIST
new file mode 100644
index 00000000000..2e0315b0a6a
--- /dev/null
+++ b/emulators/compat30/PLIST
@@ -0,0 +1,49 @@
+@comment $NetBSD: PLIST,v 1.1 2007/08/21 22:49:20 jlam Exp $
+${EMULSUBDIRSLASH}lib/libcrypto.so.2
+${EMULSUBDIRSLASH}lib/libcrypto.so.2.1
+${EMULSUBDIRSLASH}lib/libevent.so.0
+${EMULSUBDIRSLASH}lib/libevent.so.0.2
+${EMULSUBDIRSLASH}lib/libradius.so.0
+${EMULSUBDIRSLASH}lib/libradius.so.0.0
+${EMULSUBDIRSLASH}lib/libz.so.0
+${EMULSUBDIRSLASH}lib/libz.so.0.4
+${EMULSUBDIRSLASH}usr/lib/libamu.so.2
+${EMULSUBDIRSLASH}usr/lib/libamu.so.2.1
+${EMULSUBDIRSLASH}usr/lib/libcdk.so
+${EMULSUBDIRSLASH}usr/lib/libcdk.so.1
+${EMULSUBDIRSLASH}usr/lib/libcdk.so.1.0
+${EMULSUBDIRSLASH}usr/lib/libcrypto.so.2
+${EMULSUBDIRSLASH}usr/lib/libcrypto.so.2.1
+${EMULSUBDIRSLASH}usr/lib/libevent.so.0
+${EMULSUBDIRSLASH}usr/lib/libevent.so.0.2
+${EMULSUBDIRSLASH}usr/lib/libkadm.so
+${EMULSUBDIRSLASH}usr/lib/libkadm.so.5
+${EMULSUBDIRSLASH}usr/lib/libkadm.so.5.0
+${EMULSUBDIRSLASH}usr/lib/libkafs.so.6
+${EMULSUBDIRSLASH}usr/lib/libkafs.so.6.0
+${EMULSUBDIRSLASH}usr/lib/libkdb.so
+${EMULSUBDIRSLASH}usr/lib/libkdb.so.5
+${EMULSUBDIRSLASH}usr/lib/libkdb.so.5.0
+${EMULSUBDIRSLASH}usr/lib/libkrb.so
+${EMULSUBDIRSLASH}usr/lib/libkrb.so.6
+${EMULSUBDIRSLASH}usr/lib/libkrb.so.6.0
+${EMULSUBDIRSLASH}usr/lib/libkrb5.so.19
+${EMULSUBDIRSLASH}usr/lib/libkrb5.so.19.1
+${EMULSUBDIRSLASH}usr/lib/libkstream.so
+${EMULSUBDIRSLASH}usr/lib/libkstream.so.2
+${EMULSUBDIRSLASH}usr/lib/libkstream.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libmagic.so.0
+${EMULSUBDIRSLASH}usr/lib/libmagic.so.0.1
+${EMULSUBDIRSLASH}usr/lib/libpcap.so.1
+${EMULSUBDIRSLASH}usr/lib/libpcap.so.1.4
+${EMULSUBDIRSLASH}usr/lib/libradius.so.0
+${EMULSUBDIRSLASH}usr/lib/libradius.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libssh.so.1
+${EMULSUBDIRSLASH}usr/lib/libssh.so.1.0.1
+${EMULSUBDIRSLASH}usr/lib/libssl.so.3
+${EMULSUBDIRSLASH}usr/lib/libssl.so.3.0
+${EMULSUBDIRSLASH}usr/lib/libz.so.0
+${EMULSUBDIRSLASH}usr/lib/libz.so.0.4
+@dirrm ${EMULSUBDIRSLASH}usr/lib
+@dirrm ${EMULSUBDIRSLASH}usr
+@dirrm ${EMULSUBDIRSLASH}lib
diff --git a/emulators/compat30/PLIST.alpha b/emulators/compat30/PLIST.alpha
new file mode 100644
index 00000000000..4ae69d2021c
--- /dev/null
+++ b/emulators/compat30/PLIST.alpha
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.alpha,v 1.1 2007/08/21 22:49:20 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/PLIST.arm b/emulators/compat30/PLIST.arm
new file mode 100644
index 00000000000..359553f8c0f
--- /dev/null
+++ b/emulators/compat30/PLIST.arm
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.arm,v 1.1 2007/08/21 22:49:21 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/PLIST.i386 b/emulators/compat30/PLIST.i386
new file mode 100644
index 00000000000..3c1e4cbfb51
--- /dev/null
+++ b/emulators/compat30/PLIST.i386
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.i386,v 1.1 2007/08/21 22:49:21 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/PLIST.m68k b/emulators/compat30/PLIST.m68k
new file mode 100644
index 00000000000..b91d560709d
--- /dev/null
+++ b/emulators/compat30/PLIST.m68k
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.m68k,v 1.1 2007/08/21 22:49:21 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/PLIST.mipseb b/emulators/compat30/PLIST.mipseb
new file mode 100644
index 00000000000..0e4f11c83bd
--- /dev/null
+++ b/emulators/compat30/PLIST.mipseb
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.mipseb,v 1.1 2007/08/21 22:49:21 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/PLIST.mipsel b/emulators/compat30/PLIST.mipsel
new file mode 100644
index 00000000000..f32f35590ac
--- /dev/null
+++ b/emulators/compat30/PLIST.mipsel
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.mipsel,v 1.1 2007/08/21 22:49:21 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/PLIST.powerpc b/emulators/compat30/PLIST.powerpc
new file mode 100644
index 00000000000..64835cfa028
--- /dev/null
+++ b/emulators/compat30/PLIST.powerpc
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.powerpc,v 1.1 2007/08/21 22:49:22 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/PLIST.sh3eb b/emulators/compat30/PLIST.sh3eb
new file mode 100644
index 00000000000..176adb76e6c
--- /dev/null
+++ b/emulators/compat30/PLIST.sh3eb
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.sh3eb,v 1.1 2007/08/21 22:49:22 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/PLIST.sh3el b/emulators/compat30/PLIST.sh3el
new file mode 100644
index 00000000000..72b63f3c255
--- /dev/null
+++ b/emulators/compat30/PLIST.sh3el
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.sh3el,v 1.1 2007/08/21 22:49:22 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/PLIST.sparc b/emulators/compat30/PLIST.sparc
new file mode 100644
index 00000000000..8434dd42b46
--- /dev/null
+++ b/emulators/compat30/PLIST.sparc
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.sparc,v 1.1 2007/08/21 22:49:22 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/PLIST.sparc64 b/emulators/compat30/PLIST.sparc64
new file mode 100644
index 00000000000..475b5c105b9
--- /dev/null
+++ b/emulators/compat30/PLIST.sparc64
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.sparc64,v 1.1 2007/08/21 22:49:22 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/PLIST.x86_64 b/emulators/compat30/PLIST.x86_64
new file mode 100644
index 00000000000..5cbeb85348d
--- /dev/null
+++ b/emulators/compat30/PLIST.x86_64
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.x86_64,v 1.1 2007/08/21 22:49:23 jlam Exp $
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7
+${EMULSUBDIRSLASH}usr/lib/libbfd.so.7.0
+${EMULSUBDIRSLASH}usr/lib/libg2c.so
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2
+${EMULSUBDIRSLASH}usr/lib/libg2c.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5
+${EMULSUBDIRSLASH}usr/lib/libstdc++.so.5.0
diff --git a/emulators/compat30/distinfo b/emulators/compat30/distinfo
new file mode 100644
index 00000000000..493600f6086
--- /dev/null
+++ b/emulators/compat30/distinfo
@@ -0,0 +1,41 @@
+$NetBSD: distinfo,v 1.1 2007/08/21 22:49:23 jlam Exp $
+
+SHA1 (compat30-alpha-3.1.tar.bz2) = c457c201c57b80488115e6ddaecf41ea65ed5625
+RMD160 (compat30-alpha-3.1.tar.bz2) = 30ba87e06355cc4059ef4aab6feefdf95b185d8d
+Size (compat30-alpha-3.1.tar.bz2) = 1837161 bytes
+SHA1 (compat30-arm-3.1.tar.bz2) = bb4e46e6c4d6692a4e2db2a3acf412c1546d6d11
+RMD160 (compat30-arm-3.1.tar.bz2) = 5a0c85ce6d07c324583f9b7331692074babe39f0
+Size (compat30-arm-3.1.tar.bz2) = 1597739 bytes
+SHA1 (compat30-i386-3.1.tar.bz2) = 2a7fda81d964b385a1b296942c6c1ac2525957e5
+RMD160 (compat30-i386-3.1.tar.bz2) = af0cd186d3725a35436fb6fefc92ebd34f3aa929
+Size (compat30-i386-3.1.tar.bz2) = 1452772 bytes
+SHA1 (compat30-m68k-3.1.tar.bz2) = 8f5fcf73b26edfd1c72f9c1147cb5371f9d93c1d
+RMD160 (compat30-m68k-3.1.tar.bz2) = fd314cbad6bc5dfbc5d2c5b25420f65e93ef67ff
+Size (compat30-m68k-3.1.tar.bz2) = 1481142 bytes
+SHA1 (compat30-mipseb-3.1.tar.bz2) = 10c16a9075aefcd0d0a9f042232223e4502db739
+RMD160 (compat30-mipseb-3.1.tar.bz2) = 24cea8e68f61aa63c20561c92500fc213d24964f
+Size (compat30-mipseb-3.1.tar.bz2) = 1592863 bytes
+SHA1 (compat30-mipsel-3.1.tar.bz2) = 97737289db457f3730537be308b43bd58137a5a1
+RMD160 (compat30-mipsel-3.1.tar.bz2) = fe3d41381548b124f6cb1034d5a41b0488c240f4
+Size (compat30-mipsel-3.1.tar.bz2) = 1611590 bytes
+SHA1 (compat30-powerpc-3.1.tar.bz2) = b8ec620e5ffb99e79181c3ff6514cf6dc1cd916c
+RMD160 (compat30-powerpc-3.1.tar.bz2) = 668a083892b77bb70a72ea18c224e24443f42291
+Size (compat30-powerpc-3.1.tar.bz2) = 1649707 bytes
+SHA1 (compat30-sh3eb-3.1.tar.bz2) = dfe18e8b8ff6ab3d9f5c9648d7c28da41ac06b88
+RMD160 (compat30-sh3eb-3.1.tar.bz2) = a8a85c1f108526a782b13125e357fc5e3fdfc1b7
+Size (compat30-sh3eb-3.1.tar.bz2) = 1689141 bytes
+SHA1 (compat30-sh3el-3.1.tar.bz2) = cb0fb247a3a8374acdc2f8d8ebe2b8705164708a
+RMD160 (compat30-sh3el-3.1.tar.bz2) = c1c466e7f9c29545c5527a4feb911a0a304b2a36
+Size (compat30-sh3el-3.1.tar.bz2) = 1694849 bytes
+SHA1 (compat30-sparc-3.1.tar.bz2) = e6a7bf53c31eef12fb315019bd1041b544bbe164
+RMD160 (compat30-sparc-3.1.tar.bz2) = 03e87d4dca8a1d0b00406f0fbc16a4f30e940a99
+Size (compat30-sparc-3.1.tar.bz2) = 1532483 bytes
+SHA1 (compat30-sparc64-3.1.tar.bz2) = bcfb773ed29885d2fb47825cb0bb27da735fc78d
+RMD160 (compat30-sparc64-3.1.tar.bz2) = 4e28e5452571c787f249c84f0705b5f80131d2a3
+Size (compat30-sparc64-3.1.tar.bz2) = 1602735 bytes
+SHA1 (compat30-vax-3.1.tar.bz2) = 3bf8b2d95470aa01132b56d9cb59e66fc86b151c
+RMD160 (compat30-vax-3.1.tar.bz2) = 04c69fcfc28dbb2486628449ba494ec898323b15
+Size (compat30-vax-3.1.tar.bz2) = 900690 bytes
+SHA1 (compat30-x86_64-3.1.tar.bz2) = 84cee71b6ad9f765c95d181266736f0ce2e0b743
+RMD160 (compat30-x86_64-3.1.tar.bz2) = d0dfb44f8fdb1fa6c28a21c66f43248e1aafdef6
+Size (compat30-x86_64-3.1.tar.bz2) = 1676922 bytes
diff --git a/emulators/compat30/emulator.mk b/emulators/compat30/emulator.mk
new file mode 100644
index 00000000000..3339f0a7882
--- /dev/null
+++ b/emulators/compat30/emulator.mk
@@ -0,0 +1,44 @@
+# $NetBSD: emulator.mk,v 1.1 2007/08/21 22:49:23 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-3.0
+
+EMUL_EXEC_FMT= ELF
+EMULSUBDIR= emul/netbsd
+OPSYS_EMULDIR= ${_OPSYS_EMULDIR.netbsd}
+
+# For COMPAT_NETBSD32, we always need the dependency to supply 32-bit
+# shared libaries for NetBSD-3.0.
+#
+.if ((${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")) || \
+ ((${EMUL_ARCH} == "sparc") && (${MACHINE_ARCH} == "sparc64"))
+EMULSUBDIR= emul/netbsd32
+OPSYS_EMULDIR= ${_OPSYS_EMULDIR.netbsd32}
+
+DEPENDS_netbsd-3.0.base?= netbsd32_compat30>=3.0:../../emulators/netbsd32_compat30
+#
+# We need to depend on the compat30 package to supply missing shared
+# libraries only on NetBSD>3.0.
+#
+.elif empty(OS_VERSION:M[0-2].*) && empty(OS_VERSION:M3.[0-9]) && \
+ empty(OS_VERSION:M3.[0-9].*) && empty(OS_VERSION:M3.[1-8][0-9].*) && \
+ empty(OS_VERSION:M3.9[0-8]*)
+DEPENDS_netbsd-3.0.base?= compat30>=3.0:../../emulators/compat30
+.endif