diff options
author | bad <bad@pkgsrc.org> | 2003-02-16 19:43:36 +0000 |
---|---|---|
committer | bad <bad@pkgsrc.org> | 2003-02-16 19:43:36 +0000 |
commit | af754316ddcdf10b23bc641ab5745ec8da449c05 (patch) | |
tree | 5e48351b5293e7f69d0be40bbebb9e80173bbce7 | |
parent | cf97bd6dcca49cc22abf979cb77a633b5a5bb673 (diff) | |
download | pkgsrc-af754316ddcdf10b23bc641ab5745ec8da449c05.tar.gz |
Initial import of vmware-module3, the NetBSD kernel modules for
VMWare Workstation 3.2. (3.0/3.1 should work, too.)
Tested on 1.6.1_RC1 only.
-rw-r--r-- | emulators/vmware-module3/DESCR | 3 | ||||
-rw-r--r-- | emulators/vmware-module3/INSTALL | 37 | ||||
-rw-r--r-- | emulators/vmware-module3/Makefile | 72 | ||||
-rw-r--r-- | emulators/vmware-module3/PLIST | 21 | ||||
-rw-r--r-- | emulators/vmware-module3/distinfo | 5 | ||||
-rw-r--r-- | emulators/vmware-module3/patches/patch-ab | 41 |
6 files changed, 179 insertions, 0 deletions
diff --git a/emulators/vmware-module3/DESCR b/emulators/vmware-module3/DESCR new file mode 100644 index 00000000000..99b3dc1deb7 --- /dev/null +++ b/emulators/vmware-module3/DESCR @@ -0,0 +1,3 @@ +This package consists of set of kernel modules and scripts that will +allow owners of the Linux version of VMware to run their binaries under +NetBSD. diff --git a/emulators/vmware-module3/INSTALL b/emulators/vmware-module3/INSTALL new file mode 100644 index 00000000000..75ecd3ef18d --- /dev/null +++ b/emulators/vmware-module3/INSTALL @@ -0,0 +1,37 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 2003/02/16 19:43:36 bad Exp $ + +case $2 in +PRE-INSTALL) + ;; +POST-INSTALL) + /bin/cat << EOF +=========================================================================== +Copy the following files from ${PKG_PREFIX}/etc/rc.d to /etc/rc.d: + +linuxrtc vmmon vmnet vmnetif + +and append the content of ${PKG_PREFIX}/etc/rc.conf.d/vmware to /etc/rc.conf: + +vmware_prefix=${PKG_PREFIX} +vmmon=YES +vmnet=YES +linuxrtc=NO +# XXX should cater for multiple interfaces +vmnetif=YES +vmnetifname=vmnet1 +vmnetdev=/dev/vmnet1 +vmnetifconfig="inet 172.16.212.1 netmask 0xffffff00" +vmnetif_use_dhcpd=NO + +Then, reboot your system. +=========================================================================== +EOF + ;; +*) + echo "Unexpected argument: $2" + exit 1 + ;; +esac +exit 0 diff --git a/emulators/vmware-module3/Makefile b/emulators/vmware-module3/Makefile new file mode 100644 index 00000000000..aa71fc2325e --- /dev/null +++ b/emulators/vmware-module3/Makefile @@ -0,0 +1,72 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/02/16 19:43:36 bad Exp $ + +DISTNAME= vmware-netbsd-3.2.0 +PKGNAME= vmware-module-3.2.0 +CATEGORIES= emulators +MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/vmware/ +EXTRACT_SUFX= .tgz + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.wasabisystems.com/ +COMMENT= Kernel modules for the VMware emulator + +CONFLICTS= vmware-module-1.* + +ONLY_FOR_PLATFORM= NetBSD-*-i386 + +WRKSRC= ${WRKDIR} +NO_CONFIGURE= # defined + +NO_SRC_ON_FTP= already there + +# to override <bsd.own.mk>, MUST be set this way BEFORE bsd.prefs.mk +BSDSRCDIR?= /nonexistent + +.include "../../mk/bsd.prefs.mk" + +pre-extract: +.if ${BSDSRCDIR} == "/nonexistent" + @${ECHO_MSG} "Please set BSDSRCDIR in /etc/mk.conf, pointing it" + @${ECHO_MSG} "to a directory that contains sources that match" + @${ECHO_MSG} "your currently running system (esp. kernel), e.g." + @${ECHO_MSG} "/usr/src." + @${FALSE} +.endif +.if !exists(${BSDSRCDIR}/sys/lib/libkern/libkern.h) + @${ECHO_MSG} "Need a kernel source tree in ${BSDSRCDIR}/sys." + @${ECHO_MSG} "(Or set BSDSRCDIR correctly in /etc/mk.conf.)" + @${FALSE} +.endif + +do-build: +.for dir in linuxrtc vmmon vmnet + cd ${WRKSRC}/source/${dir} && ${MAKE} +.endfor + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lkm ${PREFIX}/etc/rc.conf.d + ${INSTALL_DATA} ${WRKDIR}/rc.conf.d/linuxrtc ${PREFIX}/etc/rc.conf.d/ + ${INSTALL_DATA} ${WRKDIR}/rc.conf.d/vmmon ${PREFIX}/etc/rc.conf.d/ + ${INSTALL_DATA} ${WRKDIR}/rc.conf.d/vmnet ${PREFIX}/etc/rc.conf.d/ + ${INSTALL_DATA} ${WRKDIR}/rc.conf.d/vmnetif ${PREFIX}/etc/rc.conf.d/ + ${INSTALL_DATA} ${WRKDIR}/source/linuxrtc/linuxrtc.o ${PREFIX}/lkm/ + ${INSTALL_DATA} ${WRKDIR}/source/vmmon/vmmon.o ${PREFIX}/lkm/ + ${INSTALL_DATA} ${WRKDIR}/source/vmnet/vmnet.o ${PREFIX}/lkm/ + ${INSTALL_SCRIPT} ${WRKDIR}/share/lkm/vmnet_post.sh ${PREFIX}/lkm/ + ${INSTALL_SCRIPT} ${WRKDIR}/share/lkm/linuxrtc_post.sh ${PREFIX}/lkm/ + ${INSTALL_SCRIPT} ${WRKDIR}/share/lkm/vmmon_post.sh ${PREFIX}/lkm/ + @cd ${WRKSRC}/rc.d && for f in linuxrtc vmmon vmnet vmnetif; do \ + ${SED} -e 's,@PREFIX@,${PREFIX},' < $$f > $$f.patched; \ + ${INSTALL_SCRIPT} $$f.patched ${PREFIX}/etc/rc.d/$$f; \ + done + ${SED} -e 's,@VMWARE_PREFIX@,${PREFIX},' \ + < ${WRKSRC}/rc.conf.d/vmware > ${WRKSRC}/rc.conf.d/vmware.patched + ${INSTALL_DATA} ${WRKSRC}/rc.conf.d/vmware.patched \ + ${PREFIX}/etc/rc.conf.d/vmware + +post-install: + PKG_PREFIX="${PREFIX}" ${SH} ${INSTALL_FILE} - POST-INSTALL + +.include "../../mk/bsd.pkg.mk" + +LDFLAGS= # empty since we use BSD-style makefiles diff --git a/emulators/vmware-module3/PLIST b/emulators/vmware-module3/PLIST new file mode 100644 index 00000000000..acf7e8fb58b --- /dev/null +++ b/emulators/vmware-module3/PLIST @@ -0,0 +1,21 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/02/16 19:43:36 bad Exp $ +etc/rc.conf.d/linuxrtc +etc/rc.conf.d/vmmon +etc/rc.conf.d/vmnet +etc/rc.conf.d/vmnetif +etc/rc.conf.d/vmware +etc/rc.d/linuxrtc +etc/rc.d/vmmon +etc/rc.d/vmnet +etc/rc.d/vmnetif +lkm/vmnet.o +lkm/vmnet_post.sh +lkm/linuxrtc.o +lkm/linuxrtc_post.sh +lkm/vmmon.o +lkm/vmmon_post.sh +@dirrm etc/rc.conf.d +@unexec ${RM} -f %D/lkm/vmnet 2>/dev/null || ${TRUE} +@unexec ${RM} -f %D/lkm/linuxrtc 2>/dev/null || ${TRUE} +@unexec ${RM} -f %D/lkm/vmmon 2>/dev/null || ${TRUE} +@unexec ${RMDIR} %D/lkm 2>/dev/null || ${TRUE} diff --git a/emulators/vmware-module3/distinfo b/emulators/vmware-module3/distinfo new file mode 100644 index 00000000000..eebababfb85 --- /dev/null +++ b/emulators/vmware-module3/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/02/16 19:43:36 bad Exp $ + +SHA1 (vmware-netbsd-3.2.0.tgz) = 56454a4725ec035c612ed126f2c1d3c2b781ffd7 +Size (vmware-netbsd-3.2.0.tgz) = 101278 bytes +SHA1 (patch-ab) = 412a3fa0a49aebe5f52cb46015fb9b981625f4ac diff --git a/emulators/vmware-module3/patches/patch-ab b/emulators/vmware-module3/patches/patch-ab new file mode 100644 index 00000000000..2c95affacf0 --- /dev/null +++ b/emulators/vmware-module3/patches/patch-ab @@ -0,0 +1,41 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/02/16 19:43:36 bad Exp $ + +--- rc.d/linuxrtc Wed Apr 4 04:43:17 2001 ++++ rc.d/linuxrtc Sun Jun 10 13:55:56 2001 +@@ -13,8 +17,8 @@ + + load_rc_config $name + +-linuxrtc_lkm="$vmware_prefix/share/vmware/lkm/linuxrtc.o" +-linuxrtc_post_script="$vmware_prefix/share/vmware/lkm/linuxrtc_post.sh" ++linuxrtc_lkm="@PREFIX@/lkm/linuxrtc.o" ++linuxrtc_post_script="@PREFIX@/lkm/linuxrtc_post.sh" + + linuxrtc_prestart() + { +--- rc.d/vmmon Wed Apr 4 04:42:40 2001 ++++ rc.d/vmmon Sun Jun 10 13:56:04 2001 +@@ -13,8 +13,8 @@ + + load_rc_config $name + +-vmmon_lkm="$vmware_prefix/share/vmware/lkm/vmmon.o" +-vmmon_post_script="$vmware_prefix/share/vmware/lkm/vmmon_post.sh" ++vmmon_lkm="@PREFIX@/lkm/vmmon.o" ++vmmon_post_script="@PREFIX@/lkm/vmmon_post.sh" + + vmmon_prestart() + { +--- rc.d/vmnet Wed Apr 4 04:42:40 2001 ++++ rc.d/vmnet Sun Jun 10 13:56:12 2001 +@@ -13,8 +13,8 @@ + + load_rc_config $name + +-vmnet_lkm="$vmware_prefix/share/vmware/lkm/vmnet.o" +-vmnet_post_script="$vmware_prefix/share/vmware/lkm/vmnet_post.sh" ++vmnet_lkm="@PREFIX@/lkm/vmnet.o" ++vmnet_post_script="@PREFIX@/lkm/vmnet_post.sh" + + vmnet_prestart() + { |