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.

149 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.2.5
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-17337674.tar.gz
  12. PKG_SOURCE_URL:=https://github.com/vmware/open-vm-tools/releases/download/stable-$(PKG_VERSION)
  13. PKG_HASH:=d01c9e036536b569ee561e33302e9dad1c2ac27c04f762ebdc3f81791cb44566
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-17337674
  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. ifeq ($(QUILT),)
  72. mv $(PKG_BUILD_DIR)/lib/include/poll.h $(PKG_BUILD_DIR)/lib/include/vm_poll.h
  73. endif
  74. endef
  75. define Package/open-vm-tools/install
  76. $(INSTALL_DIR) $(1)/etc/init.d/
  77. $(INSTALL_BIN) ./files/vmtoolsd.init $(1)/etc/init.d/vmtoolsd
  78. $(INSTALL_DIR) $(1)/etc/vmware-tools/
  79. $(INSTALL_DATA) ./files/tools.conf $(1)/etc/vmware-tools/
  80. $(CP) $(PKG_INSTALL_DIR)/etc/vmware-tools $(1)/etc/
  81. $(INSTALL_DIR) $(1)/bin/
  82. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmtoolsd $(1)/bin/
  83. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-checkvm $(1)/bin/
  84. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-hgfsclient $(1)/bin/
  85. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-namespace-cmd $(1)/bin/
  86. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-rpctool $(1)/bin/
  87. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-toolbox-cmd $(1)/bin/
  88. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-xferlogs $(1)/bin/
  89. $(INSTALL_DIR) $(1)/sbin/
  90. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mount.vmhgfs $(1)/sbin/
  91. $(INSTALL_BIN) ./files/shutdown $(1)/sbin/
  92. $(INSTALL_DIR) $(1)/lib/
  93. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libguestlib.so* $(1)/lib/
  94. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhgfs.so* $(1)/lib/
  95. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvmtools.so* $(1)/lib/
  96. $(INSTALL_DIR) $(1)/usr/lib/open-vm-tools/plugins/common/
  97. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/common/libhgfsServer.so $(1)/usr/lib/open-vm-tools/plugins/common/
  98. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/common/libvix.so $(1)/usr/lib/open-vm-tools/plugins/common/
  99. $(INSTALL_DIR) $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  100. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libguestInfo.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  101. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libpowerOps.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  102. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libtimeSync.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  103. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libvmbackup.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  104. $(INSTALL_DIR) $(1)/etc/hotplug.d/block/
  105. $(INSTALL_BIN) ./files/vmware-scsi.hotplug $(1)/etc/hotplug.d/block/80-vmware-scsi
  106. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/de/
  107. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/de/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/de/
  108. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/de/vmtoolsd.vmsg $(1)/usr/share/open-vm-tools/messages/de/
  109. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/ko/
  110. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ko/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/ko/
  111. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ko/vmtoolsd.vmsg $(1)/usr/share/open-vm-tools/messages/ko/
  112. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/zh_CN/
  113. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/zh_CN/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/zh_CN/
  114. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/ja/
  115. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ja/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/ja/
  116. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ja/vmtoolsd.vmsg $(1)/usr/share/open-vm-tools/messages/ja/
  117. endef
  118. define Package/open-vm-tools-fuse/install
  119. $(INSTALL_DIR) $(1)/bin/
  120. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmhgfs-fuse $(1)/bin/
  121. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-vmblock-fuse $(1)/bin/
  122. endef
  123. $(eval $(call BuildPackage,open-vm-tools))
  124. $(eval $(call BuildPackage,open-vm-tools-fuse))