2 # Copyright (C) 2018 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=open-vm-tools
12 PKG_RELEASE
:=$(AUTORELEASE
)
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-19345655.
tar.gz
15 PKG_SOURCE_URL
:=https
://github.com
/vmware
/open-vm-tools
/releases
/download
/stable-
$(PKG_VERSION
)
16 PKG_HASH
:=ea370217a213802f91b01231e28298bbe54134822351fb5cc70255d80ba0e775
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)-19345655
19 PKG_LICENSE
:=LGPL-2.1
-or-later
20 PKG_LICENSE_FILES
:=LICENSE
25 PKG_BUILD_DEPENDS
:=glib2
/host
27 include $(INCLUDE_DIR
)/package.mk
28 include $(INCLUDE_DIR
)/nls.mk
30 define Package
/open-vm-tools
/Default
33 URL
:=https
://github.com
/vmware
/open-vm-tools
36 define Package
/open-vm-tools
37 $(call Package
/open-vm-tools
/Default
)
38 DEPENDS
:=@TARGET_x86
+glib2
+libpthread
+libtirpc
40 URL
:=https
://github.com
/vmware
/open-vm-tools
41 MAINTAINER
:=Yuhei OKAWA
<tochiro.srchack@gmail.com
>
44 define Package
/open-vm-tools
/description
45 Open Virtual Machine Tools for VMware guest OS
48 define Package
/open-vm-tools-fuse
49 $(call Package
/open-vm-tools
/Default
)
50 DEPENDS
:=+open-vm-tools
+libfuse3
51 TITLE
:=open-vm-tools-fuse
52 MAINTAINER
:=Kagurazaka Kotori
<kagurazakakotori@gmail.com
>
55 define Package
/open-vm-tools-fuse
/description
56 Shared Folders user mode FUSE client support for VMware guest OS
61 --disable-containerinfo \
69 --disable-grabbitmqproxy \
72 --without-root-privileges \
73 --without-kernel-modules \
80 --enable-resolutionkms
=no
82 TARGET_LDFLAGS
+= -liconv
85 $(call Build
/Prepare
/Default
)
86 mv
$(PKG_BUILD_DIR
)/lib
/include/poll.h
$(PKG_BUILD_DIR
)/lib
/include/vm_poll.h
89 define Package
/open-vm-tools
/install
90 $(INSTALL_DIR
) $(1)/etc
/init.d
/
91 $(INSTALL_BIN
) .
/files
/vmtoolsd.init
$(1)/etc
/init.d
/vmtoolsd
93 $(INSTALL_DIR
) $(1)/etc
/vmware-tools
/
94 $(INSTALL_DATA
) .
/files
/tools.conf
$(1)/etc
/vmware-tools
/
95 $(CP
) $(PKG_INSTALL_DIR
)/etc
/vmware-tools
$(1)/etc
/
97 $(INSTALL_DIR
) $(1)/bin
/
98 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vmtoolsd
$(1)/bin
/
99 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vmware-checkvm
$(1)/bin
/
100 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vmware-hgfsclient
$(1)/bin
/
101 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vmware-namespace-cmd
$(1)/bin
/
102 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vmware-rpctool
$(1)/bin
/
103 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vmware-toolbox-cmd
$(1)/bin
/
104 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vmware-xferlogs
$(1)/bin
/
106 $(INSTALL_DIR
) $(1)/sbin
/
107 $(INSTALL_BIN
) .
/files
/shutdown
$(1)/sbin
/
109 $(INSTALL_DIR
) $(1)/lib
/
110 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libguestlib.so
* $(1)/lib
/
111 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libhgfs.so
* $(1)/lib
/
112 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libvmtools.so
* $(1)/lib
/
114 $(INSTALL_DIR
) $(1)/usr
/lib
/open-vm-tools
/plugins
/common
/
115 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/open-vm-tools
/plugins
/common
/libhgfsServer.so
$(1)/usr
/lib
/open-vm-tools
/plugins
/common
/
116 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/open-vm-tools
/plugins
/common
/libvix.so
$(1)/usr
/lib
/open-vm-tools
/plugins
/common
/
118 $(INSTALL_DIR
) $(1)/usr
/lib
/open-vm-tools
/plugins
/vmsvc
/
119 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/open-vm-tools
/plugins
/vmsvc
/libguestInfo.so
$(1)/usr
/lib
/open-vm-tools
/plugins
/vmsvc
/
120 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/open-vm-tools
/plugins
/vmsvc
/libpowerOps.so
$(1)/usr
/lib
/open-vm-tools
/plugins
/vmsvc
/
121 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/open-vm-tools
/plugins
/vmsvc
/libtimeSync.so
$(1)/usr
/lib
/open-vm-tools
/plugins
/vmsvc
/
122 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/open-vm-tools
/plugins
/vmsvc
/libvmbackup.so
$(1)/usr
/lib
/open-vm-tools
/plugins
/vmsvc
/
124 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/block
/
125 $(INSTALL_BIN
) .
/files
/vmware-scsi.hotplug
$(1)/etc
/hotplug.d
/block
/80-vmware-scsi
127 $(INSTALL_DIR
) $(1)/usr
/share
/open-vm-tools
/messages
/de
/
128 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/open-vm-tools
/messages
/de
/toolboxcmd.vmsg
$(1)/usr
/share
/open-vm-tools
/messages
/de
/
129 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/open-vm-tools
/messages
/de
/vmtoolsd.vmsg
$(1)/usr
/share
/open-vm-tools
/messages
/de
/
130 $(INSTALL_DIR
) $(1)/usr
/share
/open-vm-tools
/messages
/ko
/
131 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/open-vm-tools
/messages
/ko
/toolboxcmd.vmsg
$(1)/usr
/share
/open-vm-tools
/messages
/ko
/
132 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/open-vm-tools
/messages
/ko
/vmtoolsd.vmsg
$(1)/usr
/share
/open-vm-tools
/messages
/ko
/
133 $(INSTALL_DIR
) $(1)/usr
/share
/open-vm-tools
/messages
/zh_CN
/
134 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/open-vm-tools
/messages
/zh_CN
/toolboxcmd.vmsg
$(1)/usr
/share
/open-vm-tools
/messages
/zh_CN
/
135 $(INSTALL_DIR
) $(1)/usr
/share
/open-vm-tools
/messages
/ja
/
136 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/open-vm-tools
/messages
/ja
/toolboxcmd.vmsg
$(1)/usr
/share
/open-vm-tools
/messages
/ja
/
137 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/open-vm-tools
/messages
/ja
/vmtoolsd.vmsg
$(1)/usr
/share
/open-vm-tools
/messages
/ja
/
140 define Package
/open-vm-tools-fuse
/install
141 $(INSTALL_DIR
) $(1)/bin
/
142 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vmhgfs-fuse
$(1)/bin
/
143 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vmware-vmblock-fuse
$(1)/bin
/
146 $(eval
$(call BuildPackage
,open-vm-tools
))
147 $(eval
$(call BuildPackage
,open-vm-tools-fuse
))