2014-09-02 18:13:36 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# openvmtools
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-07-02 13:18:47 +02:00
|
|
|
OPENVMTOOLS_VERSION = stable-9.10.2
|
2015-06-15 10:47:48 +02:00
|
|
|
OPENVMTOOLS_SITE = $(call github,vmware,open-vm-tools,$(OPENVMTOOLS_VERSION))
|
2015-06-21 13:25:03 +02:00
|
|
|
OPENVMTOOLS_SUBDIR = open-vm-tools
|
2014-09-02 18:13:36 +02:00
|
|
|
OPENVMTOOLS_LICENSE = LGPLv2.1
|
2015-06-21 13:25:03 +02:00
|
|
|
OPENVMTOOLS_LICENSE_FILES = $(OPENVMTOOLS_SUBDIR)/COPYING
|
2015-03-29 18:59:20 +02:00
|
|
|
# Autoreconf needed or config/missing will run configure again at buildtime
|
2014-09-02 18:13:36 +02:00
|
|
|
OPENVMTOOLS_AUTORECONF = YES
|
2015-03-29 18:59:20 +02:00
|
|
|
OPENVMTOOLS_CONF_OPTS = --with-dnet \
|
|
|
|
--without-icu --without-x --without-gtk2 \
|
|
|
|
--without-gtkmm --without-kernel-modules \
|
|
|
|
--disable-deploypkg --without-xerces
|
|
|
|
OPENVMTOOLS_CONF_ENV += CUSTOM_DNET_CPPFLAGS=" "
|
|
|
|
OPENVMTOOLS_DEPENDENCIES = libglib2 libdnet
|
2014-09-02 18:13:36 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2015-03-29 18:59:20 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
OPENVMTOOLS_CONF_OPTS += --with-ssl
|
|
|
|
OPENVMTOOLS_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
OPENVMTOOLS_CONF_OPTS += --without-ssl
|
|
|
|
endif
|
|
|
|
|
2014-09-02 18:13:36 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENVMTOOLS_PROCPS),y)
|
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_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
|
|
|
|
|
2015-07-02 13:18:47 +02:00
|
|
|
# configure needs execution permission
|
|
|
|
define OPENVMTOOLS_PRE_CONFIGURE_CHMOD
|
|
|
|
chmod 0755 $(@D)/$(OPENVMTOOLS_SUBDIR)/configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
OPENVMTOOLS_PRE_CONFIGURE_HOOKS += OPENVMTOOLS_PRE_CONFIGURE_CHMOD
|
|
|
|
|
2014-09-02 18:13:36 +02:00
|
|
|
# symlink needed by lib/system/systemLinux.c (or will cry in /var/log/messages)
|
2015-03-29 18:59:20 +02:00
|
|
|
# defined in lib/misc/hostinfoPosix.c
|
2014-09-02 18:13:36 +02:00
|
|
|
# /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 \
|
2015-03-20 20:13:54 +01:00
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/vmtoolsd.service
|
2014-09-02 18:13:36 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
2015-03-20 20:13:54 +01:00
|
|
|
ln -fs ../../../../usr/lib/systemd/system/vmtoolsd.service \
|
2014-09-02 18:13:36 +02:00
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/vmtoolsd.service
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|