Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 2009 21:32:52 +0900 (JST)
From:      Maho NAKATA <chat95@mac.com>
To:        miwi@FreeBSD.org
Cc:        ports@FreeBSD.org, freebsd-current@FreeBSD.org, freebsd-emulation@FreeBSD.org, gperez@entel.upc.edu
Subject:   Adding Guestadditions.iso Re: [Call For Testing] VirtualBox for FreeBSD! take 3
Message-ID:  <20090523.213252.193744936.chat95@mac.com>
In-Reply-To: <20090522202635.GC33004@bsdcrew.de>
References:  <20090522202102.GB33004@bsdcrew.de> <4A1709EA.2000207@entel.upc.edu> <20090522202635.GC33004@bsdcrew.de>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Sat_May_23_21_32_52_2009_908)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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
@@ -6,16 +6,26 @@
 #

 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@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 \
@@ -52,6 +62,9 @@

 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}

@@ -127,7 +140,10 @@

 	${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
@@ -1,3 +1,6 @@
 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


----Security_Multipart(Sat_May_23_21_32_52_2009_908)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEABECAAYFAkoX7PYACgkQpcQqaPiEzfkSlwCeJExFJmCKaGXex7VvW63KZx3L
hisAnRmu4/U9VBTStn9rfakEK1yq2Uqi
=/U2l
-----END PGP SIGNATURE-----

----Security_Multipart(Sat_May_23_21_32_52_2009_908)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090523.213252.193744936.chat95>