distribution/packages/sysutils/open-vm-tools/package.mk

54 lines
1.9 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00: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)
PKG_NAME="open-vm-tools"
PKG_VERSION="stable-10.3.10"
PKG_SHA256="6e39e643edcd85bae04ba8db608bd500d14ff3771e6e89b171ffb31020fed945"
PKG_ARCH="x86_64"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/vmware/open-vm-tools"
PKG_URL="https://github.com/vmware/open-vm-tools/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain fuse glib:host glib libdnet libtirpc"
PKG_LONGDESC="open-vm-tools: open source implementation of VMware Tools"
PKG_TOOLCHAIN="autotools"
PKG_CONFIGURE_OPTS_TARGET="--disable-docs \
--disable-tests \
--disable-deploypkg \
--without-pam \
--without-gtk2 \
--without-gtkmm \
--without-ssl \
--without-x \
--without-xerces \
--without-icu \
--without-kernel-modules \
--with-udev-rules-dir=/usr/lib/udev/rules.d/ \
2023-02-24 13:53:43 +00:00
--with-sysroot=${SYSROOT_PREFIX}"
2022-02-05 14:23:32 +00:00
post_unpack() {
2023-02-24 13:53:43 +00:00
mv ${PKG_BUILD}/${PKG_NAME}/* ${PKG_BUILD}/
2022-02-05 14:23:32 +00:00
2023-02-24 13:53:43 +00:00
sed -i -e 's|.*common-agent/etc/config/Makefile.*||' ${PKG_BUILD}/configure.ac
mkdir -p ${PKG_BUILD}/common-agent/etc/config
2022-02-05 14:23:32 +00:00
}
pre_configure_target() {
export LIBS="-ldnet -ltirpc"
}
post_makeinstall_target() {
2023-02-24 13:53:43 +00:00
rm -rf ${INSTALL}/sbin
rm -rf ${INSTALL}/usr/share
rm -rf ${INSTALL}/etc/vmware-tools/scripts/vmware/network
2022-02-05 14:23:32 +00:00
2023-02-24 13:53:43 +00:00
find ${INSTALL}/etc/vmware-tools/ -type f | xargs sed -i '/.*expr.*/d'
2022-02-05 14:23:32 +00:00
}
post_install() {
enable_service vmtoolsd.service
enable_service vmware-vmblock-fuse.service
}