2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2011 Anthony Nash (nash.ant@gmail.com)
|
|
|
|
|
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
|
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2016-01-15 23:32:59 +01:00
|
|
|
|
|
|
|
|
PKG_NAME="open-vm-tools"
|
2022-05-26 12:01:06 +00:00
|
|
|
PKG_VERSION="12.0.5"
|
|
|
|
|
PKG_SHA256="19ec67984347bb5f867a5646658c7695352cef772c4bee212a0d9216f02ebd93"
|
2016-01-15 23:32:59 +01:00
|
|
|
PKG_ARCH="x86_64"
|
|
|
|
|
PKG_LICENSE="GPL"
|
2017-05-10 22:29:02 +01:00
|
|
|
PKG_SITE="https://github.com/vmware/open-vm-tools"
|
2020-12-27 20:30:27 +01:00
|
|
|
PKG_URL="https://github.com/vmware/open-vm-tools/archive/stable-${PKG_VERSION}.tar.gz"
|
2018-06-10 15:06:56 +02:00
|
|
|
PKG_DEPENDS_TARGET="toolchain fuse glib:host glib libdnet libtirpc"
|
2016-01-15 23:32:59 +01:00
|
|
|
PKG_LONGDESC="open-vm-tools: open source implementation of VMware Tools"
|
2017-10-24 23:23:02 +02:00
|
|
|
PKG_TOOLCHAIN="autotools"
|
2016-01-15 23:32:59 +01:00
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-docs \
|
|
|
|
|
--disable-tests \
|
2022-03-06 02:26:11 +00:00
|
|
|
--disable-containerinfo \
|
2016-01-15 23:32:59 +01:00
|
|
|
--disable-deploypkg \
|
|
|
|
|
--without-pam \
|
|
|
|
|
--without-gtk2 \
|
|
|
|
|
--without-gtkmm \
|
|
|
|
|
--without-ssl \
|
|
|
|
|
--without-x \
|
|
|
|
|
--without-xerces \
|
|
|
|
|
--without-icu \
|
|
|
|
|
--without-kernel-modules \
|
2017-01-17 11:11:51 -08:00
|
|
|
--with-udev-rules-dir=/usr/lib/udev/rules.d/ \
|
2021-01-19 19:34:16 +00:00
|
|
|
--with-sysroot=${SYSROOT_PREFIX}"
|
2016-01-15 23:32:59 +01:00
|
|
|
|
2021-02-22 19:32:36 +01:00
|
|
|
configure_package() {
|
|
|
|
|
PKG_CONFIGURE_SCRIPT="${PKG_BUILD}/open-vm-tools/configure"
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-23 14:34:10 +01:00
|
|
|
post_unpack() {
|
2019-09-24 19:28:34 +01:00
|
|
|
# Hack to allow package to be bumped without linking against old libraries
|
|
|
|
|
rm -f ${SYSROOT_PREFIX}/usr/lib/libvmtools*
|
2016-01-15 23:32:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2018-06-10 15:06:56 +02:00
|
|
|
export LIBS="-ldnet -ltirpc"
|
2016-01-15 23:32:59 +01:00
|
|
|
}
|
|
|
|
|
|
2022-01-08 10:22:19 +00:00
|
|
|
post_configure_target() {
|
|
|
|
|
libtool_remove_rpath libtool
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-15 15:57:52 -07:00
|
|
|
post_makeinstall_target() {
|
2021-01-19 19:34:16 +00:00
|
|
|
rm -rf ${INSTALL}/sbin
|
|
|
|
|
rm -rf ${INSTALL}/usr/share
|
|
|
|
|
rm -rf ${INSTALL}/etc/vmware-tools/scripts/vmware/network
|
2016-01-15 23:32:59 +01:00
|
|
|
|
2021-01-19 19:34:16 +00:00
|
|
|
chmod -x ${INSTALL}/usr/lib/udev/rules.d/*.rules
|
2019-09-23 18:30:16 +01:00
|
|
|
|
2021-01-19 19:34:16 +00:00
|
|
|
find ${INSTALL}/etc/vmware-tools/ -type f | xargs sed -i '/.*expr.*/d'
|
2016-01-15 23:32:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post_install() {
|
2016-06-15 15:57:52 -07:00
|
|
|
enable_service vmtoolsd.service
|
|
|
|
|
enable_service vmware-vmblock-fuse.service
|
2016-01-15 23:32:59 +01:00
|
|
|
}
|