mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
open-vm-tools: initial import
This commit is contained in:
parent
184fd5ad0e
commit
faabe3f5a6
@ -0,0 +1,2 @@
|
||||
# load vmxnet kernel module
|
||||
vmxnet
|
74
packages/sysutils/open-vm-tools/package.mk
Normal file
74
packages/sysutils/open-vm-tools/package.mk
Normal file
@ -0,0 +1,74 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2011 Anthony Nash (nash.ant@gmail.com)
|
||||
#
|
||||
# OpenELEC is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# OpenELEC is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="open-vm-tools"
|
||||
PKG_VERSION="stable-10.0.7"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://open-vm-tools.sourceforge.net"
|
||||
PKG_URL="https://github.com/vmware/open-vm-tools/archive/${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain glib:host glib libdnet"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="virtualization"
|
||||
PKG_SHORTDESC="open-vm-tools: open source implementation of VMware Tools"
|
||||
PKG_LONGDESC="open-vm-tools: open source implementation of VMware Tools"
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="yes"
|
||||
|
||||
OPENVMTOOLS_KERNEL_VER=$(basename $(ls -d $ROOT/$BUILD/linux-[0-9]*)| sed 's|linux-||g')
|
||||
|
||||
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-procps \
|
||||
--without-kernel-modules \
|
||||
--with-sysroot=$SYSROOT_PREFIX"
|
||||
|
||||
unpack() {
|
||||
# ugly
|
||||
$SCRIPTS/extract $PKG_NAME "$PKG_VERSION.tar.gz" $BUILD
|
||||
mv $PKG_BUILD/$PKG_NAME/* $PKG_BUILD/
|
||||
rm -r $PKG_BUILD/$PKG_NAME
|
||||
}
|
||||
|
||||
pre_configure_target() {
|
||||
export LIBS="-ldnet"
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -PR libvmtools/.libs/libvmtools.so* $INSTALL/usr/lib
|
||||
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp -PR services/vmtoolsd/.libs/vmtoolsd $INSTALL/usr/bin
|
||||
cp -PR checkvm/.libs/vmware-checkvm $INSTALL/usr/bin
|
||||
}
|
||||
|
||||
post_install() {
|
||||
enable_service open-vm-tools.service
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=OpenVMTools Server
|
||||
After=xorg-server.service
|
||||
|
||||
ConditionPathExists=/usr/bin/vmware-checkvm
|
||||
ConditionPathExists=/usr/bin/vmtoolsd
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/vmtoolsd.pid
|
||||
ExecStart=-/bin/sh -c '/usr/bin/vmware-checkvm && /usr/bin/vmtoolsd --background /var/run/vmtoolsd.pid'
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
Loading…
x
Reference in New Issue
Block a user