You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

147 lines
5.6 KiB

  1. #
  2. # Copyright (C) 2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=open-vm-tools
  9. PKG_VERSION:=11.3.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-18090558.tar.gz
  12. PKG_SOURCE_URL:=https://github.com/vmware/open-vm-tools/releases/download/stable-$(PKG_VERSION)
  13. PKG_HASH:=9bad3ee755340853bf7990e92f3d3880959a73e0749e8aaae62730854368bd2c
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-18090558
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_BUILD_DEPENDS:=glib2/host
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. define Package/open-vm-tools/Default
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. URL:=https://github.com/vmware/open-vm-tools
  27. endef
  28. define Package/open-vm-tools
  29. $(call Package/open-vm-tools/Default)
  30. DEPENDS:=@TARGET_x86 +glib2 +libpthread +libtirpc
  31. TITLE:=open-vm-tools
  32. URL:=https://github.com/vmware/open-vm-tools
  33. MAINTAINER:=Yuhei OKAWA <tochiro.srchack@gmail.com>
  34. endef
  35. define Package/open-vm-tools/description
  36. Open Virtual Machine Tools for VMware guest OS
  37. endef
  38. define Package/open-vm-tools-fuse
  39. $(call Package/open-vm-tools/Default)
  40. DEPENDS:=+open-vm-tools +libfuse
  41. TITLE:=open-vm-tools-fuse
  42. MAINTAINER:=Kagurazaka Kotori <kagurazakakotori@gmail.com>
  43. endef
  44. define Package/open-vm-tools-fuse/description
  45. Shared Folders user mode FUSE client support for VMware guest OS
  46. endef
  47. CONFIGURE_ARGS+= \
  48. --without-icu \
  49. --disable-multimon \
  50. --disable-docs \
  51. --disable-tests \
  52. --without-gtkmm \
  53. --without-gtkmm3 \
  54. --without-xerces \
  55. --without-pam \
  56. --disable-grabbitmqproxy \
  57. --disable-vgauth \
  58. --disable-deploypkg \
  59. --without-root-privileges \
  60. --without-kernel-modules \
  61. --without-dnet \
  62. --with-tirpc \
  63. --without-x \
  64. --without-gtk2 \
  65. --without-gtk3 \
  66. --without-xerces \
  67. --enable-resolutionkms=no
  68. TARGET_LDFLAGS += -liconv
  69. define Build/Prepare
  70. $(call Build/Prepare/Default)
  71. mv $(PKG_BUILD_DIR)/lib/include/poll.h $(PKG_BUILD_DIR)/lib/include/vm_poll.h
  72. endef
  73. define Package/open-vm-tools/install
  74. $(INSTALL_DIR) $(1)/etc/init.d/
  75. $(INSTALL_BIN) ./files/vmtoolsd.init $(1)/etc/init.d/vmtoolsd
  76. $(INSTALL_DIR) $(1)/etc/vmware-tools/
  77. $(INSTALL_DATA) ./files/tools.conf $(1)/etc/vmware-tools/
  78. $(CP) $(PKG_INSTALL_DIR)/etc/vmware-tools $(1)/etc/
  79. $(INSTALL_DIR) $(1)/bin/
  80. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmtoolsd $(1)/bin/
  81. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-checkvm $(1)/bin/
  82. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-hgfsclient $(1)/bin/
  83. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-namespace-cmd $(1)/bin/
  84. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-rpctool $(1)/bin/
  85. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-toolbox-cmd $(1)/bin/
  86. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-xferlogs $(1)/bin/
  87. $(INSTALL_DIR) $(1)/sbin/
  88. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mount.vmhgfs $(1)/sbin/
  89. $(INSTALL_BIN) ./files/shutdown $(1)/sbin/
  90. $(INSTALL_DIR) $(1)/lib/
  91. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libguestlib.so* $(1)/lib/
  92. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhgfs.so* $(1)/lib/
  93. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvmtools.so* $(1)/lib/
  94. $(INSTALL_DIR) $(1)/usr/lib/open-vm-tools/plugins/common/
  95. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/common/libhgfsServer.so $(1)/usr/lib/open-vm-tools/plugins/common/
  96. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/common/libvix.so $(1)/usr/lib/open-vm-tools/plugins/common/
  97. $(INSTALL_DIR) $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  98. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libguestInfo.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  99. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libpowerOps.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  100. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libtimeSync.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  101. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libvmbackup.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  102. $(INSTALL_DIR) $(1)/etc/hotplug.d/block/
  103. $(INSTALL_BIN) ./files/vmware-scsi.hotplug $(1)/etc/hotplug.d/block/80-vmware-scsi
  104. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/de/
  105. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/de/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/de/
  106. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/de/vmtoolsd.vmsg $(1)/usr/share/open-vm-tools/messages/de/
  107. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/ko/
  108. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ko/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/ko/
  109. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ko/vmtoolsd.vmsg $(1)/usr/share/open-vm-tools/messages/ko/
  110. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/zh_CN/
  111. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/zh_CN/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/zh_CN/
  112. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/ja/
  113. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ja/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/ja/
  114. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ja/vmtoolsd.vmsg $(1)/usr/share/open-vm-tools/messages/ja/
  115. endef
  116. define Package/open-vm-tools-fuse/install
  117. $(INSTALL_DIR) $(1)/bin/
  118. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmhgfs-fuse $(1)/bin/
  119. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-vmblock-fuse $(1)/bin/
  120. endef
  121. $(eval $(call BuildPackage,open-vm-tools))
  122. $(eval $(call BuildPackage,open-vm-tools-fuse))