summaryrefslogtreecommitdiff
path: root/emulators/compat50
diff options
context:
space:
mode:
authorspz <spz>2013-02-17 17:24:07 +0000
committerspz <spz>2013-02-17 17:24:07 +0000
commita6f60771f5363cdac98c1bcff8546486fc1cad05 (patch)
tree1a6d8d01506810e290b364b09187d373d044dca5 /emulators/compat50
parent972b6e51173b3bf4af923b448746ae6e276810d0 (diff)
downloadpkgsrc-a6f60771f5363cdac98c1bcff8546486fc1cad05.tar.gz
NetBSD compat packages. They chain each other so if you're on NetBSD-6.0
and want NetBSD-5.0 compatibility, compat50 will depend on compat51 to bridge the gap. There is currently no need for a compat52, nor for a compat60-x11. The compat tarballs may be larger than strictly necessary. Testing was 'lightly', so there's probably Room for Improvement (tm).
Diffstat (limited to 'emulators/compat50')
-rw-r--r--emulators/compat50/DESCR3
-rw-r--r--emulators/compat50/MESSAGE7
-rw-r--r--emulators/compat50/Makefile28
-rw-r--r--emulators/compat50/PLIST9
-rw-r--r--emulators/compat50/distinfo32
-rw-r--r--emulators/compat50/emulator.mk29
-rw-r--r--emulators/compat50/options.mk13
7 files changed, 121 insertions, 0 deletions
diff --git a/emulators/compat50/DESCR b/emulators/compat50/DESCR
new file mode 100644
index 00000000000..1912de82b8a
--- /dev/null
+++ b/emulators/compat50/DESCR
@@ -0,0 +1,3 @@
+This package supplies the shared library files needed to run dynamically
+linked executables compiled under NetBSD 5.0 on a later NetBSD.
+The shared libraries for 'native' X11 are in a separate package.
diff --git a/emulators/compat50/MESSAGE b/emulators/compat50/MESSAGE
new file mode 100644
index 00000000000..374d6eebde4
--- /dev/null
+++ b/emulators/compat50/MESSAGE
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2013/02/17 17:24:07 spz Exp $
+
+The COMPAT_50 option must be included in the kernel configuration (and
+possibly others; see options(4) for more information) to make use of
+NetBSD 5.0 binaries.
+===========================================================================
diff --git a/emulators/compat50/Makefile b/emulators/compat50/Makefile
new file mode 100644
index 00000000000..1d418176dd3
--- /dev/null
+++ b/emulators/compat50/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2013/02/17 17:24:07 spz Exp $
+
+COMPAT_PKG= compat50 # for compat_netbsd/Makefile.common
+NETBSD_VERSION= 5.0
+
+HOMEPAGE= http://www.NetBSD.org/releases/formal-5/index.html
+COMMENT= Shared libraries for NetBSD 5.0 compatibility
+LICENSE= modified-bsd
+
+EMUL_PLATFORMS= netbsd-alpha netbsd-arm netbsd-i386 netbsd-m68k \
+ netbsd-mipseb netbsd-mipsel netbsd-powerpc \
+ netbsd-sparc netbsd-sparc64 netbsd-x86_64
+
+ONLY_FOR_PLATFORM= NetBSD-5.[1-9]*-* NetBSD-[6-9]*-* NetBSD-[1-9][0-9]*-*
+
+.include "../../emulators/compat_netbsd/Makefile.common"
+
+DISTNAME= compat50-${EMUL_ARCH}-${COMPAT_VERSION}
+COMPAT_VERSION= 5.0
+
+# should we get a 5.10 this rule would need to be amended
+.if empty(OS_VERSION:M[0-4].*) && empty(OS_VERSION:M5.[0-9].*)
+DEPENDS+= compat51>=5.1:../../emulators/compat51
+.endif
+
+.include "options.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/compat50/PLIST b/emulators/compat50/PLIST
new file mode 100644
index 00000000000..c6f91c3dc1c
--- /dev/null
+++ b/emulators/compat50/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2013/02/17 17:24:07 spz Exp $
+${EMULSUBDIRSLASH}lib/libevent.so.2.0
+${EMULSUBDIRSLASH}lib/libm.so.0.6
+${EMULSUBDIRSLASH}usr/lib/i386/libevent.so.2.0
+${EMULSUBDIRSLASH}usr/lib/i386/libm.so.0.6
+${EMULSUBDIRSLASH}usr/lib/i386/libpuffs.so.0.0
+${EMULSUBDIRSLASH}usr/lib/libevent.so.2.0
+${EMULSUBDIRSLASH}usr/lib/libm.so.0.6
+${EMULSUBDIRSLASH}usr/lib/libpuffs.so.0.0
diff --git a/emulators/compat50/distinfo b/emulators/compat50/distinfo
new file mode 100644
index 00000000000..ec6f598d984
--- /dev/null
+++ b/emulators/compat50/distinfo
@@ -0,0 +1,32 @@
+$NetBSD: distinfo,v 1.1 2013/02/17 17:24:07 spz Exp $
+
+SHA1 (compat50-alpha-5.0.tar.bz2) = 3db451dcd407e83ce189e4cc147b8b643a7e59bc
+RMD160 (compat50-alpha-5.0.tar.bz2) = 7811c8a709ee5c212d11ce61b7b43bd52a50008f
+Size (compat50-alpha-5.0.tar.bz2) = 143409 bytes
+SHA1 (compat50-arm-5.0.tar.bz2) = d0109fba30c0f297d699785bf6fa7b31cce0cada
+RMD160 (compat50-arm-5.0.tar.bz2) = b360b6943e88bd06de503d0b4aa1a66f4279786d
+Size (compat50-arm-5.0.tar.bz2) = 135481 bytes
+SHA1 (compat50-i386-5.0.tar.bz2) = b9a257035e01fe5b6b7c97222ececd559f258a83
+RMD160 (compat50-i386-5.0.tar.bz2) = 1cc6d215ce32246053f1ce36038d7d372372b3c4
+Size (compat50-i386-5.0.tar.bz2) = 109414 bytes
+SHA1 (compat50-m68k-5.0.tar.bz2) = 4a719ef4dc90e50cbd4bc346f476ffe7e0bd699b
+RMD160 (compat50-m68k-5.0.tar.bz2) = f5209ce49fb321995da8cbfea54e1fe6ab2caf99
+Size (compat50-m68k-5.0.tar.bz2) = 114477 bytes
+SHA1 (compat50-mipseb-5.0.tar.bz2) = 42567a998eda9947b0c11ae268ef48fbb6b8bd45
+RMD160 (compat50-mipseb-5.0.tar.bz2) = a58559869747575f65d48548698e92487781622b
+Size (compat50-mipseb-5.0.tar.bz2) = 130592 bytes
+SHA1 (compat50-mipsel-5.0.tar.bz2) = 4ed9ee0cc346f8a05c20c4d5a2dcdb9d90c6e232
+RMD160 (compat50-mipsel-5.0.tar.bz2) = c76279cadca7a4359615b1f3c80c6ac577fb1ab4
+Size (compat50-mipsel-5.0.tar.bz2) = 132289 bytes
+SHA1 (compat50-powerpc-5.0.tar.bz2) = 1e3f52819c602fca96e48dbefdb7be230015a8d9
+RMD160 (compat50-powerpc-5.0.tar.bz2) = b85fd2553a06e400ce990e3729f0925f3ba4d73f
+Size (compat50-powerpc-5.0.tar.bz2) = 133244 bytes
+SHA1 (compat50-sparc-5.0.tar.bz2) = 368de9ce748437b3abc0e5db12064924a08c9513
+RMD160 (compat50-sparc-5.0.tar.bz2) = 02df218fecb60c891d400fe21b859d9c7fc94e5a
+Size (compat50-sparc-5.0.tar.bz2) = 134475 bytes
+SHA1 (compat50-sparc64-5.0.tar.bz2) = 0b0a379996ebec1aea42c73b6ee67cc61df6266e
+RMD160 (compat50-sparc64-5.0.tar.bz2) = 959deca0aba41ba8f097c88dde8ea795ab1d312d
+Size (compat50-sparc64-5.0.tar.bz2) = 254522 bytes
+SHA1 (compat50-x86_64-5.0.tar.bz2) = 713e45f371b92a71b81033e360fe3ce576e97b21
+RMD160 (compat50-x86_64-5.0.tar.bz2) = 0d22c4be6916e9aa66f01bf0c45b8413ce70cb78
+Size (compat50-x86_64-5.0.tar.bz2) = 225598 bytes
diff --git a/emulators/compat50/emulator.mk b/emulators/compat50/emulator.mk
new file mode 100644
index 00000000000..7c8b4998505
--- /dev/null
+++ b/emulators/compat50/emulator.mk
@@ -0,0 +1,29 @@
+# $NetBSD: emulator.mk,v 1.1 2013/02/17 17:24:07 spz 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-5.0
+
+EMUL_EXEC_FMT= ELF
+EMULSUBDIR= emul/netbsd
+OPSYS_EMULDIR= ${_OPSYS_EMULDIR.netbsd}
+
+.if empty(OS_VERSION:M[0-4].*) && empty(OS_VERSION:M5.0.*)
+DEPENDS_netbsd-5.0.base?= compat50>=5.0:../../emulators/compat50
+.endif
diff --git a/emulators/compat50/options.mk b/emulators/compat50/options.mk
new file mode 100644
index 00000000000..b7b0f7eeb8d
--- /dev/null
+++ b/emulators/compat50/options.mk
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2013/02/17 17:24:07 spz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.compat50
+PKG_SUPPORTED_OPTIONS= x11
+PKG_SUGGESTED_OPTIONS= x11
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mx11)
+. if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "x86_64"
+ DEPENDS+= compat50-x11>=5.0:../../emulators/compat50-x11
+. endif
+.endif