diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2000-11-02 22:56:44 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2000-11-02 22:56:44 +0000 |
commit | 36293b0d4e5e5aada85cc67ad9e603fedd477b1b (patch) | |
tree | 45d23811ed7be419846c0a8270a8d5170a98c361 /emulators/vmware2 | |
parent | Add patch to fix konsole crashes. Has been submitted to the KDE team. (diff) |
Add a WANT_BETA knob so people can easily try out 2.0.3 RC1.
Convert the extract script hack to simple extractions in Makefile to
make it easy to comprehend.
Diffstat (limited to 'emulators/vmware2')
-rw-r--r-- | emulators/vmware2/Makefile | 53 | ||||
-rw-r--r-- | emulators/vmware2/distinfo | 1 |
2 files changed, 41 insertions, 13 deletions
diff --git a/emulators/vmware2/Makefile b/emulators/vmware2/Makefile index 8845a6697e25..acbb4e9b4c57 100644 --- a/emulators/vmware2/Makefile +++ b/emulators/vmware2/Makefile @@ -7,23 +7,19 @@ # PORTNAME= vmware2 +.if defined(WANT_BETA) +PORTVERSION= 2.0.3.786 # 2.0.3 RC1 +.else PORTVERSION= 2.0.2.621 PORTREVISION= 3 +.endif CATEGORIES= emulators linux MASTER_SITES= http://www4.vmware.com/software/ \ - http://vmware-svca.www.conxion.com/software/ \ - http://vmware-chil.www.conxion.com/software/ \ - http://vmware-heva.www.conxion.com/software/ \ - http://www.vmware.co.uk/software/ \ - http://mirror.aarnet.edu.au/pub/vmware/software/ \ - ftp://mirror.aarnet.edu.au/pub/vmware/software/ -DISTNAME= VMware-${PORTVERSION:R}-${PORTVERSION:E} - -PATCH_SITES= http://www.mindspring.com/~vsilyaev/vmware/files/ \ - ftp://mirror.aarnet.edu.au/pub/vmware/freebsd/ \ - http://mirror.aarnet.edu.au/pub/vmware/freebsd/ -PATCHFILES= vmmon-freebsd-0.98.tar.gz \ - vmnet-freebsd-0.21.tar.gz + ${FREEBSD_MODULE_SITES} \ + ${VMARE_MIRROR_SITES} +DISTFILES= VMware-${PORTVERSION:R}-${PORTVERSION:E}${EXTRACT_SUFX} \ + vmmon-freebsd-0.98${EXTRACT_SUFX} \ + vmnet-freebsd-0.21${EXTRACT_SUFX} # Feel free to post your questions/reports/suggestions on this port to # freebsd-emulation mailing list with the following maintainer address CC'ed. @@ -33,6 +29,18 @@ RUN_DEPENDS= ${LINUXBASE}/dev/rtc:${PORTSDIR}/emulators/rtc RESTRICTED= "Not sure if we can redistribute it" +VMARE_MIRROR_SITES= \ + http://vmware-svca.www.conxion.com/software/ \ + http://vmware-chil.www.conxion.com/software/ \ + http://vmware-heva.www.conxion.com/software/ \ + http://www.vmware.co.uk/software/ \ + http://mirror.aarnet.edu.au/pub/vmware/software/ \ + ftp://mirror.aarnet.edu.au/pub/vmware/software/ +FREEBSD_MODULE_SITES= \ + http://www.mindspring.com/~vsilyaev/vmware/files/ \ + ftp://mirror.aarnet.edu.au/pub/vmware/freebsd/ \ + http://mirror.aarnet.edu.au/pub/vmware/freebsd/ + USE_LINUX= yes VMDIR= ${PREFIX}/lib/vmware @@ -42,6 +50,8 @@ WRKSRC= ${WRKDIR}/vmware-distrib GZCAT= ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/extract MAN1= vmware.1 +MODULES= vmmon vmnet + .include <bsd.port.pre.mk> .if ${OSVERSION} < 400013 @@ -66,6 +76,23 @@ SCRIPTS_ENV+= LINUXBASE="${LINUXBASE}" \ MAKE_ARGS= KMODDIR="${VMDIR}/lib/modules" PLIST_SUB= LINUXBASE="${LINUXBASE}" +post-extract: +.for m in ${MODULES} + ${TAR} -xf ${WRKSRC}/lib/modules/source/${m}.tar -C ${WRKSRC} +.endfor +.if defined(WANT_BETA) + ${GUNZIP_CMD} ${WRKSRC}/man/man1/vmware.1.gz +.endif + +pre-patch: +.if defined(WANT_BETA) + ${PERL} -i -ne 'if (m{^Index: vmnet-only/userif\.c$$}..m{^Index: vmnet-only/vm_oui\.h$$}) { next unless m{^Index: vmnet-only/vm_oui\.h$$} } print' ${WRKDIR}/vmnet-freebsd.diff +.endif +.for m in ${MODULES} + ${CP} -R ${WRKDIR}/${m}-only ${WRKSRC}/ + ${PATCH} ${PATCH_ARGS} < ${WRKDIR}/${m}-freebsd.diff +.endfor + post-patch: ${CP} ${FILESDIR}/Makefile ${WRKSRC} ${CP} ${FILESDIR}/Makefile.vmmon ${WRKSRC}/vmmon-only/Makefile diff --git a/emulators/vmware2/distinfo b/emulators/vmware2/distinfo index 985512db5a97..b920058b4c91 100644 --- a/emulators/vmware2/distinfo +++ b/emulators/vmware2/distinfo @@ -1,3 +1,4 @@ MD5 (VMware-2.0.2-621.tar.gz) = fd96669b44664a4c0a440251c6cc4e4d MD5 (vmmon-freebsd-0.98.tar.gz) = ed381460a92c6733d9889192256e1023 MD5 (vmnet-freebsd-0.21.tar.gz) = bb79acba1a4d7d9f3063510ea2bd91ad +MD5 (VMware-2.0.3-786.tar.gz) = 42bed9b282ce3822304030021cedceb9 |