diff options
author | bad <bad> | 2003-02-16 19:43:36 +0000 |
---|---|---|
committer | bad <bad> | 2003-02-16 19:43:36 +0000 |
commit | f80c03c64586f0eb1f745fa2a9858fa2a8093730 (patch) | |
tree | 5e48351b5293e7f69d0be40bbebb9e80173bbce7 /emulators/vmware-module3/Makefile | |
parent | 6aa6e355eac5c6df9337b1eed61a3244adefbbaa (diff) | |
download | pkgsrc-f80c03c64586f0eb1f745fa2a9858fa2a8093730.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.
Diffstat (limited to 'emulators/vmware-module3/Makefile')
-rw-r--r-- | emulators/vmware-module3/Makefile | 72 |
1 files changed, 72 insertions, 0 deletions
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 |