The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / openvmtools / openvmtools.mk
1 ################################################################################
2 #
3 # openvmtools
4 #
5 ################################################################################
6
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
20
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
25 endif
26
27 ifeq ($(BR2_PACKAGE_OPENSSL),y)
28 OPENVMTOOLS_CONF_OPTS += --with-ssl
29 OPENVMTOOLS_DEPENDENCIES += openssl
30 else
31 OPENVMTOOLS_CONF_OPTS += --without-ssl
32 endif
33
34 ifeq ($(BR2_PACKAGE_OPENVMTOOLS_PROCPS),y)
35 OPENVMTOOLS_CONF_OPTS += --with-procps
36 OPENVMTOOLS_DEPENDENCIES += procps-ng
37 else
38 OPENVMTOOLS_CONF_OPTS += --without-procps
39 endif
40
41 ifeq ($(BR2_PACKAGE_OPENVMTOOLS_PAM),y)
42 OPENVMTOOLS_CONF_OPTS += --with-pam
43 OPENVMTOOLS_DEPENDENCIES += linux-pam
44 else
45 OPENVMTOOLS_CONF_OPTS += --without-pam
46 endif
47
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; \
56         fi
57 endef
58
59 OPENVMTOOLS_POST_INSTALL_TARGET_HOOKS += OPENVMTOOLS_POST_INSTALL_TARGET_THINGIES
60
61 define OPENVMTOOLS_INSTALL_INIT_SYSV
62         $(INSTALL) -D -m 755 package/openvmtools/S10vmtoolsd \
63                 $(TARGET_DIR)/etc/init.d/S10vmtoolsd
64 endef
65
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
72 endef
73
74 $(eval $(autotools-package))