49 lines
1.6 KiB
Bash
49 lines
1.6 KiB
Bash
# Template file for 'open-vm-tools'
|
|
pkgname=open-vm-tools
|
|
version=12.3.0
|
|
revision=3
|
|
archs="x86_64* i686* aarch64*"
|
|
build_wrksrc="open-vm-tools"
|
|
build_style=gnu-configure
|
|
configure_args="--sbindir=/usr/bin --with-udev-rules-dir=/usr/lib/udev/rules.d
|
|
--without-xmlsecurity --without-kernel-modules --disable-containerinfo --disable-glibc-check
|
|
$(vopt_with x11 x) $(vopt_with pam)"
|
|
hostmakedepends="automake libtool pkg-config glib-devel rpcsvc-proto"
|
|
makedepends="fuse-devel glib-devel libmspack-devel openssl-devel libtirpc-devel
|
|
libxerces-c-devel $(vopt_if pam 'pam-devel')
|
|
$(vopt_if x11 'gdk-pixbuf-xlib-devel gtkmm-devel libXtst-devel xmlsec1-devel')"
|
|
short_desc="Open source implementation of VMware Tools"
|
|
maintainer="Piraty <mail@piraty.dev>"
|
|
license="GPL-2.0-only, LGPL-2.1-only"
|
|
homepage="https://github.com/vmware/open-vm-tools"
|
|
changelog="https://raw.githubusercontent.com/vmware/open-vm-tools/master/ReleaseNotes.md"
|
|
distfiles="https://github.com/vmware/open-vm-tools/archive/refs/tags/stable-${version}.tar.gz"
|
|
checksum=c69f7bcd4262726758302d20e594b2f11012334c9e53c47dabf8f4d0fdd16fff
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
|
|
makedepends+=" libxcrypt-devel"
|
|
fi
|
|
|
|
build_options="pam x11"
|
|
build_options_default="pam x11"
|
|
|
|
pre_configure() {
|
|
autoreconf -vfi
|
|
}
|
|
|
|
post_install() {
|
|
if [ "$build_option_x11" ]; then
|
|
vmkdir /etc/xdg/autostart
|
|
vinstall vmware-user-suid-wrapper/vmware-user.desktop 0644 /etc/xdg/autostart/
|
|
vbin scripts/common/vmware-xdg-detect-de
|
|
chmod 4755 "${DESTDIR}/usr/bin/vmware-user-suid-wrapper"
|
|
fi
|
|
|
|
if [ ! "$build_option_pam" ]; then
|
|
rm -rf "${DESTDIR}/etc/pam.d/vmtoolsd"
|
|
fi
|
|
|
|
vsv vmtoolsd
|
|
vsv vmware-vmblock-fuse
|
|
}
|