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.

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