pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/open-vm-tools
Module Name: pkgsrc
Committed By: ryoon
Date: Sun Oct 9 03:41:56 UTC 2016
Modified Files:
pkgsrc/sysutils/open-vm-tools: Makefile PLIST.common PLIST.x11 distinfo
options.mk
pkgsrc/sysutils/open-vm-tools/files: vmtools.sh
pkgsrc/sysutils/open-vm-tools/patches: patch-ag patch-ah patch-ai
patch-aj patch-ak patch-aq patch-ar patch-as patch-at patch-au
patch-av patch-ay patch-az patch-ba patch-bb patch-bc patch-bd
patch-be patch-bf patch-bh patch-bm patch-bu patch-configure.ac
patch-scripts_Makefile.am
Added Files:
pkgsrc/sysutils/open-vm-tools/patches:
patch-libDeployPkg_linuxDeployment.c
patch-libDeployPkg_processPosix.c patch-lib_dynxdr_xdrutil.c
patch-lib_file_file.c patch-lib_hgfsHelper_hgfsHelperPosix.c
patch-lib_hgfsUri_hgfsUriPosix.c patch-lib_include_sigPosixRegs.h
patch-lib_include_vmblock__user.h patch-lib_include_vmci__sockets.h
patch-lib_misc_hostinfoPosix.c patch-lib_nicInfo_nicInfoInt.h
patch-lib_nicInfo_nicInfoPosix.c patch-lib_user_utilBacktrace.c
patch-scripts_netbsd_network
patch-services_plugins_dndcp_dnd_dndLinux.c
patch-services_plugins_timeSync_Makefile.am
patch-services_vmtoolsd_Makefile.am patch-vgauth_common_VGAuthLog.c
patch-vgauth_lib_common.c patch-vgauth_lib_impersonateLinux.c
patch-vmblockmounter_vmblockmounter.c
Removed Files:
pkgsrc/sysutils/open-vm-tools/patches: patch-ac patch-ad patch-ae
patch-af patch-am patch-an patch-ao patch-ap patch-aw patch-ax
patch-bg patch-bi patch-bj patch-bk patch-bl patch-bn patch-bo
patch-bp patch-bq patch-br patch-bs patch-bv patch-bw patch-bx
patch-by patch-checkvm_checkvm.c patch-guestd_Makefile.am
patch-hgfsclient_Makefile.am patch-lib_guestApp_Makefile.am
patch-lib_hgfsServer_hgfsServer.c
patch-lib_hgfsServer_hgfsServerLinux.c patch-lib_panic_panic.c
patch-lib_user_util.c patch-lib_vmCheck_Makefile.am
patch-lib_vmSignal_Makefile.am patch-libguestlib_Makefile.am
patch-toolbox_Makefile.am patch-toolbox_toolboxcmd-stat.c
patch-vmware-user_Makefile.am patch-vmware-user_copyPaste.c
patch-vmware-user_dnd.c
Log Message:
Update to 10.0.7
The only following features are tested on NetBSD/amd64 7.99.39 without vmt(4)
on VMware Workstation 12 Player 12.0.5 for Windows or ESXi 6.0u2.
* Hostname and IP address report
* Shutdown and reboot operations from host
* Copy and paste of text string between host and guest
* Guest clock sync
The other features are not tested. For example,
* Drag and drop between host and guest
* VM HA, heartbeat
* HGFS, shared folder
Changelog:
What's New
VMware Tools is a suite of utilities that enhances the performance of the virtual machine's guest operating system and improves management of the virtual machine. Read about the new and enhanced
features in this release below:
Common versioning: Infrastructure changes to enable reporting of the true version of open-vm-tools. This feature is dependent on host support.
Quiesced snapshots enhancements for Linux guests running IO workload: Robustness related enhancements in quiesced snapshot operation. The vmtoolsd service supports caching of log messages when
guest IO has been quiesced. Enhancements in the vmbackup plugin use a separate thread to quiesce the guest OS to avoid timeout issues due to heavy I/O in the guest.
Shared Folders: For Linux distributions with kernel version 4.0.0 and higher, there is a new FUSE based Shared Folders client which is used as a replacement for the kernel mode client.
ESXi Serviceability: Default vmtoolsd logging is directed to a file instead of syslog. vmware-toolbox-cmd is enhanced for setting vmtoolsd logging levels.
GuestInfo Enhancements: Plugin enhancements to report more than 64 IP addresses from the guest. These enhancements will be available only after upgrading the host because the guest IP addresses
limit also exists on the host side.
Internationalization
open-vm-tools 10.0.0 supports the following languages:
English
French
German
Spanish
Italian
Japanese
Korean
Simplified Chinese
Traditional Chinese
Compatibility
open-vm-tools 10.0.0 is compatible with all supported versions of VMware vSphere, VMware Workstation 12.0 and VMware Fusion 8.0.
To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 pkgsrc/sysutils/open-vm-tools/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/sysutils/open-vm-tools/PLIST.common \
pkgsrc/sysutils/open-vm-tools/options.mk
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/open-vm-tools/PLIST.x11
cvs rdiff -u -r1.11 -r1.12 pkgsrc/sysutils/open-vm-tools/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/open-vm-tools/files/vmtools.sh
cvs rdiff -u -r1.3 -r0 pkgsrc/sysutils/open-vm-tools/patches/patch-ac \
pkgsrc/sysutils/open-vm-tools/patches/patch-ad \
pkgsrc/sysutils/open-vm-tools/patches/patch-an
cvs rdiff -u -r1.2 -r0 pkgsrc/sysutils/open-vm-tools/patches/patch-ae \
pkgsrc/sysutils/open-vm-tools/patches/patch-af \
pkgsrc/sysutils/open-vm-tools/patches/patch-am \
pkgsrc/sysutils/open-vm-tools/patches/patch-ao \
pkgsrc/sysutils/open-vm-tools/patches/patch-ap \
pkgsrc/sysutils/open-vm-tools/patches/patch-aw \
pkgsrc/sysutils/open-vm-tools/patches/patch-bv \
pkgsrc/sysutils/open-vm-tools/patches/patch-bw \
pkgsrc/sysutils/open-vm-tools/patches/patch-bx \
pkgsrc/sysutils/open-vm-tools/patches/patch-checkvm_checkvm.c
cvs rdiff -u -r1.2 -r1.3 pkgsrc/sysutils/open-vm-tools/patches/patch-ag \
pkgsrc/sysutils/open-vm-tools/patches/patch-ah \
pkgsrc/sysutils/open-vm-tools/patches/patch-ai \
pkgsrc/sysutils/open-vm-tools/patches/patch-aj \
pkgsrc/sysutils/open-vm-tools/patches/patch-ak \
pkgsrc/sysutils/open-vm-tools/patches/patch-aq \
pkgsrc/sysutils/open-vm-tools/patches/patch-ar \
pkgsrc/sysutils/open-vm-tools/patches/patch-as \
pkgsrc/sysutils/open-vm-tools/patches/patch-at \
pkgsrc/sysutils/open-vm-tools/patches/patch-au \
pkgsrc/sysutils/open-vm-tools/patches/patch-av \
pkgsrc/sysutils/open-vm-tools/patches/patch-ay \
pkgsrc/sysutils/open-vm-tools/patches/patch-az \
pkgsrc/sysutils/open-vm-tools/patches/patch-ba \
pkgsrc/sysutils/open-vm-tools/patches/patch-bb \
pkgsrc/sysutils/open-vm-tools/patches/patch-bc
cvs rdiff -u -r1.5 -r0 pkgsrc/sysutils/open-vm-tools/patches/patch-ax
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-bd \
pkgsrc/sysutils/open-vm-tools/patches/patch-be \
pkgsrc/sysutils/open-vm-tools/patches/patch-bf \
pkgsrc/sysutils/open-vm-tools/patches/patch-bh \
pkgsrc/sysutils/open-vm-tools/patches/patch-bm \
pkgsrc/sysutils/open-vm-tools/patches/patch-bu \
pkgsrc/sysutils/open-vm-tools/patches/patch-configure.ac \
pkgsrc/sysutils/open-vm-tools/patches/patch-scripts_Makefile.am
cvs rdiff -u -r1.1 -r0 pkgsrc/sysutils/open-vm-tools/patches/patch-bg \
pkgsrc/sysutils/open-vm-tools/patches/patch-bi \
pkgsrc/sysutils/open-vm-tools/patches/patch-bj \
pkgsrc/sysutils/open-vm-tools/patches/patch-bk \
pkgsrc/sysutils/open-vm-tools/patches/patch-bl \
pkgsrc/sysutils/open-vm-tools/patches/patch-bn \
pkgsrc/sysutils/open-vm-tools/patches/patch-bo \
pkgsrc/sysutils/open-vm-tools/patches/patch-bp \
pkgsrc/sysutils/open-vm-tools/patches/patch-bq \
pkgsrc/sysutils/open-vm-tools/patches/patch-br \
pkgsrc/sysutils/open-vm-tools/patches/patch-bs \
pkgsrc/sysutils/open-vm-tools/patches/patch-by \
pkgsrc/sysutils/open-vm-tools/patches/patch-guestd_Makefile.am \
pkgsrc/sysutils/open-vm-tools/patches/patch-hgfsclient_Makefile.am \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_guestApp_Makefile.am \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_hgfsServer_hgfsServer.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_hgfsServer_hgfsServerLinux.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_panic_panic.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_user_util.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_vmCheck_Makefile.am \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_vmSignal_Makefile.am \
pkgsrc/sysutils/open-vm-tools/patches/patch-libguestlib_Makefile.am \
pkgsrc/sysutils/open-vm-tools/patches/patch-toolbox_Makefile.am \
pkgsrc/sysutils/open-vm-tools/patches/patch-toolbox_toolboxcmd-stat.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-vmware-user_Makefile.am \
pkgsrc/sysutils/open-vm-tools/patches/patch-vmware-user_copyPaste.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-vmware-user_dnd.c
cvs rdiff -u -r0 -r1.1 \
pkgsrc/sysutils/open-vm-tools/patches/patch-libDeployPkg_linuxDeployment.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-libDeployPkg_processPosix.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_dynxdr_xdrutil.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_file_file.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_hgfsHelper_hgfsHelperPosix.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_hgfsUri_hgfsUriPosix.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_sigPosixRegs.h \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_vmblock__user.h \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_vmci__sockets.h \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_misc_hostinfoPosix.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_nicInfo_nicInfoInt.h \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_nicInfo_nicInfoPosix.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-lib_user_utilBacktrace.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-scripts_netbsd_network \
pkgsrc/sysutils/open-vm-tools/patches/patch-services_plugins_dndcp_dnd_dndLinux.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-services_plugins_timeSync_Makefile.am \
pkgsrc/sysutils/open-vm-tools/patches/patch-services_vmtoolsd_Makefile.am \
pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_common_VGAuthLog.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_lib_common.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_lib_impersonateLinux.c \
pkgsrc/sysutils/open-vm-tools/patches/patch-vmblockmounter_vmblockmounter.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/sysutils/open-vm-tools/Makefile
diff -u pkgsrc/sysutils/open-vm-tools/Makefile:1.58 pkgsrc/sysutils/open-vm-tools/Makefile:1.59
--- pkgsrc/sysutils/open-vm-tools/Makefile:1.58 Wed Aug 3 10:23:25 2016
+++ pkgsrc/sysutils/open-vm-tools/Makefile Sun Oct 9 03:41:56 2016
@@ -1,17 +1,20 @@
-# $NetBSD: Makefile,v 1.58 2016/08/03 10:23:25 adam Exp $
+# $NetBSD: Makefile,v 1.59 2016/10/09 03:41:56 ryoon Exp $
-DISTNAME= open-vm-tools-2008.08.08-109361
-PKGNAME= open-vm-tools-2008.08.08.109361
-PKGREVISION= 45
+DISTNAME= open-vm-tools-10.0.7-3227872
+PKGNAME= open-vm-tools-10.0.7
CATEGORIES= sysutils
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=open-vm-tools/}
+MASTER_SITES= https://github.com/vmware/open-vm-tools/files/133266/
MAINTAINER= agc%NetBSD.org@localhost
-HOMEPAGE= http://open-vm-tools.sourceforge.net/
+HOMEPAGE= https://github.com/vmware/open-vm-tools
COMMENT= Open source VMware tools
+LICENSE= gnu-lgpl-v2.1
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-x86_64
+CXXFLAGS+= -std=gnu++11
+BUILDLINK_TRANSFORM.NetBSD+= rm:-Werror
+
GNU_CONFIGURE= yes
USE_LANGUAGES+= c c++
USE_LIBTOOL= yes
@@ -20,6 +23,9 @@ USE_TOOLS+= pkg-config autoconf automake
PLIST_SRC= PLIST.common
CONFIGURE_ARGS+= --disable-unity --sysconfdir=${PKG_SYSCONFDIR:Q}
+CONFIGURE_ARGS+= --disable-vgauth
+CONFIGURE_ARGS+= --disable-grabbitmqproxy
+CONFIGURE_ARGS+= --disable-docs # Requires doxygen
INSTALLATION_DIRS+= ${PKG_SYSCONFDIR} share/examples/vmware-tools
@@ -28,8 +34,8 @@ EGDIR= ${PREFIX}/share/examples/vmwar
CONF_FILES_PERMS+= ${EGDIR}/poweroff-vm-default ${PKG_SYSCONFDIR}/poweroff-vm-default ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
CONF_FILES_PERMS+= ${EGDIR}/poweron-vm-default ${PKG_SYSCONFDIR}/poweron-vm-default ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
CONF_FILES_PERMS+= ${EGDIR}/resume-vm-default ${PKG_SYSCONFDIR}/resume-vm-default ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
+CONF_FILES_PERMS+= ${EGDIR}/statechange.subr ${PKG_SYSCONFDIR}/statechange.subr ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
CONF_FILES_PERMS+= ${EGDIR}/suspend-vm-default ${PKG_SYSCONFDIR}/suspend-vm-default ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
-CONF_FILES_PERMS+= ${EGDIR}/tools.conf ${PKG_SYSCONFDIR}/tools.conf ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644
RCD_SCRIPTS= vmtools
pre-configure:
@@ -44,8 +50,11 @@ _WRAP_EXTRA_ARGS.CC+= -Wno-error=unused-
CWRAPPERS_APPEND.cc+= -Wno-error=unused-local-typedefs -Wno-error=unused-but-set-variable
.endif
+.include "../../archivers/libmspack/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
.include "../../net/libdnet/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
+.include "../../security/xml-security-c/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "options.mk"
Index: pkgsrc/sysutils/open-vm-tools/PLIST.common
diff -u pkgsrc/sysutils/open-vm-tools/PLIST.common:1.2 pkgsrc/sysutils/open-vm-tools/PLIST.common:1.3
--- pkgsrc/sysutils/open-vm-tools/PLIST.common:1.2 Tue Mar 11 14:05:15 2014
+++ pkgsrc/sysutils/open-vm-tools/PLIST.common Sun Oct 9 03:41:56 2016
@@ -1,12 +1,48 @@
-@comment $NetBSD: PLIST.common,v 1.2 2014/03/11 14:05:15 jperkin Exp $
+@comment $NetBSD: PLIST.common,v 1.3 2016/10/09 03:41:56 ryoon Exp $
+bin/vmtoolsd
bin/vmware-checkvm
bin/vmware-hgfsclient
+bin/vmware-namespace-cmd
+bin/vmware-rpctool
bin/vmware-toolbox-cmd
bin/vmware-xferlogs
+include/libDeployPkg/guestcust-events.h
+include/libDeployPkg/imgcust-api.h
+include/libDeployPkg/includeCheck.h
+include/libDeployPkg/linuxDeployment.h
+include/libDeployPkg/log.h
+include/libDeployPkg/process.h
+include/libDeployPkg/rpcout.h
+include/libDeployPkg/vm_basic_types.h
+include/vmGuestLib/includeCheck.h
+include/vmGuestLib/vmGuestLib.h
+include/vmGuestLib/vmSessionId.h
+include/vmGuestLib/vm_basic_types.h
+lib/libDeployPkg.la
lib/libguestlib.la
-sbin/vmware-guestd
+lib/libhgfs.la
+lib/libvmtools.la
+lib/open-vm-tools/plugins/common/libhgfsServer.la
+lib/open-vm-tools/plugins/common/libvix.la
+lib/open-vm-tools/plugins/vmsvc/libdeployPkgPlugin.so
+lib/open-vm-tools/plugins/vmsvc/libguestInfo.so
+lib/open-vm-tools/plugins/vmsvc/libpowerOps.so
+lib/open-vm-tools/plugins/vmsvc/libtimeSync.so
+lib/open-vm-tools/plugins/vmsvc/libvmbackup.so
+lib/pkgconfig/libDeployPkg.pc
+lib/pkgconfig/vmguestlib.pc
+sbin/mount.vmblock
+share/examples/vmware-tools/pam.d/vmtoolsd
share/examples/vmware-tools/poweroff-vm-default
share/examples/vmware-tools/poweron-vm-default
share/examples/vmware-tools/resume-vm-default
+share/examples/vmware-tools/scripts/vmware/network
+share/examples/vmware-tools/statechange.subr
share/examples/vmware-tools/suspend-vm-default
-share/examples/vmware-tools/tools.conf
+share/open-vm-tools/messages/de/toolboxcmd.vmsg
+share/open-vm-tools/messages/de/vmtoolsd.vmsg
+share/open-vm-tools/messages/ja/toolboxcmd.vmsg
+share/open-vm-tools/messages/ja/vmtoolsd.vmsg
+share/open-vm-tools/messages/ko/toolboxcmd.vmsg
+share/open-vm-tools/messages/ko/vmtoolsd.vmsg
+share/open-vm-tools/messages/zh_CN/toolboxcmd.vmsg
Index: pkgsrc/sysutils/open-vm-tools/options.mk
diff -u pkgsrc/sysutils/open-vm-tools/options.mk:1.2 pkgsrc/sysutils/open-vm-tools/options.mk:1.3
--- pkgsrc/sysutils/open-vm-tools/options.mk:1.2 Thu Dec 16 11:52:15 2010
+++ pkgsrc/sysutils/open-vm-tools/options.mk Sun Oct 9 03:41:56 2016
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2010/12/16 11:52:15 obache Exp $
+# $NetBSD: options.mk,v 1.3 2016/10/09 03:41:56 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.open-vm-tools
PKG_SUPPORTED_OPTIONS= x11
@@ -8,11 +8,8 @@ PKG_SUGGESTED_OPTIONS= x11
.if !empty(PKG_OPTIONS:Mx11)
PLIST_SRC+= PLIST.x11
-. include "../../x11/gtk2/buildlink3.mk"
-. include "../../x11/libXinerama/buildlink3.mk"
-. include "../../x11/libXrandr/buildlink3.mk"
-. include "../../x11/libXrender/buildlink3.mk"
-. include "../../x11/libXtst/buildlink3.mk"
+. include "../../graphics/gdk-pixbuf2-xlib/buildlink3.mk"
+. include "../../x11/gtkmm/buildlink3.mk"
. include "../../sysutils/desktop-file-utils/desktopdb.mk"
.else
CONFIGURE_ARGS+= --without-x
Index: pkgsrc/sysutils/open-vm-tools/PLIST.x11
diff -u pkgsrc/sysutils/open-vm-tools/PLIST.x11:1.1 pkgsrc/sysutils/open-vm-tools/PLIST.x11:1.2
--- pkgsrc/sysutils/open-vm-tools/PLIST.x11:1.1 Sun Aug 31 06:36:47 2008
+++ pkgsrc/sysutils/open-vm-tools/PLIST.x11 Sun Oct 9 03:41:56 2016
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST.x11,v 1.1 2008/08/31 06:36:47 scottr Exp $
-bin/vmware-toolbox
-bin/vmware-user
+@comment $NetBSD: PLIST.x11,v 1.2 2016/10/09 03:41:56 ryoon Exp $
bin/vmware-user-suid-wrapper
-share/applications/vmware-user.desktop
+etc/vmware-tools/xdg/autostart/vmware-user.desktop
+lib/open-vm-tools/plugins/vmusr/libdesktopEvents.so
+lib/open-vm-tools/plugins/vmusr/libdndcp.so
+lib/open-vm-tools/plugins/vmusr/libresolutionSet.so
Index: pkgsrc/sysutils/open-vm-tools/distinfo
diff -u pkgsrc/sysutils/open-vm-tools/distinfo:1.11 pkgsrc/sysutils/open-vm-tools/distinfo:1.12
--- pkgsrc/sysutils/open-vm-tools/distinfo:1.11 Sat May 7 10:10:09 2016
+++ pkgsrc/sysutils/open-vm-tools/distinfo Sun Oct 9 03:41:56 2016
@@ -1,72 +1,52 @@
-$NetBSD: distinfo,v 1.11 2016/05/07 10:10:09 joerg Exp $
+$NetBSD: distinfo,v 1.12 2016/10/09 03:41:56 ryoon Exp $
-SHA1 (open-vm-tools-2008.08.08-109361.tar.gz) = 1c44c3524cd9cbc5870f1c6065b03a6b31859a25
-RMD160 (open-vm-tools-2008.08.08-109361.tar.gz) = 4ea0a6aa2edda2bc404c865dc5b58f3a177ae411
-SHA512 (open-vm-tools-2008.08.08-109361.tar.gz) = 52e4c453aa22f0efa4df36bd2f5fc08414da741e83c91d7d17102b914fc513370914801d66fdfd498b0947132c3967b82db027a5ea8341f7b87e50f070174c29
-Size (open-vm-tools-2008.08.08-109361.tar.gz) = 2971141 bytes
-SHA1 (patch-ac) = 141db2136d1068408ca3470e11d35233f936a11c
-SHA1 (patch-ad) = 4ec9292667918c23ef182ae05d5f8417d9af7673
-SHA1 (patch-ae) = 785a5d5d27ce6f8281caa56a27f90a3b200ac082
-SHA1 (patch-af) = 7ead621ec1b8987e64ceaa73909c74927e50330f
-SHA1 (patch-ag) = 6d5d462934942ec8b7439e2e51d179e627833111
-SHA1 (patch-ah) = 18577d28bea81a036495d3f86b4713b8a1003fdc
-SHA1 (patch-ai) = 59cdf9ae813aa9ac0cf5920e19cbfd23b720b50b
-SHA1 (patch-aj) = ee2e2bfc5f976d00fb4a830184e37427852a90d3
-SHA1 (patch-ak) = d27cd0cbbf2db45a07a8bf4a006ad5e28feb8b3a
-SHA1 (patch-am) = a4d678ad7e163de381a547cad1c24bca08c72a73
-SHA1 (patch-an) = abd94ec83c54e4ee1e64a34996db21ce86cf7ae3
-SHA1 (patch-ao) = 5d6457e994f559fd826811644d2e77f46ce10d1e
-SHA1 (patch-ap) = ca1a6efeaa90cf6e759e2d27ff3b2da8ffef63d0
-SHA1 (patch-aq) = 18a3072f2c307ed35e5c2356e5656c0ce5f19dc0
-SHA1 (patch-ar) = aa98d78890c9fb46c18f727ba3609ad562c01480
-SHA1 (patch-as) = 45e3957d07227c8fb1741fcf6b15c982e9b52bfd
-SHA1 (patch-at) = 659b97c50168fa74f3e6a8ffe2bafae0420f0d49
-SHA1 (patch-au) = 31eeee4521020952ef51b29351802efd9fe4297f
-SHA1 (patch-av) = b61f165fd9a6e5241795e2e69aa73caba32539a8
-SHA1 (patch-aw) = 82788d7ab312ee07abf3e159028b440d41912a14
-SHA1 (patch-ax) = 70633d0675b11aea8a8c12edbb765ad7d230276f
-SHA1 (patch-ay) = c9c7a7f9871fdc3213bafce05a7433db862ac4a4
-SHA1 (patch-az) = 2a8494c8cbfb0270a5fdd46e0c5ccaf19fc5f94f
-SHA1 (patch-ba) = cb0433af4a7c5c9a9010edbc15998577c44c92ae
-SHA1 (patch-bb) = 2dc1b2281eff27965fc83ca20e9c026287227287
-SHA1 (patch-bc) = d806bf75979d870db8616fa212e3f619d4508249
-SHA1 (patch-bd) = 0af45ab34089ea1d47b15f9dc3ddec129ab98b1a
-SHA1 (patch-be) = 29d8fd6b32d622b4ed03efecb4aeb2a35a7c254b
-SHA1 (patch-bf) = c14f4c641f6f1536d8ae7cd20995506bb59470b4
-SHA1 (patch-bg) = e129e88832690763e4b34cc59c614cf31e79802a
-SHA1 (patch-bh) = 723d8bc1a2064572e7ff4768c137830fbb6773d6
-SHA1 (patch-bi) = d3749e561947e32b5de2af3acb3ff7c26a47ccb4
-SHA1 (patch-bj) = b3c6961c4e8ec54ed2a1c608a8d04e0d38c4176c
-SHA1 (patch-bk) = 48d44394dc31d50dc1ffebfac10c813a18a8f094
-SHA1 (patch-bl) = 651f31b2c1d056e5090b893d1db7badfdb592561
-SHA1 (patch-bm) = 4a0235a64263b1f56a357fe5106a40269a2a11e1
-SHA1 (patch-bn) = 12e1bbd0aea73a2df4fd36e7a8ad8006327404ea
-SHA1 (patch-bo) = 7480a6016308049eef86aeec8103ccf12733133c
-SHA1 (patch-bp) = c577501c0c00dcb8d4b6b8aec8347879aabc0330
-SHA1 (patch-bq) = 121e5db459e1e0f5f5dbaa5e0e3a40e7bc8a74a7
-SHA1 (patch-br) = 7c14091b3f7a7e75e0d7db654cff1e0476e36888
-SHA1 (patch-bs) = 4b2a334ed4611c87b90f2e092cffb88aae058928
+SHA1 (open-vm-tools-10.0.7-3227872.tar.gz) = cd22a3d79d68de46647e8add78bcaf829bb0598d
+RMD160 (open-vm-tools-10.0.7-3227872.tar.gz) = df8cfa62ffd0fbba0432cb0deac0f202b2278625
+SHA512 (open-vm-tools-10.0.7-3227872.tar.gz) = 5838c971a41540cb54ddf83400d2b728bae3245765b6e7d80e7f4be4035308f045ea4a735abafb2a7accbd90c6fe4c381dabd102a98be08a7ee08feab03bfa8b
+Size (open-vm-tools-10.0.7-3227872.tar.gz) = 4009790 bytes
+SHA1 (patch-ag) = 67ce2bcba5cfcbd48f4d2345d5529329424952b3
+SHA1 (patch-ah) = bdee6d92cdfe64f1ab513876ccd9d01f6fda6882
+SHA1 (patch-ai) = 3e8c67a33f6072319f1741bda960377fc2663b06
+SHA1 (patch-aj) = e0bba963e3eed96cf7ae5b0e439a16524194e4df
+SHA1 (patch-ak) = c74a8185508d34cb35fbf14b638fab59661e191f
+SHA1 (patch-aq) = 512a662530ef96c905eb61f6f9e459d6cd1c4b8e
+SHA1 (patch-ar) = b06873f37ac826912e647f2349dc88053bf2cb67
+SHA1 (patch-as) = b029c646cb49ee15a92827f100470489106a2f2f
+SHA1 (patch-at) = 6dbe029926e18075eedf9e2947807f8a4d593136
+SHA1 (patch-au) = 518ca50f944fad718a5e8deb66e83a405ce88159
+SHA1 (patch-av) = 9a1a7daf9fdd2c60119e0a59063aff4e74ad10f1
+SHA1 (patch-ay) = ff2f26b43c5d74c3d6e6d816d5ac3177cfbe505d
+SHA1 (patch-az) = 971e3389db9d5d0a758ebe5b75cb45b419d50ba7
+SHA1 (patch-ba) = 77a57e736f3b02b8f942ae3543cee065a4c4e732
+SHA1 (patch-bb) = e22d082689016d81add208e1d3b31d9d897d36e8
+SHA1 (patch-bc) = c2f316cd9035648676fd9d0d7e40fc7f6bf5c8d4
+SHA1 (patch-bd) = eacc267fad7021a96ee435e8fc41c82fb49d9c5f
+SHA1 (patch-be) = 4e4f88df81daf40769b38d1ddd49fbf5e8d8d1eb
+SHA1 (patch-bf) = 674f18131037a3aa5f01371edb9e576c39a9ecaf
+SHA1 (patch-bh) = 86793b6411a64d3189f47d5236f2a6f4c9fff05c
+SHA1 (patch-bm) = 219f196fc07e3746e9e6eb340be5e647544a255a
SHA1 (patch-bt) = 34c85d8d994c33fb4e18f76bb8b6baa41098f23e
-SHA1 (patch-bu) = 9e2533d967cfb1cdc780516359ab8e7c373b70f5
-SHA1 (patch-bv) = 180df7c4a5fb7544b6d9014f567a4f31e6c2a38d
-SHA1 (patch-bw) = c242890caa3cc720d18eec612aca6e46c69c5b04
-SHA1 (patch-bx) = deeea5eefae750b046d7a9c81679125e26fb82fa
-SHA1 (patch-by) = c6018a330fdabefd3fc60d3e6e6c95bdf4f7f2bc
-SHA1 (patch-checkvm_checkvm.c) = 1da596cf11ccb9af1ba39013775a3a6b3a85345f
-SHA1 (patch-configure.ac) = d39767cc2006088203341782fca7895c2710fd55
-SHA1 (patch-guestd_Makefile.am) = 4855efa62b6633e23c11e3ea184f60f4c6952244
-SHA1 (patch-hgfsclient_Makefile.am) = 3b6adf9e4d88bcce2c191260b669615537927e28
-SHA1 (patch-lib_guestApp_Makefile.am) = b6fb86b15fa58ff87285ab591be1870cf79a5d18
-SHA1 (patch-lib_hgfsServer_hgfsServer.c) = 68a3102d4f53626717f64284eb5e51bfb584e783
-SHA1 (patch-lib_hgfsServer_hgfsServerLinux.c) = ef5a3135a8e4dc9f16d93d6eb7d88b8194aa0907
-SHA1 (patch-lib_panic_panic.c) = f784479ef9000e67389c04ca80ad22da5e3a2165
-SHA1 (patch-lib_user_util.c) = 7048484864fb5f7a66a61dc2234b1ea8359328ae
-SHA1 (patch-lib_vmCheck_Makefile.am) = 5956c6e81d6ea5679d949083fcf60066d8374672
-SHA1 (patch-lib_vmSignal_Makefile.am) = 6c562e558f846666ed9da3298f15a9cd489bd75f
-SHA1 (patch-libguestlib_Makefile.am) = d46ae6b600831b3f7ecd39f675fbf480a7882e60
-SHA1 (patch-scripts_Makefile.am) = 18bac57a5bfed9883734fdc58a4d6214b6614d92
-SHA1 (patch-toolbox_Makefile.am) = cc0d0f3a0b2b269da903ff6918d329ce74158d17
-SHA1 (patch-toolbox_toolboxcmd-stat.c) = 17d1188de53cea4897fc1d08a02d9db06f6bbc28
-SHA1 (patch-vmware-user_Makefile.am) = 20c389aa42c5419106e1d6619e812725602ead6c
-SHA1 (patch-vmware-user_copyPaste.c) = 58286d54e72d9290fc9392212d37c0c406a4e6f8
-SHA1 (patch-vmware-user_dnd.c) = 9d2b242b5e5042f12440ccbf44b10367a8184b0b
+SHA1 (patch-bu) = 33da24db6d7e3dd75ee6f4f1249772de506ab64d
+SHA1 (patch-configure.ac) = cf2c2bb8526ee4916a1a81059b9b776cec97b877
+SHA1 (patch-libDeployPkg_linuxDeployment.c) = f50c7ff2fa07ab15716128654cc814a81cb924af
+SHA1 (patch-libDeployPkg_processPosix.c) = 9f62110eb903eec85e51d8e579abc3d36e54fe7e
+SHA1 (patch-lib_dynxdr_xdrutil.c) = 2a644aeb47bcef7f4db953250b116ec700940531
+SHA1 (patch-lib_file_file.c) = e9ee13e3f5dcdabdf3013095e2af31a65d5afaab
+SHA1 (patch-lib_hgfsHelper_hgfsHelperPosix.c) = 9299f0a781d11689b04223a1dfd1c4725912f863
+SHA1 (patch-lib_hgfsUri_hgfsUriPosix.c) = f98eab5cb5885a9c2e258bf072b24d8806b20fd4
+SHA1 (patch-lib_include_sigPosixRegs.h) = 634e12414f004671c1b2855764970e5d16ef4ef8
+SHA1 (patch-lib_include_vmblock__user.h) = 05ed8a0cdd481b759643ea47e27ef6e223a835d8
+SHA1 (patch-lib_include_vmci__sockets.h) = fba82038daf87a08f04ddd541281122f0047e968
+SHA1 (patch-lib_misc_hostinfoPosix.c) = 4daea6167cee2be57cc3acc0caa710ca940d1eb7
+SHA1 (patch-lib_nicInfo_nicInfoInt.h) = 81d5e8625496218a679c0a87f30a08cc2e3af7a7
+SHA1 (patch-lib_nicInfo_nicInfoPosix.c) = 0f44134e1e256a46b5ce35fff91d0568649c1bad
+SHA1 (patch-lib_user_utilBacktrace.c) = 741cc72d64f962fa0aa48e90b1f912f422c5dd8b
+SHA1 (patch-scripts_Makefile.am) = 5238c5cabf1125f9cd334349e5f67f1b7a568428
+SHA1 (patch-scripts_netbsd_network) = cf4c47e337b0d1f8bba3d4e87678924f85dd635e
+SHA1 (patch-services_plugins_dndcp_dnd_dndLinux.c) = 61acce40961ac82b48e055c159efd0c3b7a8899c
+SHA1 (patch-services_plugins_timeSync_Makefile.am) = 45a9c9044f1e4274c173d822a74dfc63bde0f5e9
+SHA1 (patch-services_vmtoolsd_Makefile.am) = 8a34599f5bd9722333de1ecf741a27a0636104c5
+SHA1 (patch-vgauth_common_VGAuthLog.c) = e64fc476b80015759cca3aafc8b48a3c4daa6dde
+SHA1 (patch-vgauth_lib_common.c) = 0d949bc3c4a00a92f89177e4f20ef2f848f78532
+SHA1 (patch-vgauth_lib_impersonateLinux.c) = 1c925eab81525df06e4ebf906f835170b4320768
+SHA1 (patch-vmblockmounter_vmblockmounter.c) = 4287303b188f4df7a2785fe72bbab820e33d6a07
Index: pkgsrc/sysutils/open-vm-tools/files/vmtools.sh
diff -u pkgsrc/sysutils/open-vm-tools/files/vmtools.sh:1.1 pkgsrc/sysutils/open-vm-tools/files/vmtools.sh:1.2
--- pkgsrc/sysutils/open-vm-tools/files/vmtools.sh:1.1 Sun Aug 31 06:36:47 2008
+++ pkgsrc/sysutils/open-vm-tools/files/vmtools.sh Sun Oct 9 03:41:56 2016
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: vmtools.sh,v 1.1 2008/08/31 06:36:47 scottr Exp $
+# $NetBSD: vmtools.sh,v 1.2 2016/10/09 03:41:56 ryoon Exp $
#
# PROVIDE: vmtools
@@ -11,7 +11,7 @@ $_rc_subr_loaded . /etc/rc.subr
name="vmtools"
rcvar="vmtools"
pidfile="/var/run/vmware-guestd.pid"
-command="@PREFIX@/sbin/vmware-guestd"
+command="@PREFIX@/bin/vmtoolsd"
command_args="--background ${pidfile}"
load_rc_config $name
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-ag
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-ag:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-ag:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-ag:1.2 Sun Aug 31 06:36:47 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-ag Sun Oct 9 03:41:56 2016
@@ -1,13 +1,13 @@
-$NetBSD: patch-ag,v 1.2 2008/08/31 06:36:47 scottr Exp $
+$NetBSD: patch-ag,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/dynxdr/dynxdr.c.orig 2008-08-08 02:01:53.000000000 -0500
+--- lib/dynxdr/dynxdr.c.orig 2016-02-16 20:06:45.000000000 +0000
+++ lib/dynxdr/dynxdr.c
@@ -54,7 +54,7 @@ typedef struct DynXdrData {
* Mac OS X, FreeBSD and Solaris don't take a const parameter to the
* "x_getpostn" function.
*/
-#if defined(__APPLE__) || defined(__FreeBSD__) || defined(sun)
-+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(sun) | defined(__NetBSD__)
++#if defined(__APPLE__) || defined(__FreeBSD__) || defined(sun) || defined(__NetBSD__)
# define DYNXDR_GETPOS_CONST
#else
# define DYNXDR_GETPOS_CONST const
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-ah
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-ah:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-ah:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-ah:1.2 Sun Aug 31 06:36:47 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-ah Sun Oct 9 03:41:56 2016
@@ -1,49 +1,22 @@
-$NetBSD: patch-ah,v 1.2 2008/08/31 06:36:47 scottr Exp $
+$NetBSD: patch-ah,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/file/fileIO.c.orig 2008-08-08 02:01:53.000000000 -0500
+--- lib/file/fileIO.c.orig 2016-02-16 20:06:45.000000000 +0000
+++ lib/file/fileIO.c
-@@ -254,7 +254,7 @@ FileIO_Lock(FileIODescriptor *file, // I
-
- ASSERT(file);
+@@ -325,7 +325,7 @@ FileIO_Lock(FileIODescriptor *file, //
+ FileIOResolveLockBits(&access);
+ ASSERT((access & FILEIO_OPEN_LOCKED) == 0);
-#if !defined(__FreeBSD__) && !defined(sun)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__)
- if (access & FILEIO_OPEN_LOCKED) {
- int err;
-
-@@ -286,7 +286,7 @@ FileIO_Lock(FileIODescriptor *file, // I
- }
- #else
- ASSERT(file->lockToken == NULL);
--#endif // !__FreeBSD__ && !sun
-+#endif // !__FreeBSD__ && !sun && !defined(__NetBSD__)
-
- return ret;
- }
-@@ -316,7 +316,7 @@ FileIO_Unlock(FileIODescriptor *file)
+ if ((access & FILEIO_OPEN_LOCK_MANDATORY) != 0) {
+ /* Mandatory file locks are available only when opening a file */
+ ret = FILEIO_LOCK_FAILED;
+@@ -394,7 +394,7 @@ FileIO_Unlock(FileIODescriptor *file) /
ASSERT(file);
-#if !defined(__FreeBSD__) && !defined(sun)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__)
if (file->lockToken != NULL) {
- int err;
-
-@@ -333,7 +333,7 @@ FileIO_Unlock(FileIODescriptor *file)
- }
- #else
- ASSERT(file->lockToken == NULL);
--#endif // !__FreeBSD__ && !sun
-+#endif // !__FreeBSD__ && !sun && !defined(__NetBSD__)
+ int err = 0;
- return ret;
- }
-@@ -449,7 +449,7 @@ FileIO_StatsExit(const FileIODescriptor
- /*
- * Pwrite & Pread are not available in the FreeBSD tools build VM
- */
--#if !defined(VMX86_TOOLS) || !defined(__FreeBSD__)
-+#if !defined(VMX86_TOOLS) || !defined(__FreeBSD__) && !defined(__NetBSD__)
- #if defined(_WIN32) || defined(GLIBC_VERSION_21) || defined(__APPLE__)
- /*
- *----------------------------------------------------------------------
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-ai
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-ai:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-ai:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-ai:1.2 Sun Aug 31 06:36:47 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-ai Sun Oct 9 03:41:56 2016
@@ -1,8 +1,8 @@
-$NetBSD: patch-ai,v 1.2 2008/08/31 06:36:47 scottr Exp $
+$NetBSD: patch-ai,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/file/fileIOPosix.c.orig 2008-08-08 02:01:53.000000000 -0500
+--- lib/file/fileIOPosix.c.orig 2016-02-16 20:06:45.000000000 +0000
+++ lib/file/fileIOPosix.c
-@@ -62,7 +62,7 @@
+@@ -66,7 +66,7 @@
#include <dlfcn.h>
#include <sys/xattr.h>
#else
@@ -11,21 +11,3 @@ $NetBSD: patch-ai,v 1.2 2008/08/31 06:36
#include <sys/param.h>
#include <sys/mount.h>
#else
-@@ -720,7 +720,7 @@ FileIO_Create(FileIODescriptor *file,
- ASSERT(file->lockToken == NULL);
- ASSERT_ON_COMPILE(FILEIO_ERROR_LAST < 16); /* See comment in fileIO.h */
-
--#if !defined(__FreeBSD__) && !defined(sun) && !defined(N_PLAT_NLM)
-+#if !defined(__FreeBSD__) && !defined(sun) && !defined(N_PLAT_NLM) && !defined(__NetBSD__)
- /*
- * If FILEIO_OPEN_EXCLUSIVE_LOCK or FILEIO_OPEN_MULTIWRITER_LOCK or
- * (FILEIO_OPEN_ACCESS_READ | FILEIO_OPEN_LOCKED) are passed, and we are
-@@ -1248,7 +1248,7 @@ FileIO_Sync(const FileIODescriptor *file
- /*
- * readv & writev are not available in the FreeBSD or Solaris Tools builds
- */
--#if !defined(VMX86_TOOLS) || (!defined(__FreeBSD__) && !defined(sun))
-+#if !defined(VMX86_TOOLS) || (!defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__))
-
-
- /*
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-aj
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-aj:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-aj:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-aj:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-aj Sun Oct 9 03:41:56 2016
@@ -1,6 +1,6 @@
-$NetBSD: patch-aj,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-aj,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/file/fileLockPosix.c.orig 2008-08-08 02:01:53.000000000 -0500
+--- lib/file/fileLockPosix.c.orig 2016-02-16 20:06:45.000000000 +0000
+++ lib/file/fileLockPosix.c
@@ -26,7 +26,7 @@
#include <stdlib.h>
@@ -9,11 +9,11 @@ $NetBSD: patch-aj,v 1.2 2008/08/31 06:36
-#if !defined(__FreeBSD__)
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#if defined(__APPLE__)
- #include <sys/param.h>
- #include <sys/mount.h>
-@@ -121,7 +121,7 @@ FileLock_Init(int lockerPid,
- fileLockOptions.userWorld = userWorld;
- }
+ #include <sys/param.h>
+ #include <sys/mount.h>
+@@ -76,7 +76,7 @@
+ * into the log file.
+ */
-#if !defined(__FreeBSD__) && !defined(sun)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__)
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-ak
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-ak:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-ak:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-ak:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-ak Sun Oct 9 03:41:56 2016
@@ -1,17 +1,17 @@
-$NetBSD: patch-ak,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-ak,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/file/filePosix.c.orig 2008-08-08 02:01:54.000000000 -0500
+--- lib/file/filePosix.c.orig 2016-02-16 20:06:45.000000000 +0000
+++ lib/file/filePosix.c
@@ -24,7 +24,7 @@
#include <sys/types.h> /* Needed before sys/vfs.h with glibc 2.0 --hpreg */
--#if !__FreeBSD__
-+#if !__FreeBSD__ && !__NetBSD__
- # if !__APPLE__
- # include <sys/vfs.h>
- # endif
-@@ -64,7 +64,7 @@
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ # include <sys/param.h>
+ # include <sys/mount.h>
+ #else
+@@ -73,7 +73,7 @@
#include "unicodeOperations.h"
@@ -20,25 +20,16 @@ $NetBSD: patch-ak,v 1.2 2008/08/31 06:36
#if !defined(__APPLE__)
static char *FilePosixLookupMountPoint(char const *canPath, Bool *bind);
#endif
-@@ -320,7 +320,7 @@ FileAttributes(ConstUnicode pathName, /
+@@ -360,7 +360,7 @@ FileAttributes(const char *pathName, //
*----------------------------------------------------------------------
*/
-#if !defined(__FreeBSD__) && !defined(sun)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__)
Bool
- File_IsRemote(ConstUnicode pathName) // IN: Path name
+ File_IsRemote(const char *pathName) // IN: Path name
{
-@@ -626,7 +626,7 @@ File_GetTimes(ConstUnicode pathName,
- * XXX atime is almost always MAX.
- */
-
--#if defined(__FreeBSD__)
-+#if defined(__FreeBSD__) || defined(__NetBSD__)
- /*
- * FreeBSD: All supported versions have timestamps with nanosecond resolution.
- * FreeBSD 5+ has also file creation time.
-@@ -788,7 +788,7 @@ File_SetTimes(ConstUnicode pathName,
+@@ -909,7 +909,7 @@ File_SetFilePermissions(const char *path
}
@@ -47,12 +38,21 @@ $NetBSD: patch-ak,v 1.2 2008/08/31 06:36
/*
*-----------------------------------------------------------------------------
*
-@@ -1747,7 +1747,7 @@ File_IsSameFile(ConstUnicode path1, //
- }
-
-
--#endif /* !FreeBSD && !sun */
-+#endif /* !FreeBSD && !sun && !NetBSD */
-
-
- /*
+@@ -2006,7 +2006,7 @@ File_IsSameFile(const char *path1, // I
+ {
+ struct stat st1;
+ struct stat st2;
+-#if !defined(sun) // Solaris does not have statfs
++#if !defined(sun) && !defined(__NetBSD__) // Solaris does not have statfs
+ struct statfs stfs1;
+ struct statfs stfs2;
+ #endif
+@@ -2049,7 +2049,7 @@ File_IsSameFile(const char *path1, // I
+ return TRUE;
+ }
+
+-#if !defined(sun) // Solaris does not have statfs
++#if !defined(sun) && !defined(__NetBSD__) // Solaris does not have statfs
+ if (Posix_Statfs(path1, &stfs1) != 0) {
+ return FALSE;
+ }
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-aq
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-aq:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-aq:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-aq:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-aq Sun Oct 9 03:41:56 2016
@@ -1,21 +1,14 @@
-$NetBSD: patch-aq,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-aq,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/include/hgfsUtil.h.orig 2008-08-08 02:01:52.000000000 -0500
+--- lib/include/hgfsUtil.h.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/include/hgfsUtil.h
-@@ -44,6 +44,7 @@
- !defined(__timespec_defined) && \
- !defined(sun) && \
- !defined(__FreeBSD__) && \
-+ !defined(__NetBSD__) && \
+@@ -59,7 +59,8 @@
+ !defined sun && \
+ !defined __FreeBSD__ && \
!__APPLE__ && \
- !defined(_WIN32)
+- !defined _WIN32
++ !defined _WIN32 && \
++ !defined __NetBSD__
struct timespec {
-@@ -96,7 +97,7 @@ struct timespec {
- /*
- * FreeBSD (pre-6.0) does not define EPROTO, so we'll define our own error code.
- */
--#if defined(__FreeBSD__) && !defined(EPROTO)
-+#if (defined(__FreeBSD__) || defined(__NetBSD__)) && !defined(EPROTO)
- #define EPROTO (ELAST + 1)
- #endif
-
+ time_t tv_sec;
+ long tv_nsec;
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-ar
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-ar:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-ar:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-ar:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-ar Sun Oct 9 03:41:56 2016
@@ -1,13 +1,13 @@
-$NetBSD: patch-ar,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-ar,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/include/iovector.h.orig 2008-08-08 02:01:52.000000000 -0500
+--- lib/include/iovector.h.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/include/iovector.h
@@ -32,7 +32,7 @@
/*
* Ugly definition of struct iovec.
*/
--#if __linux__ || sun || __APPLE__
-+#if __linux__ || sun || __APPLE__ || __NetBSD__
+-#if defined(__linux__) || defined(sun) || defined(__APPLE__) || defined(__FreeBSD__)
++#if defined(__linux__) || defined(sun) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
#include <sys/uio.h> // for struct iovec
- #else // if __linux__ || sun || __APPLE__
+ #else
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-as
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-as:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-as:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-as:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-as Sun Oct 9 03:41:56 2016
@@ -1,57 +1,58 @@
-$NetBSD: patch-as,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-as,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/include/mntinfo.h.orig 2008-08-08 02:01:52.000000000 -0500
+--- lib/include/mntinfo.h.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/include/mntinfo.h
-@@ -34,7 +34,7 @@
+@@ -34,8 +34,11 @@
# include <limits.h>
#elif defined(__linux__)
# include <mntent.h>
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__)
# include <sys/mount.h>
++#if defined(__NetBSD__)
++# include <fstab.h>
++#endif
#endif
#include "posix.h"
-@@ -106,17 +106,27 @@
+
+@@ -106,17 +109,27 @@
# define MNTINFO_FSTYPE(mnt) mnt->mnt_type
# define MNTINFO_MNTPT(mnt) mnt->mnt_dir
# define MNTINFO_MNT_IS_RO(mnt) (hasmntopt((mnt), "rw") == NULL)
-#elif defined(__FreeBSD__) || defined(__APPLE__)
+#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__)
struct mntHandle {
-+# if defined(__NetBSD__)
++#if defined(__NetBSD__)
+ struct statvfs *mountPoints; // array of mountpoints per getmntinfo(3)
-+# else
++#else
struct statfs *mountPoints; // array of mountpoints per getmntinfo(3)
-+# endif
++#endif
int numMountPoints; // number of elements in mntArray
int mountIndex; // current location within mountPoints array
};
# define MNTFILE _PATH_FSTAB
# define MNTHANDLE struct mntHandle *
--# define MNTINFO struct statfs
--# define DECLARE_MNTINFO(name) struct statfs __ ## name; \
-+# if defined(__NetBSD__)
-+# define MNTINFO struct statvfs
-+# define DECLARE_MNTINFO(name) struct statvfs __ ## name; \
++#if defined(__NetBSD__)
++# define MNTINFO struct statvfs
++# define DECLARE_MNTINFO(name) struct statvfs __ ## name; \
+ struct statvfs *name = &__ ## name
-+# else
-+# define MNTINFO struct statfs
-+# define DECLARE_MNTINFO(name) struct statfs __ ## name; \
++#else
+ # define MNTINFO struct statfs
+ # define DECLARE_MNTINFO(name) struct statfs __ ## name; \
struct statfs *name = &__ ## name
-+# endif
++#endif
# define OPEN_MNTFILE(mode) \
({ \
-@@ -155,7 +165,11 @@ struct mntHandle {
+@@ -155,7 +168,11 @@ struct mntHandle {
# define MNTINFO_NAME(mnt) mnt->f_mntfromname
# define MNTINFO_FSTYPE(mnt) mnt->f_fstypename
# define MNTINFO_MNTPT(mnt) mnt->f_mntonname
--# define MNTINFO_MNT_IS_RO(mnt) ((mnt)->f_flags & MNT_RDONLY)
-+# if defined(__NetBSD__)
-+# define MNTINFO_MNT_IS_RO(mnt) ((mnt)->f_flag & MNT_RDONLY)
-+# else
-+# define MNTINFO_MNT_IS_RO(mnt) ((mnt)->f_flags & MNT_RDONLY)
-+# endif
++#if defined(__NetBSD__)
++# define MNTINFO_MNT_IS_RO(mnt) ((mnt)->f_flag & MNT_RDONLY)
++#else
+ # define MNTINFO_MNT_IS_RO(mnt) ((mnt)->f_flags & MNT_RDONLY)
++#endif
#else
# error "Define mount information macros for your OS type"
#endif
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-at
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-at:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-at:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-at:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-at Sun Oct 9 03:41:56 2016
@@ -1,22 +1,22 @@
-$NetBSD: patch-at,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-at,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/include/posix.h.orig 2008-08-08 02:01:52.000000000 -0500
+--- lib/include/posix.h.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/include/posix.h
-@@ -151,7 +151,7 @@ int Posix_Getgrnam_r(ConstUnicode name,
- char *buf, size_t size, struct group **pgr);
+@@ -104,7 +104,7 @@ char *Posix_MkTemp(const char *pathName)
+ * Make them NULL wrappers for all other platforms.
+ */
+ #define Posix_GetHostName gethostname
+-#if defined(__APPLE__)
++#if defined(__APPLE__) || defined(__NetBSD__)
+ #define Posix_GetHostByName gethostbyname
+ #endif
+ #define Posix_GetAddrInfo getaddrinfo
+@@ -178,7 +178,7 @@ struct mntent *Posix_Getmntent_r(FILE *f
+ int Posix_Getmntent(FILE *fp, struct mnttab *mp);
- #if !defined(sun)
--#if !defined(__APPLE__) && !defined(__FreeBSD__)
-+#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
- int Posix_Mount(ConstUnicode source, ConstUnicode target,
- const char *filesystemtype, unsigned long mountflags,
- const void *data);
-@@ -161,7 +161,7 @@ struct mntent *Posix_Getmntent(FILE *fp)
- struct mntent *Posix_Getmntent_r(FILE *fp, struct mntent *m,
- char *buf, int size);
+ #endif // !defined(sun)
+-#if !defined(__APPLE__)
++#if !defined(__APPLE__) && !defined(__NetBSD__)
--#endif // !defined(__APPLE__) && !defined(__FreeBSD__)
-+#endif // !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
- #else // !defined(sun)
- int Posix_Getmntent(FILE *fp, struct mnttab *mp);
+ /*
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-au
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-au:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-au:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-au:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-au Sun Oct 9 03:41:56 2016
@@ -1,37 +1,13 @@
-$NetBSD: patch-au,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-au,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/include/su.h.orig 2008-08-08 02:01:52.000000000 -0500
+--- lib/include/su.h.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/include/su.h
-@@ -51,7 +51,7 @@ Bool Id_AuthSet(void const *buf, size_t
- Bool Id_AuthCheck(char const *right,
- char const *localizedDescription);
+@@ -50,7 +50,7 @@ Bool Id_AuthCheck(char const *right,
+ char const *localizedDescription,
+ Bool showDialogIfNeeded);
--#elif (defined(__linux__) || defined(sun) || defined(__FreeBSD__)) && !defined(N_PLAT_NLM)
-+#elif (defined(__linux__) || defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)) && !defined(N_PLAT_NLM)
+-#elif (defined(__linux__) || defined(sun) || defined(__FreeBSD__))
++#elif (defined(__linux__) || defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__))
#include <sys/types.h>
#include <unistd.h>
-@@ -87,7 +87,11 @@ int Id_SetRESGid(gid_t rgid, gid_t egid,
- static INLINE int
- Id_SetEUid(uid_t euid)
- {
-+#if defined(__NetBSD__)
-+ return seteuid(euid);
-+#else
- return Id_SetRESUid((uid_t)-1, euid, (uid_t)-1);
-+#endif
- }
-
-
-@@ -111,7 +115,11 @@ Id_SetEUid(uid_t euid)
- static INLINE int
- Id_SetEGid(gid_t egid)
- {
-+#if defined(__NetBSD__)
-+ return setegid(egid);
-+#else
- return Id_SetRESGid((gid_t)-1, egid, (gid_t)-1);
-+#endif
- }
-
- #define IsSuperUser() (0 == geteuid())
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-av
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-av:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-av:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-av:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-av Sun Oct 9 03:41:56 2016
@@ -1,22 +1,14 @@
-$NetBSD: patch-av,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-av,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/include/util.h.orig 2008-08-08 02:01:52.000000000 -0500
+--- lib/include/util.h.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/include/util.h
-@@ -55,7 +55,7 @@
- /*
- * Define the Util_ThreadID type.
- */
--#if defined(__APPLE__) || defined(__FreeBSD__)
-+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
- #include <pthread.h>
- typedef pthread_t Util_ThreadID;
- #elif defined(_WIN32)
-@@ -119,7 +119,7 @@ EXTERN char *Util_GetSafeTmpDir(Bool use
- EXTERN int Util_MakeSafeTemp(ConstUnicode tag,
- Unicode *presult);
-
--#if defined(__linux__) || defined(__FreeBSD__) || defined(sun)
-+#if defined(__linux__) || defined(__FreeBSD__) || defined(sun) || defined(__NetBSD__)
- EXTERN Bool Util_GetProcessName(pid_t pid, char *bufOut, size_t bufOutSize);
+@@ -67,6 +67,9 @@
+ #elif defined(__FreeBSD__)
+ # include <pthread.h>
+ typedef pthread_t Util_ThreadID;
++#elif defined(__NetBSD__)
++# include <pthread.h>
++ typedef pthread_t Util_ThreadID;
+ #else
+ # error "Need typedef for Util_ThreadID"
#endif
-
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-ay
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-ay:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-ay:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-ay:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-ay Sun Oct 9 03:41:56 2016
@@ -1,13 +1,13 @@
-$NetBSD: patch-ay,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-ay,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/include/vm_product.h.orig 2008-08-08 02:01:52.000000000 -0500
+--- lib/include/vm_product.h.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/include/vm_product.h
-@@ -498,6 +498,8 @@
- # define PRODUCT_NAME_PLATFORM PRODUCT_NAME " for Windows"
- #elif defined(__FreeBSD__)
- # define PRODUCT_NAME_PLATFORM PRODUCT_NAME " for FreeBSD"
+@@ -514,6 +514,8 @@
+ # define PRODUCT_NAME_PLATFORM PRODUCT_NAME " for Mac OS X"
+ #elif defined __ANDROID__
+ # define PRODUCT_NAME_PLATFORM PRODUCT_NAME " for Android"
+#elif defined(__NetBSD__)
+# define PRODUCT_NAME_PLATFORM PRODUCT_NAME " for NetBSD"
- #elif defined(sun)
- # define PRODUCT_NAME_PLATFORM PRODUCT_NAME " for Solaris"
- #elif defined(__APPLE__)
+ #else
+ # ifdef VMX86_TOOLS
+ # error "Define a product string for this platform."
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-az
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-az:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-az:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-az:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-az Sun Oct 9 03:41:56 2016
@@ -1,8 +1,8 @@
-$NetBSD: patch-az,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-az,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/include/vmblock.h.orig 2008-08-08 02:01:52.000000000 -0500
+--- lib/include/vmblock.h.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/include/vmblock.h
-@@ -25,12 +25,13 @@
+@@ -83,11 +83,11 @@
#ifndef _VMBLOCK_H_
#define _VMBLOCK_H_
@@ -14,25 +14,35 @@ $NetBSD: patch-az,v 1.2 2008/08/31 06:36
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
# include <sys/param.h>
-+# include <sys/ioctl.h>
#endif
- #define VMBLOCK_FS_NAME "vmblock"
-@@ -54,7 +55,7 @@
+@@ -164,7 +164,7 @@
+ "/" VMBLOCK_CONTROL_DEVNAME
# define VMBLOCK_DEVICE_MODE O_WRONLY
- # define VMBLOCK_CONTROL(fd, op, path) write(fd, path, op)
-#elif defined(sun) || defined(__FreeBSD__)
+#elif defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)
+ # define VMBLOCK_FS_NAME "vmblock"
# define VMBLOCK_MOUNT_POINT "/var/run/" VMBLOCK_FS_NAME
- # define VMBLOCK_DEVICE VMBLOCK_MOUNT_POINT
- # define VMBLOCK_DEVICE_MODE O_RDONLY
-@@ -71,7 +72,7 @@
+ # define VMBLOCK_FS_ROOT VMBLOCK_MOUNT_POINT
+@@ -196,6 +196,20 @@
+ # define VMBLOCK_LIST_FILEBLOCKS _IO('Z', 3)
+ # define VMBLOCK_PURGE_FILEBLOCKS _IO('Z', 4)
# endif
- # define VMBLOCK_CONTROL(fd, op, path) ioctl(fd, op, path)
++# elif defined(__NetBSD__) /* } else if (NetBSD) { */
++ /*
++ * Similar to Solaris, construct ioctl(2) commands for block operations.
++ * Since the FreeBSD implementation does not change the user's passed-in
++ * data (pathname), we use the _IOW macro to define commands which write
++ * to the kernel. (As opposed to _IOR or _IOWR.) Groups 'v' and 'V'
++ * are taken by terminal drivers, so I opted for group 'Z'.
++ */
++# define VMBLOCK_ADD_FILEBLOCK _IOW('z', 1, char[MAXPATHLEN] )
++# define VMBLOCK_DEL_FILEBLOCK _IOW('z', 2, char[MAXPATHLEN] )
++# ifdef VMX86_DEVEL
++# define VMBLOCK_LIST_FILEBLOCKS _IO('z', 3)
++# define VMBLOCK_PURGE_FILEBLOCKS _IO('z', 4)
++# endif
--# elif defined(__FreeBSD__) /* } else if (FreeBSD) { */
-+# elif defined(__FreeBSD__) || defined(__NetBSD__) /* } else if (FreeBSD) { */
- /*
- * Similar to Solaris, construct ioctl(2) commands for block operations.
- * Since the FreeBSD implementation does not change the user's passed-in
+ # endif /* } */
+ #else
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-ba
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-ba:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-ba:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-ba:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-ba Sun Oct 9 03:41:56 2016
@@ -1,17 +1,8 @@
-$NetBSD: patch-ba,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-ba,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/misc/codesetOld.c.orig 2008-08-08 02:01:54.000000000 -0500
+--- lib/misc/codesetOld.c.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/misc/codesetOld.c
-@@ -70,7 +70,7 @@
- #endif
-
-
--#if defined(__FreeBSD__) || defined(sun)
-+#if defined(__FreeBSD__) || defined(sun) || defined(__NetBSD__)
- static const char nul[] = {'\0', '\0'};
- #else
- static const wchar_t nul = L'\0';
-@@ -735,7 +735,7 @@ CodeSetOldGetCodeSetFromLocale(void)
+@@ -670,7 +670,7 @@ CodeSetOldGetCodeSetFromLocale(void)
codeset = Util_SafeStrdup(nl_langinfo_l(CODESET, new));
freelocale(new);
@@ -19,4 +10,4 @@ $NetBSD: patch-ba,v 1.2 2008/08/31 06:36
+#elif defined(sun) || defined(__NetBSD__)
char *locale = setlocale(LC_CTYPE, NULL);
- if (!setlocale(LC_CTYPE, "")) {
+
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-bb
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-bb:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-bb:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-bb:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-bb Sun Oct 9 03:41:56 2016
@@ -1,62 +1,49 @@
-$NetBSD: patch-bb,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-bb,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/misc/idLinux.c.orig 2008-08-08 02:01:54.000000000 -0500
+--- lib/misc/idLinux.c.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/misc/idLinux.c
-@@ -99,7 +99,7 @@ static AuthorizationRef IdAuthCreateWith
- #endif
-
-
--#if !defined(__APPLE__) && !defined(sun) && !defined(__FreeBSD__)
-+#if !defined(__APPLE__) && !defined(sun) && !defined(__FreeBSD__) && !defined(__NetBSD__)
- /*
- *----------------------------------------------------------------------------
- *
-@@ -163,6 +163,9 @@ Id_SetGid(gid_t egid) // IN: new egid
- #elif defined(__FreeBSD__)
- Warning("XXXFreeBSD: implement %s\n", __FUNCTION__);
- return -1;
-+#elif defined(__NetBSD__)
-+ Warning("XXXNetBSD: implement %s\n", __FUNCTION__);
-+ return -1;
- #else
+@@ -119,7 +119,7 @@ static AuthorizationRef IdAuthCreateWith
+ int
+ Id_SetUid(uid_t euid) // IN: new euid
+ {
+-#if defined(__FreeBSD__) || defined(sun)
++#if defined(__FreeBSD__) || defined(sun) || defined(__NetBSD__)
+ return setuid(euid);
+ #elif defined(linux) || defined __ANDROID__
if (uid32) {
- int r = syscall(SYS_setgid32, egid);
-@@ -207,6 +210,9 @@ Id_SetRESUid(uid_t uid, // IN: new uid
- #elif defined(__FreeBSD__)
- Warning("XXXFreeBSD: implement %s\n", __FUNCTION__);
+@@ -162,7 +162,7 @@ Id_SetGid(gid_t egid) // IN: new egid
+ Warning("XXXMACOS: implement %s\n", __func__);
+
return -1;
-+#elif defined(__NetBSD__)
-+ Warning("XXXNetBSD: implement %s\n", __FUNCTION__);
-+ return -1;
+-#elif defined(sun) || defined(__FreeBSD__)
++#elif defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)
+ return setgid(egid);
#else
if (uid32) {
- int r = syscall(SYS_setresuid32, uid, euid, suid);
-@@ -249,6 +255,9 @@ Id_SetRESGid(gid_t gid, // IN: new gid
- #elif defined(__FreeBSD__)
- Warning("XXXFreeBSD: implement %s\n", __FUNCTION__);
+@@ -365,7 +365,7 @@ Id_SetREUid(uid_t uid, // IN: new uid
+ #if defined(__APPLE__)
+ Warning("XXXMACOS: implement %s\n", __func__);
return -1;
-+#elif defined(__NetBSD__)
-+ Warning("XXXNetBSD: implement %s\n", __FUNCTION__);
-+ return -1;
+-#elif defined(sun) || defined(__FreeBSD__)
++#elif defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)
+ return setreuid(uid, euid);
#else
if (uid32) {
- int r = syscall(SYS_setresgid32, gid, egid, sgid);
-@@ -295,6 +304,9 @@ Id_SetREUid(uid_t uid, // IN: new uid
- #elif defined(__FreeBSD__)
- Warning("XXXFreeBSD: implement %s\n", __FUNCTION__);
- return -1;
-+#elif defined(__NetBSD__)
-+ Warning("XXXNetBSD: implement %s\n", __FUNCTION__);
-+ return -1;
+@@ -406,7 +406,7 @@ int
+ Id_SetREGid(gid_t gid, // IN: new gid
+ gid_t egid) // IN: new effective gid
+ {
+-#if defined(sun) || defined(__FreeBSD__)
++#if defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)
+ return setregid(gid, egid);
#else
if (uid32) {
- int r = syscall(SYS_setreuid32, uid, euid);
-@@ -308,7 +320,7 @@ Id_SetREUid(uid_t uid, // IN: new uid
- }
-
-
--#if !defined(__APPLE__) && !defined(sun) && !defined(__FreeBSD__)
-+#if !defined(__APPLE__) && !defined(sun) && !defined(__FreeBSD__) && !defined(__NetBSD__)
- /*
- *----------------------------------------------------------------------------
- *
+@@ -1057,7 +1057,7 @@ IdIsSetUGid(void)
+ Bool
+ Id_IsSetUGid(void)
+ {
+-#if defined(__APPLE__) || defined(__FreeBSD__) || defined(sun)
++#if defined(__APPLE__) || defined(__FreeBSD__) || defined(sun) || defined(__NetBSD__)
+ uid_t ruid = getuid();
+ uid_t euid = geteuid();
+ gid_t rgid = getgid();
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-bc
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-bc:1.2 pkgsrc/sysutils/open-vm-tools/patches/patch-bc:1.3
--- pkgsrc/sysutils/open-vm-tools/patches/patch-bc:1.2 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-bc Sun Oct 9 03:41:56 2016
@@ -1,8 +1,8 @@
-$NetBSD: patch-bc,v 1.2 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-bc,v 1.3 2016/10/09 03:41:56 ryoon Exp $
---- lib/misc/posixPosix.c.orig 2008-08-08 02:01:54.000000000 -0500
+--- lib/misc/posixPosix.c.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/misc/posixPosix.c
-@@ -50,7 +50,7 @@
+@@ -47,7 +47,7 @@
#include <sys/param.h>
#include <sys/mount.h>
#include <CoreFoundation/CoreFoundation.h>
@@ -10,48 +10,17 @@ $NetBSD: patch-bc,v 1.2 2008/08/31 06:36
+#elif defined(__FreeBSD__) || defined(__NetBSD__)
#include <sys/param.h>
#include <sys/mount.h>
- #elif !defined(N_PLAT_NLM)
-@@ -77,6 +77,7 @@
- # endif
-
- #include "vmware.h"
-+#include "vm_atomic.h"
- #include "posixInt.h"
- #if defined(sun)
- #include "hashTable.h" // For setenv emulation
-@@ -1578,7 +1579,7 @@ GetpwInternal(struct passwd *pw) // IN:
- spw.pw_gecos = NULL;
- free(spw.pw_shell);
- spw.pw_shell = NULL;
--#if defined(__FreeBSD__)
-+#if defined(__FreeBSD__) || defined(__NetBSD__)
- free(spw.pw_class);
- spw.pw_class = NULL;
- #endif
-@@ -1586,10 +1587,12 @@ GetpwInternal(struct passwd *pw) // IN:
- /* Fill out structure with new values. */
- spw.pw_uid = pw->pw_uid;
- spw.pw_gid = pw->pw_gid;
--#if defined(__FreeBSD__)
-+#if defined(__FreeBSD__) || defined(__NetBSD__)
- spw.pw_change = pw->pw_change;
- spw.pw_expire = pw->pw_expire;
-+# if defined(__FreeBSD__)
- spw.pw_fields = pw->pw_fields;
-+# endif
+ #elif defined(sun)
+@@ -65,7 +65,7 @@
+ #define VM_SYSTEM_HAS_GETGRNAM_R 1
#endif
- #if !defined(sun)
-@@ -1617,7 +1620,7 @@ GetpwInternal(struct passwd *pw) // IN:
- (spw.pw_shell = Unicode_Alloc(pw->pw_shell, STRING_ENCODING_DEFAULT)) == NULL) {
- goto exit;
- }
--#if defined(__FreeBSD__)
-+#if defined(__FreeBSD__) || defined(__NetBSD__)
- if (pw->pw_class &&
- (spw.pw_class = Unicode_Alloc(pw->pw_class, STRING_ENCODING_DEFAULT)) == NULL) {
- goto exit;
-@@ -1634,7 +1637,7 @@ exit:
+-# if defined(__FreeBSD__)
++# if defined(__FreeBSD__) || defined(__NetBSD__)
+ # include <sys/syslimits.h> // PATH_MAX
+ # else
+ # include <limits.h> // PATH_MAX
+@@ -1585,7 +1585,7 @@ Posix_Putenv(char *name) // IN:
}
@@ -60,16 +29,7 @@ $NetBSD: patch-bc,v 1.2 2008/08/31 06:36
/*
*----------------------------------------------------------------------
-@@ -1902,7 +1905,7 @@ PasswdCopy(struct passwd *orig, // IN
- if (!CopyFieldIntoBuf(orig->pw_shell, &new->pw_shell, &buf, &bufLen)) {
- return NULL;
- }
--#ifdef __FreeBSD__
-+#if defined(__FreeBSD__) || defined(__NetBSD__)
- if (!CopyFieldIntoBuf(orig->pw_class, &new->pw_class, &buf, &bufLen)) {
- return NULL;
- }
-@@ -2647,7 +2650,7 @@ Posix_Getgrnam_r(ConstUnicode name, /
+@@ -1746,7 +1746,7 @@ Posix_Unsetenv(const char *name) // IN:
#if !defined(sun) // {
@@ -78,12 +38,3 @@ $NetBSD: patch-bc,v 1.2 2008/08/31 06:36
/*
*----------------------------------------------------------------------
*
-@@ -3030,7 +3033,7 @@ Posix_Fprintf(FILE *stream,
- }
-
-
--#endif // } !defined(__APPLE__) && !defined(__FreeBSD)
-+#endif // } !defined(__APPLE__) && !defined(__FreeBSD) && !defined(__NetBSD__)
-
-
- #else // } !defined(sun) {
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-bd
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-bd:1.1 pkgsrc/sysutils/open-vm-tools/patches/patch-bd:1.2
--- pkgsrc/sysutils/open-vm-tools/patches/patch-bd:1.1 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-bd Sun Oct 9 03:41:56 2016
@@ -1,22 +1,20 @@
-$NetBSD: patch-bd,v 1.1 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-bd,v 1.2 2016/10/09 03:41:56 ryoon Exp $
---- lib/misc/util_misc.c.orig 2008-08-08 02:01:54.000000000 -0500
+--- lib/misc/util_misc.c.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/misc/util_misc.c
-@@ -47,7 +47,7 @@
- # include <pwd.h>
- #endif
+@@ -488,6 +488,15 @@ Util_GetCurrentThreadId(void)
+ ASSERT_ON_COMPILE(sizeof(Util_ThreadID) >= sizeof(pthread_t));
--#if defined(__APPLE__) || defined(__FreeBSD__)
-+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
- #include <pthread.h>
- #endif
-
-@@ -481,7 +481,7 @@ Util_GetCurrentThreadId(void)
- tid = getpid();
- ASSERT(tid != (pid_t)-1);
- return tid;
--#elif defined(__APPLE__) || defined(__FreeBSD__)
-+#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
- ASSERT_ON_COMPILE(sizeof(Util_ThreadID) == sizeof(pthread_t));
return pthread_self();
++#elif defined(__NetBSD__)
++ /*
++ * These OSes do not implement OS-native thread IDs. You probably
++ * didn't need one anyway, but guess that pthread_self works
++ * well enough.
++ */
++ ASSERT_ON_COMPILE(sizeof(Util_ThreadID) >= sizeof(pthread_t));
++
++ return pthread_self();
#elif defined(_WIN32)
+ return GetCurrentThreadId();
+ #else
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-be
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-be:1.1 pkgsrc/sysutils/open-vm-tools/patches/patch-be:1.2
--- pkgsrc/sysutils/open-vm-tools/patches/patch-be:1.1 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-be Sun Oct 9 03:41:56 2016
@@ -1,6 +1,6 @@
-$NetBSD: patch-be,v 1.1 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-be,v 1.2 2016/10/09 03:41:56 ryoon Exp $
---- lib/netUtil/netUtilLinux.c.orig 2008-08-08 02:01:53.000000000 -0500
+--- lib/netUtil/netUtilLinux.c.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/netUtil/netUtilLinux.c
@@ -31,7 +31,7 @@
#endif
@@ -11,30 +11,3 @@ $NetBSD: patch-be,v 1.1 2008/08/31 06:36
# error This file should not be compiled
#endif
-@@ -58,7 +58,7 @@
- #include <net/if.h>
- #include <sys/ioctl.h>
-
--#if defined(__FreeBSD__) || defined(__APPLE__)
-+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__)
- #include "ifaddrs.h"
- #endif
-
-@@ -94,7 +94,7 @@
- *----------------------------------------------------------------------
- */
-
--#if !defined(__FreeBSD__) && !defined(__APPLE__) /* { */
-+#if !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__NetBSD__) /* { */
- char *
- NetUtil_GetPrimaryIP(void)
- {
-@@ -168,7 +168,7 @@ error:
- return NULL;
- }
-
--#else /* } FreeBSD || APPLE { */
-+#else /* } FreeBSD || APPLE || NetBSD { */
-
- char *
- NetUtil_GetPrimaryIP(void)
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-bf
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-bf:1.1 pkgsrc/sysutils/open-vm-tools/patches/patch-bf:1.2
--- pkgsrc/sysutils/open-vm-tools/patches/patch-bf:1.1 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-bf Sun Oct 9 03:41:56 2016
@@ -1,31 +1,197 @@
-$NetBSD: patch-bf,v 1.1 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-bf,v 1.2 2016/10/09 03:41:56 ryoon Exp $
---- lib/procMgr/procMgrPosix.c.orig 2008-08-08 02:01:53.000000000 -0500
+--- lib/procMgr/procMgrPosix.c.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/procMgr/procMgrPosix.c
-@@ -31,7 +31,7 @@
+@@ -27,7 +27,7 @@
// pull in setresuid()/setresgid() if possible
#define _GNU_SOURCE
#include <unistd.h>
-#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
#include <asm/param.h>
- #include <locale.h>
- #include <sys/stat.h>
-@@ -158,7 +158,7 @@ ProcMgr_ProcList *
+ #endif
+ #if !defined(sun) && !defined(__APPLE__)
+@@ -47,13 +47,13 @@
+ #include <time.h>
+ #include <grp.h>
+ #include <sys/syscall.h>
+-#if defined(linux) || defined(__FreeBSD__) || defined(HAVE_SYS_USER_H)
++#if defined(linux) || defined(__FreeBSD__) || defined(HAVE_SYS_USER_H) || defined(__NetBSD__)
+ // sys/param.h is required on FreeBSD before sys/user.h
+ # include <sys/param.h>
+ // Pull in PAGE_SIZE/PAGE_SHIFT defines ahead of vm_basic_defs.h
+ # include <sys/user.h>
+ #endif
+-#if defined (__FreeBSD__)
++#if defined (__FreeBSD__) || defined(__NetBSD__)
+ #include <kvm.h>
+ #include <limits.h>
+ #include <paths.h>
+@@ -633,7 +633,7 @@ abort:
+ *----------------------------------------------------------------------
+ */
+
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ ProcMgrProcInfoArray *
ProcMgr_ListProcesses(void)
{
- ProcMgr_ProcList *procList = NULL;
--#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
-+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
- Bool failed = FALSE;
- DynBuf dbProcId;
- DynBuf dbProcCmd;
-@@ -453,7 +453,7 @@ abort:
- ProcMgr_FreeProcList(procList);
- procList = NULL;
- }
--#endif // !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
-+#endif // !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
+@@ -641,7 +641,11 @@ ProcMgr_ListProcesses(void)
+ ProcMgrProcInfo procInfo;
+ Bool failed = TRUE;
+ static kvm_t *kd;
++#if defined(__NetBSD__)
++ struct kinfo_proc2 *kp;
++#else
+ struct kinfo_proc *kp;
++#endif
+ char errbuf[_POSIX2_LINE_MAX];
+ int i;
+ int nentries=-1;
+@@ -664,7 +668,12 @@ ProcMgr_ListProcesses(void)
+ /*
+ * Get the list of process info structs
+ */
++#if defined(__NetBSD__)
++ int temp;
++ kp = kvm_getproc2(kd, KERN_PROC_ALL, flag, temp, &nentries);
++#else
+ kp = kvm_getprocs(kd, KERN_PROC_PROC, flag, &nentries);
++#endif
+ if (kp == NULL || nentries <= 0) {
+ Warning("%s: failed to get proc infos with error: %s\n",
+ __FUNCTION__, kvm_geterr(kd));
+@@ -692,14 +701,26 @@ ProcMgr_ListProcesses(void)
+ /*
+ * Store the pid of the process.
+ */
++#if defined(__NetBSD__)
++ procInfo.procId = kp->p_pid;
++#else
+ procInfo.procId = kp->ki_pid;
++#endif
+
+ /*
+ * Store the owner of the process.
+ */
++#if defined(__NetBSD__)
++ pwd = getpwuid(kp->p_uid);
++#else
+ pwd = getpwuid(kp->ki_uid);
++#endif
+ procInfo.procOwner = (NULL == pwd)
++#if defined(__NetBSD__)
++ ? Str_SafeAsprintf(NULL, "%d", (int) kp->p_uid)
++#else
+ ? Str_SafeAsprintf(NULL, "%d", (int) kp->ki_uid)
++#endif
+ : Unicode_Alloc(pwd->pw_name, STRING_ENCODING_DEFAULT);
+
+ /*
+@@ -707,15 +728,24 @@ ProcMgr_ListProcesses(void)
+ * maximum allowed size, then we can save it right now. Else we shall
+ * need to try and parse it from the entire command line.
+ */
++#if defined(__NetBSD__)
++ if (strlen(kp->p_comm) + 1 < sizeof kp->p_comm) {
++ procInfo.procCmdName = Unicode_Alloc(kp->p_comm, STRING_ENCODING_DEFAULT);
++#else
+ if (strlen(kp->ki_comm) + 1 < sizeof kp->ki_comm) {
+ procInfo.procCmdName = Unicode_Alloc(kp->ki_comm, STRING_ENCODING_DEFAULT);
++#endif
+ cmdNameLookup = FALSE;
+ }
+
+ /*
+ * Store the command line string of the process.
+ */
++#if defined(__NetBSD__)
++ cmdLineTemp = kvm_getargv2(kd, kp, 0);
++#else
+ cmdLineTemp = kvm_getargv(kd, kp, 0);
++#endif
+ if (cmdLineTemp != NULL) {
+ /*
+ * Flatten the argument list to get cmd & all params.
+@@ -771,9 +801,15 @@ ProcMgr_ListProcesses(void)
+ procInfo.procCmdLine = DynBuf_Detach(&dbuf);
+ DynBuf_Destroy(&dbuf);
+ } else {
++#if defined(__NetBSD__)
++ procInfo.procCmdLine = Unicode_Alloc(kp->p_comm, STRING_ENCODING_DEFAULT);
++ if (cmdNameLookup) {
++ procInfo.procCmdName = Unicode_Alloc(kp->p_comm, STRING_ENCODING_DEFAULT);
++#else
+ procInfo.procCmdLine = Unicode_Alloc(kp->ki_comm, STRING_ENCODING_DEFAULT);
+ if (cmdNameLookup) {
+ procInfo.procCmdName = Unicode_Alloc(kp->ki_comm, STRING_ENCODING_DEFAULT);
++#endif
+ cmdNameLookup = FALSE;
+ }
+ }
+@@ -781,7 +817,11 @@ ProcMgr_ListProcesses(void)
+ /*
+ * Store the start time of the process
+ */
++#if defined(__NetBSD__)
++ procInfo.procStartTime = kp->p_rtime_sec;
++#else
+ procInfo.procStartTime = kp->ki_start.tv_sec;
++#endif
+
+ /*
+ * Store the process info pointer into a list buffer.
+@@ -811,7 +851,7 @@ abort:
return procList;
}
+-#endif // defined(__FreeBSD__)
++#endif // defined(__NetBSD__)
+
+
+ #if defined(__APPLE__)
+@@ -2033,7 +2073,7 @@ ProcMgr_Free(ProcMgr_AsyncProc *asyncPro
+ free(asyncProc);
+ }
+
+-#if defined(linux) || defined(__FreeBSD__) || defined(__APPLE__)
++#if defined(linux) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__)
+
+ /*
+ *----------------------------------------------------------------------
+@@ -2106,7 +2146,7 @@ ProcMgr_ImpersonateUserStart(const char
+ // first change group
+ #if defined(USERWORLD)
+ ret = Id_SetREGid(ppw->pw_gid, ppw->pw_gid);
+-#elif defined(__APPLE__)
++#elif defined(__APPLE__) || defined(__NetBSD__)
+ ret = setregid(ppw->pw_gid, ppw->pw_gid);
+ #else
+ ret = setresgid(ppw->pw_gid, ppw->pw_gid, root_gid);
+@@ -2125,7 +2165,7 @@ ProcMgr_ImpersonateUserStart(const char
+ // now user
+ #if defined(USERWORLD)
+ ret = Id_SetREUid(ppw->pw_uid, ppw->pw_uid);
+-#elif defined(__APPLE__)
++#elif defined(__APPLE__) || defined(__NetBSD__)
+ ret = setreuid(ppw->pw_uid, ppw->pw_uid);
+ #else
+ ret = setresuid(ppw->pw_uid, ppw->pw_uid, 0);
+@@ -2187,7 +2227,7 @@ ProcMgr_ImpersonateUserStop(void)
+ // first change back user
+ #if defined(USERWORLD)
+ ret = Id_SetREUid(ppw->pw_uid, ppw->pw_uid);
+-#elif defined(__APPLE__)
++#elif defined(__APPLE__) || defined(__NetBSD__)
+ ret = setreuid(ppw->pw_uid, ppw->pw_uid);
+ #else
+ ret = setresuid(ppw->pw_uid, ppw->pw_uid, 0);
+@@ -2200,7 +2240,7 @@ ProcMgr_ImpersonateUserStop(void)
+ // now group
+ #if defined(USERWORLD)
+ ret = Id_SetREGid(ppw->pw_gid, ppw->pw_gid);
+-#elif defined(__APPLE__)
++#elif defined(__APPLE__) || defined(__NetBSD__)
+ ret = setregid(ppw->pw_gid, ppw->pw_gid);
+ #else
+ ret = setresgid(ppw->pw_gid, ppw->pw_gid, ppw->pw_gid);
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-bh
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-bh:1.1 pkgsrc/sysutils/open-vm-tools/patches/patch-bh:1.2
--- pkgsrc/sysutils/open-vm-tools/patches/patch-bh:1.1 Sun Aug 31 06:36:48 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-bh Sun Oct 9 03:41:56 2016
@@ -1,6 +1,6 @@
-$NetBSD: patch-bh,v 1.1 2008/08/31 06:36:48 scottr Exp $
+$NetBSD: patch-bh,v 1.2 2016/10/09 03:41:56 ryoon Exp $
---- lib/system/systemLinux.c.orig 2008-08-08 02:01:53.000000000 -0500
+--- lib/system/systemLinux.c.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/system/systemLinux.c
@@ -26,7 +26,7 @@
*
@@ -11,21 +11,3 @@ $NetBSD: patch-bh,v 1.1 2008/08/31 06:36
# error This file should not be compiled
#endif
-@@ -55,7 +55,7 @@
- #include <net/if.h>
- #include <sys/ioctl.h>
-
--#ifdef __FreeBSD__
-+#if defined(__FreeBSD__) || defined(__NetBSD__)
- #include "ifaddrs.h"
- #endif
-
-@@ -352,7 +352,7 @@ System_Shutdown(Bool reboot) // IN: "re
- if (reboot) {
- cmd = "shutdown -r now";
- } else {
--#if __FreeBSD__
-+#if defined(__FreeBSD__) || defined(__NetBSD__)
- cmd = "shutdown -p now";
- #else
- cmd = "shutdown -h now";
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-bm
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-bm:1.1 pkgsrc/sysutils/open-vm-tools/patches/patch-bm:1.2
--- pkgsrc/sysutils/open-vm-tools/patches/patch-bm:1.1 Sun Aug 31 06:36:49 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-bm Sun Oct 9 03:41:56 2016
@@ -1,6 +1,6 @@
-$NetBSD: patch-bm,v 1.1 2008/08/31 06:36:49 scottr Exp $
+$NetBSD: patch-bm,v 1.2 2016/10/09 03:41:56 ryoon Exp $
---- lib/wiper/wiperPosix.c.orig 2008-08-08 02:01:55.000000000 -0500
+--- lib/wiper/wiperPosix.c.orig 2016-02-16 20:06:46.000000000 +0000
+++ lib/wiper/wiperPosix.c
@@ -23,7 +23,7 @@
*
@@ -11,49 +11,42 @@ $NetBSD: patch-bm,v 1.1 2008/08/31 06:36
#error This file should not be compiled on this platform.
#endif
-@@ -31,12 +31,12 @@
- #include <sys/stat.h>
- #if defined(__linux__) || defined(sun)
- # include <sys/vfs.h>
--#elif defined(__FreeBSD__) || defined(__APPLE__)
-+#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__)
- # include <sys/param.h>
- # include <sys/ucred.h>
- # include <sys/mount.h>
- # include <fstab.h>
--# if __FreeBSD_version >= 500000
-+# if defined(__FreeBSD__) && __FreeBSD_version >= 500000
- # include <libgen.h>
- # endif /* __FreeBSD_version < 500000 */
- #endif
-@@ -66,7 +66,7 @@
+@@ -70,7 +70,7 @@
+ /* Number of device numbers to store for device-mapper */
+ #define WIPER_MAX_DM_NUMBERS 8
- #if defined(sun) || defined(__linux__)
+-#if defined(sun) || defined(__linux__)
++#if defined(sun) || defined(__linux__) || defined(__NetBSD__)
# define PROCFS "proc"
--#elif defined(__FreeBSD__) || defined(__APPLE__)
-+#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__)
+ #elif defined(__FreeBSD__) || defined(__APPLE__)
# define PROCFS "procfs"
- #endif
+@@ -158,6 +158,16 @@ static unsigned char *WiperGetSpace(Wipe
+ static void WiperClean(WiperState *state);
+
-@@ -196,7 +196,7 @@ WiperIsDiskDevice(MNTINFO *mnt,
- return TRUE;
++#if defined(__NetBSD__)
++#define MAX_DISK_MAJORS 256 /* should be enough for now */
++#define NUM_PRESEEDED_MAJORS 10 /* must match the below */
++static unsigned int knownDiskMajor[MAX_DISK_MAJORS] = {
++16, 20, 18, 14, 4,
++0, 2, 19, 142, 168
++};
++static int numDiskMajors = NUM_PRESEEDED_MAJORS;
++#endif
++
+ #if defined(__linux__)
+
+ #define MAX_DISK_MAJORS 256 /* should be enough for now */
+@@ -310,7 +320,7 @@ WiperIsDiskDevice(MNTINFO *mnt,
+ return FALSE;
}
--#elif defined(__FreeBSD__) || defined(__APPLE__) /* } FreeBSD { */
-+#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__) /* } FreeBSD { */
+-#elif defined(__linux__) /* } linux { */
++#elif defined(__linux__) || defined(__NetBSD__) /* } linux { */
- static INLINE Bool
+ static Bool
WiperIsDiskDevice(MNTINFO *mnt, // IN: file system being considered
-@@ -210,7 +210,7 @@ WiperIsDiskDevice(MNTINFO *mnt,
- * function, as a whole, does not even apply to OS X, so this caveat is
- * only minor.
- */
--#if __FreeBSD_version < 500000
-+#if defined(__NetBSD__) || __FreeBSD_version < 500000
- /*
- * Before FreeBSD 5, device nodes had static major/minor numbers.
- * (FreeBSD 5 included devfs which got rid of this concept.) So
-@@ -511,14 +511,14 @@ WiperSinglePartition_GetSpace(const Wipe
+@@ -571,7 +581,7 @@ WiperSinglePartition_GetSpace(const Wipe
uint64 *free, // OUT
uint64 *total) // OUT
{
@@ -62,7 +55,8 @@ $NetBSD: patch-bm,v 1.1 2008/08/31 06:36
struct statvfs statfsbuf;
#else
struct statfs statfsbuf;
- #endif
+@@ -580,7 +590,7 @@ WiperSinglePartition_GetSpace(const Wipe
+
ASSERT(p);
-#ifdef sun
@@ -70,3 +64,12 @@ $NetBSD: patch-bm,v 1.1 2008/08/31 06:36
if (statvfs(p->mountPoint, &statfsbuf) < 0) {
#else
if (Posix_Statfs(p->mountPoint, &statfsbuf) < 0) {
+@@ -588,7 +598,7 @@ WiperSinglePartition_GetSpace(const Wipe
+ return "Unable to statfs() the mount point";
+ }
+
+-#ifdef sun
++#if defined(sun) || defined(__NetBSD__)
+ blockSize = statfsbuf.f_frsize;
+ #else
+ blockSize = statfsbuf.f_bsize;
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-bu
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-bu:1.1 pkgsrc/sysutils/open-vm-tools/patches/patch-bu:1.2
--- pkgsrc/sysutils/open-vm-tools/patches/patch-bu:1.1 Sun Aug 31 06:36:49 2008
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-bu Sun Oct 9 03:41:56 2016
@@ -1,10 +1,10 @@
-$NetBSD: patch-bu,v 1.1 2008/08/31 06:36:49 scottr Exp $
+$NetBSD: patch-bu,v 1.2 2016/10/09 03:41:56 ryoon Exp $
---- vmware-user-suid-wrapper/wrapper-netbsd.c.orig 2008-08-19 17:54:40.000000000 -0500
+--- vmware-user-suid-wrapper/wrapper-netbsd.c.orig 2016-10-04 11:37:33.890972836 +0000
+++ vmware-user-suid-wrapper/wrapper-netbsd.c
-@@ -0,0 +1,140 @@
+@@ -0,0 +1,136 @@
+/*********************************************************
-+ * Copyright (C) 2007 VMware, Inc. All rights reserved.
++ * Copyright (C) 2007-2015 VMware, Inc. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published
@@ -28,10 +28,6 @@ $NetBSD: patch-bu,v 1.1 2008/08/31 06:36
+ */
+
+
-+#include <sys/param.h>
-+#include <sys/mount.h>
-+// #include <sys/uio.h> // for nmount(2)
-+
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-configure.ac
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-configure.ac:1.1 pkgsrc/sysutils/open-vm-tools/patches/patch-configure.ac:1.2
--- pkgsrc/sysutils/open-vm-tools/patches/patch-configure.ac:1.1 Mon Apr 1 12:25:17 2013
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-configure.ac Sun Oct 9 03:41:56 2016
@@ -1,23 +1,38 @@
-$NetBSD: patch-configure.ac,v 1.1 2013/04/01 12:25:17 joerg Exp $
+$NetBSD: patch-configure.ac,v 1.2 2016/10/09 03:41:56 ryoon Exp $
---- configure.ac.orig 2008-08-08 07:01:58.000000000 +0000
+--- configure.ac.orig 2016-02-16 20:06:45.000000000 +0000
+++ configure.ac
-@@ -111,6 +111,9 @@ case "$host_os" in
- [linux*])
- os="linux"
+@@ -136,6 +136,9 @@ case "$host_os" in
+ [solaris*])
+ os="solaris"
;;
+ [netbsd*])
+ os="netbsd"
+ ;;
- [freebsd*])
- os="freebsd"
+ [*])
+ AC_MSG_WARN([This is an untested and unsupported Operating System. Proceed at your own peril.])
;;
-@@ -573,7 +576,7 @@ if test "$with_dnet" = "yes"; then
+@@ -1064,6 +1067,15 @@ if test "$os" = "linux"; then
+ buildHgfsmounter=yes
+ fi
- GUESTD_LDADD="$GUESTD_LDADD $DNET_LIBS"
- VMWARE_USER_LDADD="$VMWARE_USER_LDADD $DNET_LIBS"
-- if test "$DNET_CONFIG" == dumbnet-config; then
-+ if test "$DNET_CONFIG" = dumbnet-config; then
- AC_DEFINE([DNET_IS_DUMBNET], 1, [Define to 1 if substituting Debian's libdumbnet for libdnet.])
- fi
- else
++if test "$os" = "netbsd"; then
++ LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lkvm"
++ #MODULES_DIR="/boot/modules"
++
++ #MODULES="$MODULES vmmemctl"
++ #MODULES="$MODULES vmxnet"
++ #MODULES="$MODULES vmblock"
++fi
++
+ if test "$os" = "freebsd" || test "$os" = "kfreebsd-gnu"; then
+ LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lkvm"
+ MODULES_DIR="/boot/modules"
+@@ -1132,6 +1144,7 @@ fi
+ AM_CONDITIONAL(BUILD_HGFSMOUNTER, test "$buildHgfsmounter" = "yes")
+ AM_CONDITIONAL(LINUX, test "$os" = "linux")
+ AM_CONDITIONAL(SOLARIS, test "$os" = "solaris")
++AM_CONDITIONAL(NETBSD, test "$os" = "netbsd")
+ AM_CONDITIONAL(FREEBSD, test "$os" = "freebsd" -o "$os" = "kfreebsd-gnu")
+ AM_CONDITIONAL(FREEBSD_CUSTOM_SYSDIR,
+ test \( "$os" = "freebsd" -o "$os" = "kfreebsd-gnu" \) -a -n "$SYSDIR")
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-scripts_Makefile.am
diff -u pkgsrc/sysutils/open-vm-tools/patches/patch-scripts_Makefile.am:1.1 pkgsrc/sysutils/open-vm-tools/patches/patch-scripts_Makefile.am:1.2
--- pkgsrc/sysutils/open-vm-tools/patches/patch-scripts_Makefile.am:1.1 Mon Apr 1 12:25:17 2013
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-scripts_Makefile.am Sun Oct 9 03:41:56 2016
@@ -1,15 +1,18 @@
-$NetBSD: patch-scripts_Makefile.am,v 1.1 2013/04/01 12:25:17 joerg Exp $
+$NetBSD: patch-scripts_Makefile.am,v 1.2 2016/10/09 03:41:56 ryoon Exp $
---- scripts/Makefile.am.orig 2008-08-08 07:01:58.000000000 +0000
+--- scripts/Makefile.am.orig 2016-02-16 20:06:47.000000000 +0000
+++ scripts/Makefile.am
-@@ -1,7 +1,7 @@
+@@ -3,10 +3,10 @@ defaultscripts += poweroff-vm-default
+ defaultscripts += suspend-vm-default
+ defaultscripts += resume-vm-default
+
-confdir = /etc/vmware-tools
+EGDIR = @datarootdir@/examples
+confdir = ${EGDIR}/vmware-tools
-conf_SCRIPTS = ./common/vm-support
--conf_SCRIPTS += $(MODULES_OS)/poweron-vm-default
-+conf_SCRIPTS = $(MODULES_OS)/poweron-vm-default
- conf_SCRIPTS += $(MODULES_OS)/poweroff-vm-default
- conf_SCRIPTS += $(MODULES_OS)/suspend-vm-default
- conf_SCRIPTS += $(MODULES_OS)/resume-vm-default
+-conf_SCRIPTS += ./common/statechange.subr
++conf_SCRIPTS = ./common/statechange.subr
+ if ENABLE_GRABBITMQPROXY
+ conf_SCRIPTS += ./common/guestproxy-ssl.conf
+ endif
Added files:
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-libDeployPkg_linuxDeployment.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-libDeployPkg_linuxDeployment.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-libDeployPkg_linuxDeployment.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,26 @@
+$NetBSD: patch-libDeployPkg_linuxDeployment.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- libDeployPkg/linuxDeployment.c.orig 2016-02-16 20:06:47.000000000 +0000
++++ libDeployPkg/linuxDeployment.c
+@@ -1058,7 +1058,7 @@ ExtractZipPackage(const char* pkgName,
+ {
+ ProcessHandle h;
+ char* args[32];
+- const char* stderr;
++ const char* mystderr;
+
+ int pkgFd, zipFd;
+ char zipName[1024];
+@@ -1106,9 +1106,9 @@ ExtractZipPackage(const char* pkgName,
+ sLog(log_info, "unzip output: %s\n", Process_GetStdout(h));
+
+ // Assume zip failed if it wrote to stderr
+- stderr = Process_GetStderr(h);
+- if (strlen(stderr) > 0) {
+- sLog(log_error, "Package unzip failed: %s\n", stderr);
++ mystderr = Process_GetStderr(h);
++ if (strlen(mystderr) > 0) {
++ sLog(log_error, "Package unzip failed: %s\n", mystderr);
+ ret = FALSE;
+ }
+
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-libDeployPkg_processPosix.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-libDeployPkg_processPosix.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-libDeployPkg_processPosix.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,12 @@
+$NetBSD: patch-libDeployPkg_processPosix.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- libDeployPkg/processPosix.c.orig 2016-02-16 20:06:47.000000000 +0000
++++ libDeployPkg/processPosix.c
+@@ -22,6 +22,7 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <sys/wait.h>
++#include <signal.h>
+
+ // vmware headers
+ #include "util.h"
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-lib_dynxdr_xdrutil.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-lib_dynxdr_xdrutil.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-lib_dynxdr_xdrutil.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_dynxdr_xdrutil.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- lib/dynxdr/xdrutil.c.orig 2016-02-16 20:06:45.000000000 +0000
++++ lib/dynxdr/xdrutil.c
+@@ -102,7 +102,11 @@ XdrUtil_Deserialize(const void *data, /
+ ASSERT(dest != NULL);
+
+ xdrmem_create(&xdrs, (char *) data, dataLen, XDR_DECODE);
++#if defined(__NetBSD__)
++ ret = (Bool) proc(&xdrs, dest);
++#else
+ ret = (Bool) proc(&xdrs, dest, 0);
++#endif
+ xdr_destroy(&xdrs);
+
+ if (!ret) {
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-lib_file_file.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-lib_file_file.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-lib_file_file.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib_file_file.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- lib/file/file.c.orig 2016-02-16 20:06:45.000000000 +0000
++++ lib/file/file.c
+@@ -1302,7 +1302,7 @@ File_MoveTree(const char *srcName, //
+ }
+ }
+
+-#if !defined(__FreeBSD__) && !defined(sun)
++#if !defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__)
+ /*
+ * File_GetFreeSpace is not defined for FreeBSD
+ */
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-lib_hgfsHelper_hgfsHelperPosix.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-lib_hgfsHelper_hgfsHelperPosix.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-lib_hgfsHelper_hgfsHelperPosix.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,22 @@
+$NetBSD: patch-lib_hgfsHelper_hgfsHelperPosix.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- lib/hgfsHelper/hgfsHelperPosix.c.orig 2016-02-16 20:06:45.000000000 +0000
++++ lib/hgfsHelper/hgfsHelperPosix.c
+@@ -24,7 +24,7 @@
+ *
+ */
+
+-#if !defined __linux__ && !defined __FreeBSD__ && !defined sun && !defined __APPLE__
++#if !defined __linux__ && !defined __FreeBSD__ && !defined sun && !defined __APPLE__ && !defined __NetBSD__
+ # error This file should not be compiled
+ #endif
+
+@@ -39,6 +39,8 @@
+ #define HGFSHLPR_DEFAULT_MOUNT_PATH "/hgfs"
+ #elif defined __APPLE__
+ #define HGFSHLPR_DEFAULT_MOUNT_PATH "/Volumes/VMware Shared Folders"
++#elif defined __NetBSD__
++#define HGFSHLPR_DEFAULT_MOUNT_PATH "/mnt/hgfs"
+ #endif
+
+
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-lib_hgfsUri_hgfsUriPosix.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-lib_hgfsUri_hgfsUriPosix.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-lib_hgfsUri_hgfsUriPosix.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib_hgfsUri_hgfsUriPosix.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- lib/hgfsUri/hgfsUriPosix.c.orig 2016-02-16 20:06:45.000000000 +0000
++++ lib/hgfsUri/hgfsUriPosix.c
+@@ -23,7 +23,7 @@
+ * x-vmware-share:// style URIs
+ */
+
+-#if !defined __linux__ && !defined __APPLE__ && !defined __FreeBSD__
++#if !defined __linux__ && !defined __APPLE__ && !defined __FreeBSD__ && !defined __NetBSD__
+ # error This file should not be compiled
+ #endif
+
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_sigPosixRegs.h
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_sigPosixRegs.h:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_sigPosixRegs.h Sun Oct 9 03:41:56 2016
@@ -0,0 +1,41 @@
+$NetBSD: patch-lib_include_sigPosixRegs.h,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- lib/include/sigPosixRegs.h.orig 2016-02-16 20:06:46.000000000 +0000
++++ lib/include/sigPosixRegs.h
+@@ -224,6 +224,36 @@
+ #define SC_ESP(uc) ((unsigned long) (uc)->uc_mcontext.gregs[ESP])
+ #define SC_EIP(uc) ((unsigned long) (uc)->uc_mcontext.gregs[EIP])
+ #endif
++#elif defined (__NetBSD__)
++#ifdef __x86_64__
++#define SC_EAX(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_RAX])
++#define SC_EBX(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_RBX])
++#define SC_ECX(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_RCX])
++#define SC_EDX(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_RDX])
++#define SC_EDI(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_RDI])
++#define SC_ESI(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_RSI])
++#define SC_EBP(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_RBP])
++#define SC_ESP(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_RSP])
++#define SC_EIP(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_RIP])
++#define SC_R8(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_R8])
++#define SC_R9(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_R9])
++#define SC_R10(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_R10])
++#define SC_R11(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_R11])
++#define SC_R12(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_R12])
++#define SC_R13(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_R13])
++#define SC_R14(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_R14])
++#define SC_R15(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_R15])
++#else
++#define SC_EAX(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_EAX])
++#define SC_EBX(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_EBX])
++#define SC_ECX(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_ECX])
++#define SC_EDX(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_EDX])
++#define SC_EDI(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_EDI])
++#define SC_ESI(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_ESI])
++#define SC_EBP(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_EBP])
++#define SC_ESP(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_ESP])
++#define SC_EIP(uc) ((unsigned long) (uc)->uc_mcontext.__gregs[_REG_EIP])
++#endif
+ #elif defined(ANDROID_X86)
+ #define SC_EAX(uc) ((unsigned long) (uc)->uc_mcontext.eax)
+ #define SC_EBX(uc) ((unsigned long) (uc)->uc_mcontext.ebx)
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_vmblock__user.h
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_vmblock__user.h:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_vmblock__user.h Sun Oct 9 03:41:56 2016
@@ -0,0 +1,24 @@
+$NetBSD: patch-lib_include_vmblock__user.h,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- lib/include/vmblock_user.h.orig 2016-02-16 20:06:46.000000000 +0000
++++ lib/include/vmblock_user.h
+@@ -68,6 +68,10 @@
+ #include "vm_basic_types.h"
+ #include "vmblock.h"
+
++#if defined(__NetBSD__)
++#include <sys/ioctl.h>
++#endif
++
+ static INLINE int
+ VMBLOCK_CONTROL_FUSE(int fd, // IN
+ char op, // IN
+@@ -125,7 +129,7 @@ VMBLOCK_CONTROL(int fd, int op, const ch
+ return write(fd, path, op);
+ }
+
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__NetBSD__)
+
+ static INLINE int
+ VMBLOCK_CONTROL(int fd, int cmd, const char *path)
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_vmci__sockets.h
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_vmci__sockets.h:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-lib_include_vmci__sockets.h Sun Oct 9 03:41:56 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib_include_vmci__sockets.h,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- lib/include/vmci_sockets.h.orig 2016-02-16 20:06:46.000000000 +0000
++++ lib/include/vmci_sockets.h
+@@ -837,7 +837,7 @@ struct uuid_2_cid {
+ return io.u2c_context_id;
+ }
+ # endif // __KERNEL__
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__NetBSD__)
+ /*
+ * No FreeBSD support yet, but it might appear in the future. Just define
+ * some stubs that return errors - that way a client doesn't have to ifdef
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-lib_misc_hostinfoPosix.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-lib_misc_hostinfoPosix.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-lib_misc_hostinfoPosix.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib_misc_hostinfoPosix.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- lib/misc/hostinfoPosix.c.orig 2016-02-16 20:06:46.000000000 +0000
++++ lib/misc/hostinfoPosix.c
+@@ -3289,7 +3289,7 @@ HostinfoSysinfo(uint64 *totalRam, // OU
+ #endif // ifndef __APPLE__
+
+
+-#if defined(__linux__) || defined(__FreeBSD__) || defined(sun)
++#if defined(__linux__) || defined(__FreeBSD__) || defined(sun) || defined(__NetBSD__)
+ /*
+ *-----------------------------------------------------------------------------
+ *
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-lib_nicInfo_nicInfoInt.h
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-lib_nicInfo_nicInfoInt.h:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-lib_nicInfo_nicInfoInt.h Sun Oct 9 03:41:56 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib_nicInfo_nicInfoInt.h,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- lib/nicInfo/nicInfoInt.h.orig 2016-02-16 20:06:46.000000000 +0000
++++ lib/nicInfo/nicInfoInt.h
+@@ -29,7 +29,7 @@
+
+ #include "nicInfo.h"
+
+-#if defined __FreeBSD__ || defined __sun__ || defined __APPLE__
++#if defined __FreeBSD__ || defined __sun__ || defined __APPLE__ || defined __NetBSD__
+ # include <sys/socket.h> // struct sockaddr
+ #endif
+
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-lib_nicInfo_nicInfoPosix.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-lib_nicInfo_nicInfoPosix.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-lib_nicInfo_nicInfoPosix.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,74 @@
+$NetBSD: patch-lib_nicInfo_nicInfoPosix.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- lib/nicInfo/nicInfoPosix.c.orig 2016-02-16 20:06:46.000000000 +0000
++++ lib/nicInfo/nicInfoPosix.c
+@@ -62,6 +62,8 @@
+ # include <net/if.h>
+ #endif
+
++__thread struct __res_state myres;
++
+ /*
+ * resolver(3) and IPv6:
+ *
+@@ -471,7 +473,7 @@ RecordResolverInfo(NicInfoV3 *nicInfo)
+ char namebuf[DNSINFO_MAX_ADDRLEN + 1];
+ char **s;
+
+- if (res_init() == -1) {
++ if (res_ninit(&myres) == -1) {
+ return FALSE;
+ }
+
+@@ -492,7 +494,7 @@ RecordResolverInfo(NicInfoV3 *nicInfo)
+ */
+ dnsConfigInfo->domainName =
+ Util_SafeCalloc(1, sizeof *dnsConfigInfo->domainName);
+- *dnsConfigInfo->domainName = Util_SafeStrdup(_res.defdname);
++ *dnsConfigInfo->domainName = Util_SafeStrdup(myres.defdname);
+
+ /*
+ * Name servers.
+@@ -502,7 +504,7 @@ RecordResolverInfo(NicInfoV3 *nicInfo)
+ /*
+ * Search suffixes.
+ */
+- for (s = _res.dnsrch; *s; s++) {
++ for (s = myres.dnsrch; *s; s++) {
+ DnsHostname *suffix;
+
+ /* Check to see if we're going above our limit. See bug 605821. */
+@@ -550,12 +552,12 @@ RecordResolverNS(DnsConfigInfo *dnsConfi
+ #if defined RESOLVER_IPV6_GETSERVERS
+ {
+ union res_sockaddr_union *ns;
+- ns = Util_SafeCalloc(_res.nscount, sizeof *ns);
+- if (res_getservers(&_res, ns, _res.nscount) != _res.nscount) {
++ ns = Util_SafeCalloc(myres.nscount, sizeof *ns);
++ if (res_getservers(&myres, ns, myres.nscount) != myres.nscount) {
+ g_warning("%s: res_getservers failed.\n", __func__);
+ return;
+ }
+- for (i = 0; i < _res.nscount; i++) {
++ for (i = 0; i < myres.nscount; i++) {
+ struct sockaddr *sa = (struct sockaddr *)&ns[i];
+ if (sa->sa_family == AF_INET || sa->sa_family == AF_INET6) {
+ TypedIpAddress *ip;
+@@ -579,7 +581,7 @@ RecordResolverNS(DnsConfigInfo *dnsConfi
+ * Name servers (IPv4).
+ */
+ for (i = 0; i < MAXNS; i++) {
+- struct sockaddr_in *sin = &_res.nsaddr_list[i];
++ struct sockaddr_in *sin = &myres.nsaddr_list[i];
+ if (sin->sin_family == AF_INET) {
+ TypedIpAddress *ip;
+
+@@ -600,7 +602,7 @@ RecordResolverNS(DnsConfigInfo *dnsConfi
+ * Name servers (IPv6).
+ */
+ for (i = 0; i < MAXNS; i++) {
+- struct sockaddr_in6 *sin6 = _res._u._ext.nsaddrs[i];
++ struct sockaddr_in6 *sin6 = myres._u._ext.nsaddrs[i];
+ if (sin6) {
+ TypedIpAddress *ip;
+
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-lib_user_utilBacktrace.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-lib_user_utilBacktrace.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-lib_user_utilBacktrace.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib_user_utilBacktrace.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- lib/user/utilBacktrace.c.orig 2016-02-16 20:06:46.000000000 +0000
++++ lib/user/utilBacktrace.c
+@@ -53,7 +53,7 @@
+ #include "str.h"
+
+ #ifdef VM_X86_64
+-# if defined(__GNUC__) && (!defined(USING_AUTOCONF) || defined(HAVE_UNWIND_H))
++# if defined(__GNUC__) && (!defined(USING_AUTOCONF) || (defined(HAVE_UNWIND_H)) && !defined(__NetBSD__))
+ # define UTIL_BACKTRACE_USE_UNWIND
+ # endif
+ #endif
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-scripts_netbsd_network
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-scripts_netbsd_network:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-scripts_netbsd_network Sun Oct 9 03:41:56 2016
@@ -0,0 +1,108 @@
+$NetBSD: patch-scripts_netbsd_network,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- scripts/netbsd/network.orig 2016-10-04 11:37:34.038469430 +0000
++++ scripts/netbsd/network
+@@ -0,0 +1,103 @@
++#!/bin/sh
++##########################################################
++# Copyright (C) 2010-2015 VMware, Inc. All rights reserved.
++#
++# This program is free software; you can redistribute it and/or modify it
++# under the terms of the GNU Lesser General Public License as published
++# by the Free Software Foundation version 2.1 and no later version.
++#
++# This program is distributed in the hope that it will be useful, but
++# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
++# or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
++# License for more details.
++#
++# You should have received a copy of the GNU Lesser General Public License
++# along with this program; if not, write to the Free Software Foundation, Inc.,
++# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
++#
++##########################################################
++
++##########################################################################
++# DO NOT modify this file directly as it will be overwritten the next
++# time the VMware Tools are installed.
++##########################################################################
++
++#
++# network (FreeBSD 6.3 and above)
++#
++# This script uses FreeBSD's rc(8) scripts to stop and restart networking
++# services in response to suspend and resume events, respectively.
++#
++
++
++echo `date` ": Executing '$0'"
++echo
++
++. `dirname "$0"`/../../statechange.subr
++
++
++#
++# ToggleNetwork --
++#
++# Sources native configuration files in a subshell and executes native
++# scripts to either start or stop networking services associated with
++# a single interface.
++#
++# Results:
++# See description above.
++#
++# Side effects:
++# All side effects implied by FreeBSD's netif script.
++#
++
++ToggleNetwork() {
++ (
++ . /etc/rc.subr
++ . /etc/network.subr
++
++ load_rc_config network
++
++ for intf in `list_net_interfaces dhcp`; do
++ /etc/rc.d/netif $1 $intf
++ ec=$?
++
++ # Failure to stop an interface should not interfere with suspend.
++ if [ "$1" != "stop" ]; then
++ exitCode=`expr $exitCode \| $ec`
++ fi
++ done
++ )
++}
++
++
++#
++# main --
++#
++# Main entry point. Perform some sanity checking, then map state change
++# events to relevant networking operations.
++#
++# Results:
++# See comment at top of file.
++#
++
++main() {
++ exitCode=0
++
++ [ -r /etc/rc.subr ] || Panic "Cannot read /etc/rc.subr."
++ [ -r /etc/network.subr ] || Panic "Cannot read /etc/network.subr"
++ [ -x /etc/rc.d/netif ] || Panic "Cannot read /etc/rc.d/netif"
++
++ case "$1" in
++ suspend-vm)
++ ToggleNetwork stop
++ ;;
++ resume-vm)
++ ToggleNetwork start
++ ;;
++ *) ;;
++ esac
++
++ return $exitCode
++}
++
++main "$@"
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-services_plugins_dndcp_dnd_dndLinux.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-services_plugins_dndcp_dnd_dndLinux.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-services_plugins_dndcp_dnd_dndLinux.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,22 @@
+$NetBSD: patch-services_plugins_dndcp_dnd_dndLinux.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- services/plugins/dndcp/dnd/dndLinux.c.orig 2016-02-16 20:06:48.000000000 +0000
++++ services/plugins/dndcp/dnd/dndLinux.c
+@@ -39,7 +39,7 @@
+ #include "util.h"
+ #include "escape.h"
+ #include "su.h"
+-#if defined(linux) || defined(sun) || defined(__FreeBSD__)
++#if defined(linux) || defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)
+ #include "vmblock_user.h"
+ #include "mntinfo.h"
+ #endif
+@@ -276,7 +276,7 @@ DnD_UriIsNonFileSchemes(const char *uri)
+
+
+ /* We need to make this suck less. */
+-#if defined(linux) || defined(sun) || defined(__FreeBSD__)
++#if defined(linux) || defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)
+
+ /*
+ *----------------------------------------------------------------------------
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-services_plugins_timeSync_Makefile.am
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-services_plugins_timeSync_Makefile.am:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-services_plugins_timeSync_Makefile.am Sun Oct 9 03:41:56 2016
@@ -0,0 +1,15 @@
+$NetBSD: patch-services_plugins_timeSync_Makefile.am,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- services/plugins/timeSync/Makefile.am.orig 2016-02-16 20:06:48.000000000 +0000
++++ services/plugins/timeSync/Makefile.am
+@@ -39,6 +39,10 @@ if FREEBSD
+ libtimeSync_la_SOURCES += slewAdjtime.c
+ libtimeSync_la_SOURCES += pllNone.c
+ endif
++if NETBSD
++libtimeSync_la_SOURCES += slewAdjtime.c
++libtimeSync_la_SOURCES += pllNone.c
++endif
+ if LINUX
+ libtimeSync_la_SOURCES += slewLinux.c
+ libtimeSync_la_SOURCES += pllLinux.c
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-services_vmtoolsd_Makefile.am
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-services_vmtoolsd_Makefile.am:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-services_vmtoolsd_Makefile.am Sun Oct 9 03:41:56 2016
@@ -0,0 +1,25 @@
+$NetBSD: patch-services_vmtoolsd_Makefile.am,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- services/vmtoolsd/Makefile.am.orig 2016-02-16 20:06:48.000000000 +0000
++++ services/vmtoolsd/Makefile.am
+@@ -15,8 +15,10 @@
+ ### Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ ################################################################################
+
++EGDIR = @datarootdir@/examples
++
+ bin_PROGRAMS = vmtoolsd
+-pamdir = $(PAM_PREFIX)/pam.d
++pamdir = $(EGDIR)/vmware-tools/pam.d
+
+
+ vmtoolsd_CPPFLAGS =
+@@ -83,7 +85,7 @@ install-data-hook:
+ @INSTVMSG@ vmtoolsd $(srcdir)/l10n $(DESTDIR)$(datadir)
+
+ install-exec-hook:
+- $(INSTALL) -d $(DESTDIR)/etc/vmware-tools
++ $(INSTALL) -d $(DESTDIR)/${EGDIR}/vmware-tools
+
+ uninstall-hook:
+ rm -rf $(DESTDIR)/etc/vmware-tools
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_common_VGAuthLog.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_common_VGAuthLog.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_common_VGAuthLog.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-vgauth_common_VGAuthLog.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- vgauth/common/VGAuthLog.c.orig 2016-02-16 20:06:48.000000000 +0000
++++ vgauth/common/VGAuthLog.c
+@@ -210,7 +210,7 @@ LogErrorPosixCodeV(int code,
+ g_vsnprintf(buf, sizeof buf, fmt, args);
+ buf[sizeof buf - 1] = '\0';
+
+-#ifdef sun
++#if defined(sun) && defined(__NetBSD__)
+ strerror_r(code, errMsg, sizeof errMsg);
+ g_warning("[function %s, file %s, line %d], %s, [errno = %d], %s\n",
+ func, file, line, buf, code, errMsg);
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_lib_common.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_lib_common.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_lib_common.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,22 @@
+$NetBSD: patch-vgauth_lib_common.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- vgauth/lib/common.c.orig 2016-02-16 20:06:48.000000000 +0000
++++ vgauth/lib/common.c
+@@ -374,7 +374,7 @@ done:
+
+ return err;
+ }
+-#elif defined(sun)
++#elif defined(sun) || defined(__NetBSD__)
+ return VGAUTH_E_OK;
+ #else
+ #error VGAuth_InstallClient unsupported on this platform.
+@@ -454,7 +454,7 @@ done:
+ g_free(lowAppName);
+ return err;
+ }
+-#elif defined(sun)
++#elif defined(sun) || defined(__NetBSD__)
+ return VGAUTH_E_OK;
+ #else
+ #error VGAuth_UninstallClient unsupported on this platform.
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_lib_impersonateLinux.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_lib_impersonateLinux.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-vgauth_lib_impersonateLinux.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-vgauth_lib_impersonateLinux.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- vgauth/lib/impersonateLinux.c.orig 2016-02-16 20:06:48.000000000 +0000
++++ vgauth/lib/impersonateLinux.c
+@@ -29,7 +29,7 @@
+ #define _GNU_SOURCE
+ #include <unistd.h>
+
+-#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
++#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
+ #include <asm/param.h>
+ #include <locale.h>
+ #include <sys/stat.h>
Index: pkgsrc/sysutils/open-vm-tools/patches/patch-vmblockmounter_vmblockmounter.c
diff -u /dev/null pkgsrc/sysutils/open-vm-tools/patches/patch-vmblockmounter_vmblockmounter.c:1.1
--- /dev/null Sun Oct 9 03:41:56 2016
+++ pkgsrc/sysutils/open-vm-tools/patches/patch-vmblockmounter_vmblockmounter.c Sun Oct 9 03:41:56 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-vmblockmounter_vmblockmounter.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+
+--- vmblockmounter/vmblockmounter.c.orig 2016-02-16 20:06:48.000000000 +0000
++++ vmblockmounter/vmblockmounter.c
+@@ -223,6 +223,8 @@ main(int argc, // IN
+ /* Go! */
+ #if defined(sun)
+ mntRes = mount(sourceDir, mountPoint, MS_DATA, VMBLOCK_FS_NAME);
++#elif defined(__NetBSD__)
++ mntRes = mount(sourceDir, mountPoint, MNT_BASIC_FLAGS, VMBLOCK_FS_NAME, sizeof(sourceDir));
+ #elif defined(__FreeBSD__)
+ {
+ struct iovec iov[] = {
Home |
Main Index |
Thread Index |
Old Index