diff options
author | knu <knu@FreeBSD.org> | 2000-11-02 22:56:44 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-11-02 22:56:44 +0000 |
commit | 84611c4be78d8c9b9b538b4091841615ac5bf33f (patch) | |
tree | 354da18c06c44a02835a65f177e62528dbb92b20 /emulators/vmware3 | |
parent | d0e19eedf33e346dd974644cea54cf96ab2569c8 (diff) | |
download | FreeBSD-ports-84611c4be78d8c9b9b538b4091841615ac5bf33f.zip FreeBSD-ports-84611c4be78d8c9b9b538b4091841615ac5bf33f.tar.gz |
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/vmware3')
-rw-r--r-- | emulators/vmware3/Makefile | 53 | ||||
-rw-r--r-- | emulators/vmware3/distinfo | 1 |
2 files changed, 41 insertions, 13 deletions
diff --git a/emulators/vmware3/Makefile b/emulators/vmware3/Makefile index 8845a66..acbb4e9 100644 --- a/emulators/vmware3/Makefile +++ b/emulators/vmware3/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/vmware3/distinfo b/emulators/vmware3/distinfo index 985512d..b920058 100644 --- a/emulators/vmware3/distinfo +++ b/emulators/vmware3/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 |