# Maintainer: Natanael Copa pkgname=open-vm-tools pkgver=10.1.0 _pkgsubver=${pkgver#*_p} _ver=${pkgver/_p/-} pkgrel=6 pkgdesc="The Open Virtual Machine Tools are the open source implementation of VMware Tools." url="https://github.com/vmware/open-vm-tools/" arch="x86 x86_64" license="LGPL" subpackages="$pkgname-dbg $pkgname-gtk $pkgname-dev" install="$pkgname.pre-install" makedepends="procps-dev libdnet-dev icu-dev glib-dev bash icu-dev gtk+-dev libxext-dev libxinerama-dev libxtst-dev gtkmm-dev fuse-dev libnotify-dev libxrandr-dev libxcomposite-dev libice-dev libsm-dev libtirpc-dev linux-headers libmspack-dev libressl-dev rpcgen automake autoconf libtool m4 doxygen " source="$pkgname-$pkgver.tar.gz::https://github.com/vmware/$pkgname/archive/stable-$_ver.tar.gz 0001-remove-autotools-generated-files.patch 0002-lib-misc-Recognize-Alpine-Linux.patch 0003-open-vm-tools-Add-disable-werror-configure-option.patch 0004-Do-not-assume-that-linux-and-gnu-libc-are-the-same-t.patch 0005-Use-configure-test-for-struct-timespec.patch 0006-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch 0007-Use-configure-to-test-for-feature-instead-of-platfor.patch 0008-Use-configure-test-for-sys-stat.h-include.patch 0009-Rename-poll.h-to-vm_poll.h.patch 0010-Add-support-for-building-with-system-libtirpc.patch 0011-gnu-ucontext.patch 0012-use-posix-strerror_r-unless-gnu.patch 0013-use-off64_t-instead-of-loff_t.patch 0014-remove-references-to-missing-common-agent-etc-config.patch $pkgname.initd $pkgname.confd $pkgname.logrotate " builddir="$srcdir/$pkgname-stable-$_ver" build() { export CUSTOM_PROCPS_NAME="procps" export CFLAGS="$CFLAGS -Wno-unused-but-set-variable -D_GNU_SOURCE" export CXXFLAGS="$CXXFLAGS -std=gnu++11 -fpermissive" cd "$builddir"/open-vm-tools autoreconf -vif || return 1 ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --without-dnet \ --without-xerces \ --with-icu \ --with-procps \ --with-x \ --without-kernel-modules \ --without-pam \ --disable-werror \ || return 1 make || return 1 } package() { cd "$builddir"/open-vm-tools make install DESTDIR="$pkgdir" || return 1 cd "$pkgdir" chmod -x ./etc/vmware-tools/*.conf mv ./etc/vmware-tools/vm-support ./usr/bin/vm-support || return 1 install -D -m 755 "$srcdir"/$pkgname.initd \ ./etc/init.d/$pkgname || return 1 install -D -m 644 "$srcdir"/$pkgname.confd \ ./etc/conf.d/$pkgname || return 1 install -D -m 644 "$srcdir"/$pkgname.logrotate \ ./etc/logrotate.d/$pkgname || return 1 mkdir -p ./etc/modules-load.d/ cat > ./etc/modules-load.d/$pkgname <<-EOF vmblock vmci vmhgfs vmsync vmxnet vsock vmw_balloon EOF } gtk() { pkgdesc="Xorg apps and plugins for open-vm-tools" mkdir -p "$subpkgdir"/usr/bin \ "$subpkgdir"/usr/lib/open-vm-tools/plugins \ "$subpkgdir"/etc/ mv "$pkgdir"/usr/bin/vmware-user-suid-wrapper \ "$pkgdir"/usr/bin/vmware-vmblock-fuse \ "$subpkgdir"/usr/bin/ || return 1 mv "$pkgdir"/etc/xdg "$subpkgdir"/etc/ || return 1 mv "$pkgdir"/usr/lib/open-vm-tools/plugins/vmusr \ "$subpkgdir"/usr/lib/open-vm-tools/plugins/ } sha512sums="f497b828510ebc2a88788ad5292047f20513c844e889b3f652ecce382efd6d4672560be7387b55dcb7300cfdde5c8eda407836c9b75614c018e058bb169b374d open-vm-tools-10.1.0.tar.gz 529d2c43f8a9ab011dd60da6bcbbc09f26c1aed350e1e712ac1a6e9d363010d842e0cc19e5bbcea08a130d33a3916519d8fa7326c3f6aba352820d1a0afff636 0001-remove-autotools-generated-files.patch 1c5766a040cc7ffcaba407960b502c0d3a67f5b3d6e090f789a547cce9c9dc45980a33220f9a619d731ddebbc8a442a4810f7a48269df0c5f24504de148ba352 0002-lib-misc-Recognize-Alpine-Linux.patch c83f2fab23c792c9898ccba0cb1eee824f9f00b22ed66b0d565f7a7ef33ea5f6516672680aa7800544eb4c2fb40f6601aba83e72c1cd201d26ef8b0f7ee2f104 0003-open-vm-tools-Add-disable-werror-configure-option.patch d5347aaba372415688c7d6addf107e15b2c8c57d4817b42c478481a6958b661a4cfa7b35191dbef0e181e52e0761046bcb73297a0982603f04a0da4af2b5591d 0004-Do-not-assume-that-linux-and-gnu-libc-are-the-same-t.patch 9031103755ab41ae98d03f11c8d50621b15ba9f6e1b41d6d9229379513cff3a01fdf13fd20aaa39f1a8883eefc574733f57f423369fe0143e11d176764fefc1b 0005-Use-configure-test-for-struct-timespec.patch 894b667737191c0e6cc5f78d85579089506c062fb831821dd2ef7be56e435bc17e0cd74082ef3b7aaaab59e601bd0c336caff456d97bc9b15caa61c73be2d55d 0006-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch 856e797d94fe3c075f89797679df514b2cce99978e69d0d109763f9465eabaf6721f980fcf81af6913ecbea5b413108db3f87614a3e3c71dd04d0f20d2d91f47 0007-Use-configure-to-test-for-feature-instead-of-platfor.patch 57cb8b3e448bd39fa1cb75c82a4b607b9e27b1e15e87db710ab4f6d9da68dc8dddb2337e3608a9cae4ee0d2ec6c65e2d601750864ab73863cd84d32156aea9a2 0008-Use-configure-test-for-sys-stat.h-include.patch d2929a7da8b2a6ceee97d573483ed7b7f7e2f2ca9ff3be81882ed67a6504b9f9b26769dac28be3a96e3a960416786f72c7301b5add159553489f7d2ffec6d07f 0009-Rename-poll.h-to-vm_poll.h.patch 8340b6043b9f69cf8db11711033f5dc45b71b8e16bacf96c5288ab33af25f39cc17a838efeca9302e289da8042d59fb10e4a4855b3725c3d28a678a383f1e62f 0010-Add-support-for-building-with-system-libtirpc.patch d0551458fa6a9d9fd3e576f856fb0269e1a40930ab625bd5243a256a90ca89b3a90e7bd97678ca831fbeabd766c993f9a648089afe830ac6299587e7d710d217 0011-gnu-ucontext.patch 4d55f8bc31afe70831992b70e600a47078026d0f00215ef8284a97859d05167d33e23c2512bc17827b396cab070e2a200ae667d4dc918fef98c059559575e822 0012-use-posix-strerror_r-unless-gnu.patch af109a9aab9da5f312e1f06a4db318f577a5bbb22a8974892a9a1f6941865fea663694362dd8ffb0d8cbe776f3297458bec1004131b3e92b8da003506087df39 0013-use-off64_t-instead-of-loff_t.patch d30c74e2de1ae729fb0eec9f510c89b9c5180478b3ace625dd7a0b3fa3fd269ddbdcf802c6c014e39da794b36891beed2f5b85e7c6a0179ec0723ee6be390782 0014-remove-references-to-missing-common-agent-etc-config.patch d4d0c0c3042eef4d241c933de6f7c398a88275744b3576efc2f909acd681752f548e4ae4a17eca7db731ee0b9254b46169a48463d12a72ec6354065d788159f4 open-vm-tools.initd ffc9c945a41e48791bab61ba72fed96c1a6ae3722caa715424e3077d167421b4e2f53bb4d415ab227d1f6e40d6ca3779df41e6b0a38db34b520979fa2b19298d open-vm-tools.confd 5626c68b8ee01ece804f314b829476280e892581a448c27092e32a60b04d40ecfa8e8eca464c4376c3cfc497eb60406798b7383d1a747a173d3cd8b78d23100b open-vm-tools.logrotate"