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.

117 lines
4.7 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.0.5
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-15389592.tar.gz
  12. PKG_SOURCE_URL:=https://github.com/vmware/open-vm-tools/releases/download/stable-$(PKG_VERSION)
  13. PKG_HASH:=fc5ed2d752af33775250e0f103d622c0031d578f8394511617d2619b124dfc42
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-15389592
  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
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. DEPENDS:=@TARGET_x86 +glib2 +libpthread +libtirpc
  25. TITLE:=open-vm-tools
  26. URL:=https://github.com/vmware/open-vm-tools
  27. MAINTAINER:=Yuhei OKAWA <tochiro.srchack@gmail.com>
  28. endef
  29. define Package/open-vm-tools-vm-tools/description
  30. Open Virtual Machine Tools for VMware guest OS
  31. endef
  32. CONFIGURE_ARGS+= \
  33. --without-icu \
  34. --disable-multimon \
  35. --disable-docs \
  36. --disable-tests \
  37. --without-gtkmm \
  38. --without-gtkmm3 \
  39. --without-xerces \
  40. --without-pam \
  41. --disable-grabbitmqproxy \
  42. --disable-vgauth \
  43. --disable-deploypkg \
  44. --without-root-privileges \
  45. --without-kernel-modules \
  46. --without-dnet \
  47. --with-tirpc \
  48. --without-x \
  49. --without-gtk2 \
  50. --without-gtk3 \
  51. --without-xerces \
  52. --enable-resolutionkms=no
  53. define Package/open-vm-tools/install
  54. $(INSTALL_DIR) $(1)/etc/init.d/
  55. $(INSTALL_BIN) ./files/vmtoolsd.init $(1)/etc/init.d/vmtoolsd
  56. $(INSTALL_DIR) $(1)/etc/vmware-tools/
  57. $(INSTALL_DATA) ./files/tools.conf $(1)/etc/vmware-tools/
  58. $(CP) $(PKG_INSTALL_DIR)/etc/vmware-tools $(1)/etc/
  59. $(INSTALL_DIR) $(1)/bin/
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmtoolsd $(1)/bin/
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-checkvm $(1)/bin/
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-hgfsclient $(1)/bin/
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-namespace-cmd $(1)/bin/
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-rpctool $(1)/bin/
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-toolbox-cmd $(1)/bin/
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vmware-xferlogs $(1)/bin/
  67. $(INSTALL_DIR) $(1)/sbin/
  68. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mount.vmhgfs $(1)/sbin/
  69. $(INSTALL_BIN) ./files/shutdown $(1)/sbin/
  70. $(INSTALL_DIR) $(1)/lib/
  71. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libguestlib.so* $(1)/lib/
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhgfs.so* $(1)/lib/
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvmtools.so* $(1)/lib/
  74. $(INSTALL_DIR) $(1)/usr/lib/open-vm-tools/plugins/common/
  75. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/common/libhgfsServer.so $(1)/usr/lib/open-vm-tools/plugins/common/
  76. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/common/libvix.so $(1)/usr/lib/open-vm-tools/plugins/common/
  77. $(INSTALL_DIR) $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  78. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libguestInfo.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  79. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libpowerOps.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  80. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libtimeSync.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  81. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libvmbackup.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
  82. $(INSTALL_DIR) $(1)/etc/hotplug.d/block/
  83. $(INSTALL_BIN) ./files/vmware-scsi.hotplug $(1)/etc/hotplug.d/block/80-vmware-scsi
  84. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/de/
  85. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/de/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/de/
  86. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/de/vmtoolsd.vmsg $(1)/usr/share/open-vm-tools/messages/de/
  87. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/ko/
  88. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ko/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/ko/
  89. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ko/vmtoolsd.vmsg $(1)/usr/share/open-vm-tools/messages/ko/
  90. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/zh_CN/
  91. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/zh_CN/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/zh_CN/
  92. $(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/ja/
  93. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ja/toolboxcmd.vmsg $(1)/usr/share/open-vm-tools/messages/ja/
  94. $(CP) $(PKG_INSTALL_DIR)/usr/share/open-vm-tools/messages/ja/vmtoolsd.vmsg $(1)/usr/share/open-vm-tools/messages/ja/
  95. endef
  96. $(eval $(call BuildPackage,open-vm-tools))