1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add open-vm-tools for x86

This commit is contained in:
Ycarus 2019-02-13 07:41:52 +01:00
parent 41cb47aedd
commit bf9a9aed78
17 changed files with 604 additions and 46 deletions

View file

@ -1,72 +1,130 @@
#
# Copyright (C) 2015 Minho Ryang <minhoryang@gmail.com>
# Initial ebuild come from https://github.com/minhoryang/open-vm-tools--openwrt
# Copyright (C) 2018 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
# Copyright (C) 2018 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v3 or later.
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# This package come from https://github.com/srchack/custom-packages
include $(TOPDIR)/rules.mk
PKG_NAME:=open-vm-tools
PKG_VERSION:=stable-10.3.0
PKG_VERSION:=10.3.0
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=glib2
PKG_SOURCE:=$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/vmware/open-vm-tools/archive/
PKG_LICENSE:=LGPLv2.1
PKG_LICENSE_FILE:=COPYING
PKG_HASH:=b3d0b5fd272a8dc35cab1ddd732f9d436f72682925212a6cdeccdab283e2f5ec
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=https://github.com/vmware/open-vm-tools.git
PKG_SOURCE_VERSION:=stable-$(PKG_VERSION)
PKG_FIXUP:=autoreconf
PKG_LICENSE:=LGPL-2.1
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
TITLE:=open-vm-tools
CATEGORY:=Languages
define Package/open-vm-tools
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+glib2 +libdnet
DEPENDS:=@TARGET_x86 +glib2 +libpthread +libtirpc
TITLE:=open-vm-tools
URL:=https://github.com/vmware/open-vm-tools
MAINTAINER:= Minho Ryang <minhoryang@gmail.com>
endef
# TODO: PKGARCH:=i386 x86_64
# TODO: mmu
# TODO: depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
# TODO: depends on BR2_ENABLE_LOCALE
# TODO: BR2_PACKAGE_OPENVMTOOLS_PROCPS
# TODO: BR2_PACKAGE_OPENVMTOOLS_PAM
define Package/$(PKG_NAME)/description
Open Virtual Machine Tools for VMware guest OS
http://open-vm-tools.sourceforge.net/
ICU locales, Xerces, and X11 tools are currently not supported.
NOTE: Support for vmblock-fuse will be enabled in openvmtools if the
libfuse package is selected.
define Package/open-vm-tools-vm-tools/description
Open Virtual Machine Tools for VMware guest OS
endef
CONFIGURE_PATH = open-vm-tools
MAKE_PATH = open-vm-tools
CONFIGURE_ARGS+= \
--with-dnet \
--without-icu \
--disable-multimon \
--disable-docs \
--disable-tests \
--without-gtkmm \
--without-gtkmm3 \
--without-xerces \
--without-pam \
--disable-grabbitmqproxy \
--disable-vgauth \
--disable-deploypkg \
--without-root-privileges \
--without-kernel-modules \
--without-dnet \
--with-tirpc \
--without-x \
--without-gtk2 \
--without-gtkmm \
--without-kernel-modules \
--disable-deploypkg \
--without-xerces \
--without-ssl \
--without-procps \
--without-pam
# TODO: --without-ssl -procps -pam optionable
--without-gtk3 \
--without-xerces
CONFIGURE_VARS += \
CUSTOM_DNET_CPPFLAGS=" "
MAKE_PATH := open-vm-tools
define Package/open-vm-tools/install
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_BIN) ./files/vmtoolsd.init $(1)/etc/init.d/vmtoolsd
$(eval $(call BuildPackage,$(PKG_NAME)))
$(INSTALL_DIR) $(1)/etc/vmware-tools/
$(INSTALL_DATA) ./files/tools.conf $(1)/etc/vmware-tools/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/scripts/poweroff-vm-default $(1)/etc/vmware-tools/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/scripts/poweron-vm-default $(1)/etc/vmware-tools/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/scripts/resume-vm-default $(1)/etc/vmware-tools/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/scripts/suspend-vm-default $(1)/etc/vmware-tools/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/scripts/common/statechange.subr $(1)/etc/vmware-tools/
$(INSTALL_DIR) $(1)/etc/vmware-tools/scripts/vmware/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/scripts/linux/network $(1)/etc/vmware-tools/scripts/vmware/
$(INSTALL_DIR) $(1)/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/checkvm/.libs/vmware-checkvm $(1)/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/namespacetool/.libs/vmware-namespace-cmd $(1)/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/xferlogs/.libs/vmware-xferlogs $(1)/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/hgfsclient/.libs/vmware-hgfsclient $(1)/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/services/vmtoolsd/.libs/vmtoolsd $(1)/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/rpctool/vmware-rpctool $(1)/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/toolbox/.libs/vmware-toolbox-cmd $(1)/bin/
$(INSTALL_DIR) $(1)/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/open-vm-tools/hgfsmounter/mount.vmhgfs $(1)/sbin/
$(INSTALL_BIN) ./files/shutdown $(1)/sbin/
$(INSTALL_DIR) $(1)/lib/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/libhgfs/.libs/libhgfs.so.0.0.0 $(1)/lib/
$(LN) libhgfs.so.0.0.0 $(1)/lib/libhgfs.so.0
$(LN) libhgfs.so.0.0.0 $(1)/lib/libhgfs.so
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/libguestlib/.libs/libguestlib.so.0.0.0 $(1)/lib/
$(LN) libguestlib.so.0.0.0 $(1)/lib/libguestlib.so.0
$(LN) libguestlib.so.0.0.0 $(1)/lib/libguestlib.so
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/libvmtools/.libs/libvmtools.so.0.0.0 $(1)/lib/
$(LN) libvmtools.so.0.0.0 $(1)/lib/libvmtools.so.0
$(LN) libvmtools.so.0.0.0 $(1)/lib/libvmtools.so
$(INSTALL_DIR) $(1)/usr/lib/open-vm-tools/plugins/common/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/services/plugins/vix/.libs/libvix.so $(1)/usr/lib/open-vm-tools/plugins/common/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/services/plugins/hgfsServer/.libs/libhgfsServer.so $(1)/usr/lib/open-vm-tools/plugins/common/
$(INSTALL_DIR) $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/services/plugins/resolutionKMS/.libs/libresolutionKMS.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/services/plugins/powerOps/.libs/libpowerOps.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/services/plugins/timeSync/.libs/libtimeSync.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/services/plugins/guestInfo/.libs/libguestInfo.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/services/plugins/vmbackup/.libs/libvmbackup.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/
$(INSTALL_DIR) $(1)/lib/udev/rules.d/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/udev/99-vmware-scsi-udev.rules $(1)/lib/udev/rules.d/
$(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/ko/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/services/vmtoolsd/l10n/ko.vmsg $(1)/usr/share/open-vm-tools/messages/ko/vmtoolsd.vmsg
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/toolbox/l10n/ko.vmsg $(1)/usr/share/open-vm-tools/messages/ko/toolboxcmd.vmsg
$(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/de/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/services/vmtoolsd/l10n/de.vmsg $(1)/usr/share/open-vm-tools/messages/de/vmtoolsd.vmsg
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/toolbox/l10n/de.vmsg $(1)/usr/share/open-vm-tools/messages/de/toolboxcmd.vmsg
$(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/ja/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/services/vmtoolsd/l10n/ja.vmsg $(1)/usr/share/open-vm-tools/messages/ja/vmtoolsd.vmsg
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/toolbox/l10n/ja.vmsg $(1)/usr/share/open-vm-tools/messages/ja/toolboxcmd.vmsg
$(INSTALL_DIR) $(1)/usr/share/open-vm-tools/messages/zh_CN/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/open-vm-tools/toolbox/l10n/zh_CN.vmsg $(1)/usr/share/open-vm-tools/messages/zh_CN/toolboxcmd.vmsg
endef
$(eval $(call BuildPackage,open-vm-tools))