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.

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