diff --git a/community/open-vm-tools/PKGBUILD b/community/open-vm-tools/PKGBUILD new file mode 100644 index 0000000000..312dafe9b2 --- /dev/null +++ b/community/open-vm-tools/PKGBUILD @@ -0,0 +1,67 @@ +# Maintainer: Sergej Pupykin +# Contributor: Krzysztof Raczkowski + +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 +} diff --git a/community/open-vm-tools/vmtoolsd.service b/community/open-vm-tools/vmtoolsd.service new file mode 100644 index 0000000000..90e9203bad --- /dev/null +++ b/community/open-vm-tools/vmtoolsd.service @@ -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 diff --git a/community/open-vm-tools/vmware-vmblock-fuse.service b/community/open-vm-tools/vmware-vmblock-fuse.service new file mode 100644 index 0000000000..9e4d2a3121 --- /dev/null +++ b/community/open-vm-tools/vmware-vmblock-fuse.service @@ -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