diff options
author | scheidell <scheidell@FreeBSD.org> | 2012-01-16 08:07:20 +0800 |
---|---|---|
committer | scheidell <scheidell@FreeBSD.org> | 2012-01-16 08:07:20 +0800 |
commit | d15879e3f717f6251c9626bd29649c65ab3eb819 (patch) | |
tree | ae57e71f3c1d68914576828892e70b2a41076d58 /emulators | |
parent | d99dcbcb08668566bfe90b075aa9773ac3e465c6 (diff) | |
download | freebsd-ports-graphics-d15879e3f717f6251c9626bd29649c65ab3eb819.tar.gz freebsd-ports-graphics-d15879e3f717f6251c9626bd29649c65ab3eb819.tar.zst freebsd-ports-graphics-d15879e3f717f6251c9626bd29649c65ab3eb819.zip |
- patch vmhgfs to allow make it loadable [1]
- patch Makefile/plist/pkg-message to prevent install of broken vmhgfs, suggested by swills
- Add USE_AUTOMAKE=yes to keep build from taking two passes, and keep tinderbox happy
Submitted by: swills [1]
Approved by: gabor (mentor)
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/open-vm-tools/Makefile | 12 | ||||
-rw-r--r-- | emulators/open-vm-tools/files/patch-vmhgfs-Makefile | 16 | ||||
-rw-r--r-- | emulators/open-vm-tools/files/pkg-message.in | 3 | ||||
-rw-r--r-- | emulators/open-vm-tools/pkg-plist | 4 |
4 files changed, 29 insertions, 6 deletions
diff --git a/emulators/open-vm-tools/Makefile b/emulators/open-vm-tools/Makefile index 2815519098f..b94fd0c5f2d 100644 --- a/emulators/open-vm-tools/Makefile +++ b/emulators/open-vm-tools/Makefile @@ -4,9 +4,9 @@ # # $FreeBSD$ # - PORTNAME= open-vm-tools PORTVERSION= ${BUILD_VER} +PORTREVISION= 1 CATEGORIES= emulators kld MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/stable-8.8.x DISTNAME= open-vm-tools-${RELEASE_VER}-${BUILD_VER} @@ -23,6 +23,7 @@ BUILD_VER= 471268 WRKSRC= ${WRKDIR}/open-vm-tools-${RELEASE_VER}-${BUILD_VER} GNU_CONFIGURE= yes USE_LDCONFIG= yes +USE_AUTOMAKE= yes CONFIGURE_ARGS+= --without-procps --sysconfdir=${LOCALBASE}/etc .if defined(WITHOUT_X11) @@ -58,6 +59,13 @@ PLIST_SUB+= FUSE="" PLIST_SUB+= FUSE="@comment " .endif +.if defined(WITH_LOAD_HGFS) +PLIST_SUB+= NOLOAD="" +BROKEN= remove this line to install broken vmhgfs.ko +.else +PLIST_SUB+= NOLOAD="@comment " +.endif + CONFLICTS+= vmware-guestd[0-9]* vmware-tools[0-9]* SUB_FILES= pkg-message @@ -89,7 +97,9 @@ post-install: ${MKDIR} ${PREFIX}/lib/vmware-tools/modules/input ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmmemctl.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmmemctl.ko ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmxnet.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmxnet.ko +.if defined(WITH_LOAD_HGFS) ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmhgfs.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmhgfs.ko +.endif ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmblock.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmblock.ko @-kldxref ${PREFIX}/lib/vmware-tools/modules/drivers 2>/dev/null @${CAT} ${PKGMESSAGE} diff --git a/emulators/open-vm-tools/files/patch-vmhgfs-Makefile b/emulators/open-vm-tools/files/patch-vmhgfs-Makefile index fd267d3a573..6eaae10cc48 100644 --- a/emulators/open-vm-tools/files/patch-vmhgfs-Makefile +++ b/emulators/open-vm-tools/files/patch-vmhgfs-Makefile @@ -1,6 +1,15 @@ ---- ./modules/freebsd/vmhgfs/Makefile.orig 2010-10-20 05:19:54.000000000 +0900 -+++ ./modules/freebsd/vmhgfs/Makefile 2010-11-11 23:06:07.000000000 +0900 -@@ -90,22 +90,7 @@ +--- modules/freebsd/vmhgfs/Makefile.orig 2011-09-15 02:03:28.000000000 +0000 ++++ modules/freebsd/vmhgfs/Makefile 2012-01-08 16:11:28.000000000 +0000 +@@ -47,7 +47,7 @@ + .endif + + COMMON_HGFS_SRCS := debug.c +-COMMON_HGFS_SRCS := bdhandler.c ++COMMON_HGFS_SRCS += bdhandler.c + COMMON_HGFS_SRCS += request.c + COMMON_HGFS_SRCS += worker.c + COMMON_HGFS_SRCS += fsutil.c +@@ -93,22 +93,7 @@ CFLAGS += -Ishared .endif @@ -24,3 +33,4 @@ +.include <bsd.own.mk> .include <bsd.kmod.mk> + diff --git a/emulators/open-vm-tools/files/pkg-message.in b/emulators/open-vm-tools/files/pkg-message.in index ab2bf34dafe..c2f78883f2d 100644 --- a/emulators/open-vm-tools/files/pkg-message.in +++ b/emulators/open-vm-tools/files/pkg-message.in @@ -8,4 +8,7 @@ vmware_guest_vmmemctl_enable="YES" vmware_guest_vmxnet_enable="YES" vmware_guestd_enable="YES" +NOTE: as of this writting, vmhfgs.ko load module is broken. +To install and test/debug/fix this module, define WITH_LOAD_HGFS +and remove BROKEN in Makefile ******************************************************************* diff --git a/emulators/open-vm-tools/pkg-plist b/emulators/open-vm-tools/pkg-plist index 14ff664614e..bb1d716c789 100644 --- a/emulators/open-vm-tools/pkg-plist +++ b/emulators/open-vm-tools/pkg-plist @@ -32,7 +32,7 @@ lib/libguestlib.so.0 libdata/pkgconfig/vmguestlib.pc lib/vmware-tools/modules/drivers/linker.hints lib/vmware-tools/modules/drivers/vmblock.ko -lib/vmware-tools/modules/drivers/vmhgfs.ko +%%NOLOAD%%lib/vmware-tools/modules/drivers/vmhgfs.ko lib/vmware-tools/modules/drivers/vmmemctl.ko lib/vmware-tools/modules/drivers/vmxnet.ko include/vmGuestLib/includeCheck.h @@ -59,7 +59,7 @@ share/vmware-tools/scripts/vmware/network @unexec if test -f %D/lib/vmware-tools/modules/drivers/linker.hints; then rm -f %D/lib/vmware-tools/modules/drivers/linker.hints; fi @unexec if test -f %D/share/vmware-tools/tools.conf; then rm -f %D/share/vmware-tools/tools.conf; fi @unexec if test -h %D/etc/vmware-tools/plugins; then rm -f %D/etc/vmware-tools/plugins; fi -etc/xdg/autostart/vmware-user.desktop +%%X11%%etc/xdg/autostart/vmware-user.desktop @dirrmtry etc/xdg/autostart @dirrmtry etc/xdg @dirrmtry lib/vmware-tools/modules/drivers |