void-packages/srcpkgs/open-vm-tools/template
2018-03-04 10:21:40 +00:00

51 lines
1.6 KiB
Bash

pkgname="open-vm-tools"
version="10.1.15"
revision=2
wrksrc="${pkgname}-stable-${version}"
build_wrksrc="open-vm-tools"
build_style=gnu-configure
short_desc="The open source implementation of VMware Tools"
maintainer="Carson Page <pagem.carson@gmail.com>"
license="GPL-2"
homepage="https://github.com/vmware/open-vm-tools"
distfiles="${homepage}/archive/stable-${version}.tar.gz"
checksum=2257122f5fee37bf1da1a764708a098b2e8d2847b5ba23dbffe97fd9c4b4214f
build_options="pam x11"
build_options_default="pam x11"
hostmakedepends="rpcgen automake libtool pkg-config"
makedepends="icu-devel libdnet-devel procps-ng-devel libmspack-devel glib-devel
fuse-devel $(vopt_if pam pam-devel) $(vopt_if x11 'gtkmm2-devel libXext-devel
libX11-devel libXinerama-devel libXi-devel libXrender-devel libXrandr-devel
libXtst-devel') libressl-devel libxerces-c-devel xmlsec1-devel"
configure_args="--sbindir=/usr/bin --with-udev-rules-dir=/usr/lib/udev/rules.d
--without-xmlsecurity --without-kernel-modules
$(vopt_with x11 x) $(vopt_with pam)"
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="Musl requires addl. patches";;
"arm"*|"aarch"*) broken=yes;;
esac
pre_configure() {
autoreconf -vfi
}
post_install() {
# Get rid of unwanted symlinks
rm ${DESTDIR}/sbin/mount.vmhgfs
rm -r ${DESTDIR}/sbin
# If X11 enabled, copy extra files
if [ -n $(vopt_if x11 'y') ]
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 07755 ${DESTDIR}/usr/bin/vmware-user-suid-wrapper
fi
# Install service
vsv vmtoolsd
}