1 ################################################################################
5 ################################################################################
7 OPENVMTOOLS_VERSION = 9.10.0-2476743
8 OPENVMTOOLS_SOURCE = open-vm-tools-$(OPENVMTOOLS_VERSION).tar.gz
9 OPENVMTOOLS_SITE = http://downloads.sourceforge.net/project/open-vm-tools/open-vm-tools/stable-9.10.0
10 OPENVMTOOLS_LICENSE = LGPLv2.1
11 OPENVMTOOLS_LICENSE_FILES = COPYING
12 # Autoreconf needed or config/missing will run configure again at buildtime
13 OPENVMTOOLS_AUTORECONF = YES
14 OPENVMTOOLS_CONF_OPTS = --with-dnet \
15 --without-icu --without-x --without-gtk2 \
16 --without-gtkmm --without-kernel-modules \
17 --disable-deploypkg --without-xerces
18 OPENVMTOOLS_CONF_ENV += CUSTOM_DNET_CPPFLAGS=" "
19 OPENVMTOOLS_DEPENDENCIES = libglib2 libdnet
21 # When libfuse is available, openvmtools can build vmblock-fuse, so
22 # make sure that libfuse gets built first
23 ifeq ($(BR2_PACKAGE_LIBFUSE),y)
24 OPENVMTOOLS_DEPENDENCIES += libfuse
27 ifeq ($(BR2_PACKAGE_OPENSSL),y)
28 OPENVMTOOLS_CONF_OPTS += --with-ssl
29 OPENVMTOOLS_DEPENDENCIES += openssl
31 OPENVMTOOLS_CONF_OPTS += --without-ssl
34 ifeq ($(BR2_PACKAGE_OPENVMTOOLS_PROCPS),y)
35 OPENVMTOOLS_CONF_OPTS += --with-procps
36 OPENVMTOOLS_DEPENDENCIES += procps-ng
38 OPENVMTOOLS_CONF_OPTS += --without-procps
41 ifeq ($(BR2_PACKAGE_OPENVMTOOLS_PAM),y)
42 OPENVMTOOLS_CONF_OPTS += --with-pam
43 OPENVMTOOLS_DEPENDENCIES += linux-pam
45 OPENVMTOOLS_CONF_OPTS += --without-pam
48 # symlink needed by lib/system/systemLinux.c (or will cry in /var/log/messages)
49 # defined in lib/misc/hostinfoPosix.c
50 # /sbin/shutdown needed for Guest OS restart/shutdown from hypervisor
51 define OPENVMTOOLS_POST_INSTALL_TARGET_THINGIES
52 ln -fs os-release $(TARGET_DIR)/etc/lfs-release
53 if [ ! -e $(TARGET_DIR)/sbin/shutdown ]; then \
54 $(INSTALL) -D -m 755 package/openvmtools/shutdown \
55 $(TARGET_DIR)/sbin/shutdown; \
59 OPENVMTOOLS_POST_INSTALL_TARGET_HOOKS += OPENVMTOOLS_POST_INSTALL_TARGET_THINGIES
61 define OPENVMTOOLS_INSTALL_INIT_SYSV
62 $(INSTALL) -D -m 755 package/openvmtools/S10vmtoolsd \
63 $(TARGET_DIR)/etc/init.d/S10vmtoolsd
66 define OPENVMTOOLS_INSTALL_INIT_SYSTEMD
67 $(INSTALL) -D -m 644 package/openvmtools/vmtoolsd.service \
68 $(TARGET_DIR)/usr/lib/systemd/system/vmtoolsd.service
69 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
70 ln -fs ../../../../usr/lib/systemd/system/vmtoolsd.service \
71 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/vmtoolsd.service
74 $(eval $(autotools-package))