2014-09-02 18:13:36 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# openvmtools
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
OPENVMTOOLS_VERSION = 9.4.6-1770165
|
|
|
|
OPENVMTOOLS_SOURCE = open-vm-tools-$(OPENVMTOOLS_VERSION).tar.gz
|
|
|
|
OPENVMTOOLS_SITE = http://downloads.sourceforge.net/project/open-vm-tools/open-vm-tools/stable-9.4.x
|
|
|
|
OPENVMTOOLS_LICENSE = LGPLv2.1
|
|
|
|
OPENVMTOOLS_LICENSE_FILES = COPYING
|
|
|
|
# Autoreconf needed because package is distributed without a configure script
|
|
|
|
# See http://sourceforge.net/p/open-vm-tools/mailman/message/32550385/
|
|
|
|
OPENVMTOOLS_AUTORECONF = YES
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENVMTOOLS_CONF_OPTS = --without-icu --without-x --without-gtk2 --without-gtkmm --without-kernel-modules
|
2014-09-02 18:13:36 +02:00
|
|
|
OPENVMTOOLS_DEPENDENCIES = libglib2
|
|
|
|
|
|
|
|
# When libfuse is available, openvmtools can build vmblock-fuse, so
|
|
|
|
# make sure that libfuse gets built first
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFUSE),y)
|
|
|
|
OPENVMTOOLS_DEPENDENCIES += libfuse
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENVMTOOLS_PROCPS),y)
|
2015-02-14 12:42:50 +01:00
|
|
|
# Set CUSTOM_PROCPS_LIBS to " " otherwise -L/lib is used by default.
|
|
|
|
OPENVMTOOLS_CONF_ENV += CUSTOM_PROCPS_NAME=procps \
|
|
|
|
CUSTOM_PROCPS_LIBS=" "
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENVMTOOLS_CONF_OPTS += --with-procps
|
2014-09-02 18:13:36 +02:00
|
|
|
OPENVMTOOLS_DEPENDENCIES += procps-ng
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENVMTOOLS_CONF_OPTS += --without-procps
|
2014-09-02 18:13:36 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENVMTOOLS_DNET),y)
|
|
|
|
# Needed because if it is defined configure will
|
|
|
|
# use a different method to check for dnet
|
|
|
|
OPENVMTOOLS_CONF_ENV += CUSTOM_DNET_CPPFLAGS=" "
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENVMTOOLS_CONF_OPTS += --with-dnet
|
2014-09-02 18:13:36 +02:00
|
|
|
OPENVMTOOLS_DEPENDENCIES += libdnet
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENVMTOOLS_CONF_OPTS += --without-dnet
|
2014-09-02 18:13:36 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENVMTOOLS_PAM),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENVMTOOLS_CONF_OPTS += --with-pam
|
2014-09-02 18:13:36 +02:00
|
|
|
OPENVMTOOLS_DEPENDENCIES += linux-pam
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENVMTOOLS_CONF_OPTS += --without-pam
|
2014-09-02 18:13:36 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# symlink needed by lib/system/systemLinux.c (or will cry in /var/log/messages)
|
|
|
|
# /sbin/shutdown needed for Guest OS restart/shutdown from hypervisor
|
|
|
|
define OPENVMTOOLS_POST_INSTALL_TARGET_THINGIES
|
|
|
|
ln -fs os-release $(TARGET_DIR)/etc/lfs-release
|
|
|
|
if [ ! -e $(TARGET_DIR)/sbin/shutdown ]; then \
|
|
|
|
$(INSTALL) -D -m 755 package/openvmtools/shutdown \
|
|
|
|
$(TARGET_DIR)/sbin/shutdown; \
|
|
|
|
fi
|
|
|
|
endef
|
|
|
|
|
|
|
|
OPENVMTOOLS_POST_INSTALL_TARGET_HOOKS += OPENVMTOOLS_POST_INSTALL_TARGET_THINGIES
|
|
|
|
|
|
|
|
define OPENVMTOOLS_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 755 package/openvmtools/S10vmtoolsd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S10vmtoolsd
|
|
|
|
endef
|
|
|
|
|
|
|
|
define OPENVMTOOLS_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/openvmtools/vmtoolsd.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/vmtoolsd.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -fs ../vmtoolsd.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/vmtoolsd.service
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|