Adding Guestadditions.iso Re: [Call For Testing] VirtualBox for FreeBSD! take 3

From: Maho NAKATA <chat95_at_mac.com>
Date: Sat, 23 May 2009 21:32:52 +0900 (JST)
Hi miwi,

Here is a patch adding "WITH_GUESTADDITIONS" knob.
With this knob we also installs
Guest additions.iso. This driver makes Windows XP, Linux and Solaris faster.
I'm a newbie to VirtualBox so it is not the correct patch.
I don't check it thoroughly but ISO image itself is not a GPL one.

Best,

--- Makefile	2009-05-23 01:59:37.000000000 +0900
+++ Makefile	2009-05-23 21:14:52.000000000 +0900
_at__at_ -6,16 +6,26 _at__at_
 #

 PORTNAME=	virtualbox
-PORTVERSION=	2.2.2r19852
+PORTVERSION=	${VBOXVER}r19852
 CATEGORIES=	emulators kld
 MASTER_SITES=	http://tmp.chruetertee.ch/ \
 		http://freebsd.unixfreunde.de/sources/ \
 		http://disasterarea.chruetertee.ch/ \
 		http://mirror.4bit.ws/
+.if defined(WITH_GUESTADDITIONS)
+MASTER_SITES+=  http://dlc.sun.com/virtualbox/${VBOXVER}/:guestadditons
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${GUESTADDITIONS}:guestaddtions
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
+.endif

 MAINTAINER=	decke_at_bluelife.at
 COMMENT=	A general-purpose full virtualizer for x86 hardware

+VBOXVER=	2.2.2
+FETCH_ARGS=	-pRr
+GUESTADDITIONS_GENERICNAME=	VBoxGuestAdditions.iso
+GUESTADDITIONS=	VBoxGuestAdditions_${VBOXVER}.iso
+
 BUILD_DEPENDS=	yasm:${PORTSDIR}/devel/yasm \
 		as86:${PORTSDIR}/devel/dev86 \
 		xsltproc:${PORTSDIR}/textproc/libxslt \
_at__at_ -52,6 +62,9 _at__at_

 KMODDIR=	/boot/modules
 PLIST_SUB+=	KMODDIR=${KMODDIR}
+.if defined(WITH_GUESTADDITIONS)
+PLIST_FILES+=	lib/virtualbox/${GUESTADDITIONS} lib/virtualbox/${GUESTADDITIONS_GENERICNAME}
+.endif

 KMK_CONFIG=	VBOX_LIBPATH_X11=${LOCALBASE}

_at__at_ -127,7 +140,10 _at__at_

 	${MKDIR} ${PREFIX}/lib/virtualbox
 	(cd ${WRKSRC}/out/${KMK_ARCH}/release/bin && ${COPYTREE_SHARE} "*.so *.gc *.r0 components" ${PREFIX}/lib/virtualbox)
-
+.if defined(WITH_GUESTADDITIONS)
+	${INSTALL_DATA} ${DISTDIR}/${GUESTADDITIONS} ${PREFIX}/lib/virtualbox/
+	${LN} -sf ${PREFIX}/lib/virtualbox/${GUESTADDITIONS} ${PREFIX}/lib/virtualbox/${GUESTADDITIONS_GENERICNAME}
+.endif
 	${MKDIR} ${PREFIX}/bin
 .for f in VBoxBFE VBoxHeadless VBoxManage VBoxNetDHCP VBoxSDL VBoxSVC VBoxXPCOMIPCD VirtualBox
 	${INSTALL_PROGRAM} ${WRKSRC}/out/${KMK_ARCH}/release/bin/$f ${PREFIX}/lib/virtualbox/


--- distinfo	2009-05-23 01:59:37.000000000 +0900
+++ distinfo	2009-05-23 20:17:28.000000000 +0900
_at__at_ -1,3 +1,6 _at__at_
 MD5 (virtualbox-2.2.2r19852.tar.gz) = ff1e05bd04fd7974a90e12394cb58626
 SHA256 (virtualbox-2.2.2r19852.tar.gz) = 7b898c643551f5b74d169a79ad41801cc5675b5e57a7da0f700875dd11265a5f
 SIZE (virtualbox-2.2.2r19852.tar.gz) = 58070688
+MD5 (VBoxGuestAdditions_2.2.2.iso) = 9c09a9e88abe9edd8fec6fd3cf453535
+SHA256 (VBoxGuestAdditions_2.2.2.iso) = 3727c024d8d426443158b1063a9d7355d492da3725470c4c01fafbe4bc382687
+SIZE (VBoxGuestAdditions_2.2.2.iso) = 28755968


Received on Sat May 23 2009 - 10:57:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:48 UTC