Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding open-vm-tools #1963

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions community/open-vm-tools/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Maintainer: Sergej Pupykin <[email protected]>
# Contributor: Krzysztof Raczkowski <[email protected]>

pkgname=open-vm-tools
epoch=6
pkgver=12.1.5
pkgrel=1
pkgdesc='The Open Virtual Machine Tools (open-vm-tools) are the open source implementation of VMware Tools'
arch=('x86_64' 'aarch64')
url='https://github.com/vmware/open-vm-tools'
license=('LGPL')
depends=('fuse2' 'icu' 'iproute2' 'libdnet' 'libmspack' 'libsigc++'
'libxcrypt' 'libcrypt.so' 'libxss' 'lsb-release' 'procps-ng'
'uriparser' 'gdk-pixbuf-xlib')
makedepends=('chrpath' 'doxygen' 'gtkmm3' 'libxtst' 'python' 'rpcsvc-proto')
checkdepends=('cunit')
optdepends=('gtkmm3: DnD/CP plugin'
'libxtst: DnD/CP, resolution set plugins'
'netctl: suspend-resume network state'
'networkmanager: suspend-resume network state')
backup=('etc/xdg/autostart/vmware-user.desktop')
options=('docs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/vmware/open-vm-tools/archive/stable-${pkgver/_/-}.tar.gz"
'vmtoolsd.service'
'vmware-vmblock-fuse.service')
sha256sums=('678d08b46fba15f2b4c39245b5bc4deec30284d6f13ee279c233bc3d3627ec8a'
'0626cc86232f75a7286c24c52d6b44260bba55e2e96c17fa22ed36decb61a4d9'
'99e3cc1da20a751049144cc02dec77174a55109b5b5960e1facd78709da7724f')

prepare() {
cd "$srcdir/$pkgname-stable-${pkgver}/open-vm-tools/"

autoreconf -vi
}

build() {
cd "$srcdir/$pkgname-stable-${pkgver}/open-vm-tools/"

sh ./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--with-udev-rules-dir=/usr/lib/udev/rules.d \
--without-xmlsecurity \
--without-kernel-modules
make
}

check() {
cd "$srcdir/$pkgname-stable-${pkgver}/open-vm-tools/"

make check
}

package() {
cd "$srcdir/$pkgname-stable-${pkgver}/open-vm-tools/"

make install DESTDIR="$pkgdir"
chmod 7755 "$pkgdir"/usr/bin/vmware-user-suid-wrapper

# install vmware-xdg-detect-de
install -D -m0755 scripts/common/vmware-xdg-detect-de "$pkgdir"/usr/bin/vmware-xdg-detect-de

# install systemd files
install -D -m0644 "$srcdir"/vmtoolsd.service "$pkgdir"/usr/lib/systemd/system/vmtoolsd.service
install -D -m0644 "$srcdir"/vmware-vmblock-fuse.service "$pkgdir"/usr/lib/systemd/system/vmware-vmblock-fuse.service
}
10 changes: 10 additions & 0 deletions community/open-vm-tools/vmtoolsd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Open Virtual Machine Tools (VMware Tools)
ConditionVirtualization=vmware
After=display-manager.service

[Service]
ExecStart=/usr/bin/vmtoolsd

[Install]
WantedBy=multi-user.target
12 changes: 12 additions & 0 deletions community/open-vm-tools/vmware-vmblock-fuse.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Open Virtual Machine Tools (vmware-vmblock-fuse)
ConditionVirtualization=vmware

[Service]
Type=simple
RuntimeDirectory=vmblock-fuse
RuntimeDirectoryMode=755
ExecStart=/usr/bin/vmware-vmblock-fuse -d -f -o subtype=vmware-vmblock,default_permissions,allow_other /run/vmblock-fuse

[Install]
WantedBy=multi-user.target