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.

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