#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2016 Adam Stevko
# Copyright 2017 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
# Copyright 2019 Michal Nowak
#

set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'

file files/open-vm-tools.xml path=lib/svc/manifest/system/virtualization/open-vm-tools.xml restart_fmri=svc:/system/manifest-import:default
file files/tools.conf        path=etc/vmware-tools/tools.conf preserve=true

dir path=var/log/vmtools

# Install desktop part automatically if Xorg is installed
depend type=conditional fmri=pkg:/system/virtualization/open-vm-tools-desktop@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) \
    predicate=pkg:/x11/server/xorg

file path=etc/vmware-tools/poweroff-vm-default    mode=0555
file path=etc/vmware-tools/poweron-vm-default     mode=0555
file path=etc/vmware-tools/resume-vm-default      mode=0555
file path=etc/vmware-tools/scripts/vmware/network mode=0555
file path=etc/vmware-tools/statechange.subr       mode=0555
file path=etc/vmware-tools/suspend-vm-default     mode=0555
file path=etc/vmware-tools/tools.conf.example     mode=0555
file path=etc/vmware-tools/vm-support             mode=0555

file path=usr/bin/vmhgfs-fuse
file path=usr/bin/vmtoolsd
file path=usr/bin/vmware-checkvm
file path=usr/bin/vmware-hgfsclient
file path=usr/bin/vmware-namespace-cmd
file path=usr/bin/vmware-rpctool
file path=usr/bin/vmware-toolbox-cmd
file path=usr/bin/vmware-vmblock-fuse
file path=usr/bin/vmware-xferlogs
file path=usr/include/vmGuestLib/includeCheck.h
file path=usr/include/vmGuestLib/vmGuestLib.h
file path=usr/include/vmGuestLib/vmSessionId.h
file path=usr/include/vmGuestLib/vm_basic_types.h
link path=usr/lib/$(MACH64)/libguestlib.so target=libguestlib.so.0.0.0
link path=usr/lib/$(MACH64)/libguestlib.so.0 target=libguestlib.so.0.0.0
file path=usr/lib/$(MACH64)/libguestlib.so.0.0.0
link path=usr/lib/$(MACH64)/libhgfs.so target=libhgfs.so.0.0.0
link path=usr/lib/$(MACH64)/libhgfs.so.0 target=libhgfs.so.0.0.0
file path=usr/lib/$(MACH64)/libhgfs.so.0.0.0
link path=usr/lib/$(MACH64)/libvmtools.so target=libvmtools.so.0.0.0
link path=usr/lib/$(MACH64)/libvmtools.so.0 target=libvmtools.so.0.0.0
file path=usr/lib/$(MACH64)/libvmtools.so.0.0.0
file path=usr/lib/$(MACH64)/open-vm-tools/plugins/common/libhgfsServer.so
file path=usr/lib/$(MACH64)/open-vm-tools/plugins/common/libvix.so
file path=usr/lib/$(MACH64)/open-vm-tools/plugins/vmsvc/libguestInfo.so
file path=usr/lib/$(MACH64)/open-vm-tools/plugins/vmsvc/libpowerOps.so
file path=usr/lib/$(MACH64)/open-vm-tools/plugins/vmsvc/libtimeSync.so
file path=usr/lib/$(MACH64)/open-vm-tools/plugins/vmsvc/libvmbackup.so

file path=usr/lib/$(MACH64)/pkgconfig/vmguestlib.pc
file path=usr/sbin/mount.vmblock

file path=usr/share/open-vm-tools/messages/de/toolboxcmd.vmsg
file path=usr/share/open-vm-tools/messages/de/vmtoolsd.vmsg
file path=usr/share/open-vm-tools/messages/ja/toolboxcmd.vmsg
file path=usr/share/open-vm-tools/messages/ja/vmtoolsd.vmsg
file path=usr/share/open-vm-tools/messages/ko/toolboxcmd.vmsg
file path=usr/share/open-vm-tools/messages/ko/vmtoolsd.vmsg
file path=usr/share/open-vm-tools/messages/zh_CN/toolboxcmd.vmsg