mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-18 23:27:01 +02:00
New package: vmware-horizon-client-2303
This commit is contained in:
parent
b6adda5670
commit
81689d74ef
5 changed files with 83 additions and 0 deletions
1
srcpkgs/vmware-horizon-client-smartcard
Symbolic link
1
srcpkgs/vmware-horizon-client-smartcard
Symbolic link
|
@ -0,0 +1 @@
|
|||
vmware-horizon-client
|
5
srcpkgs/vmware-horizon-client/files/ftscanhvd/run
Executable file
5
srcpkgs/vmware-horizon-client/files/ftscanhvd/run
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec 2>&1
|
||||
|
||||
exec /usr/lib/vmware/view/bin/ftscanhvd -D
|
5
srcpkgs/vmware-horizon-client/files/ftsprhvd/run
Executable file
5
srcpkgs/vmware-horizon-client/files/ftsprhvd/run
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec 2>&1
|
||||
|
||||
exec /usr/lib/vmware/view/bin/ftsprhvd -D
|
14
srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
Executable file
14
srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec 2>&1
|
||||
|
||||
for user in $(awk -F'[/:]' '{if ($3 == 0 || ($3 >= 1000 && $3 != 65534)) print $1}' /etc/passwd); do
|
||||
_uid=$(id -u $user)
|
||||
if ! [ -f "/var/run/vmware/${_uid}" ] ; then
|
||||
mkdir -p "/var/run/vmware/${_uid}"
|
||||
chown -R -- "${user}:" "/var/run/vmware/${_uid}"
|
||||
chmod 700 "/var/run/vmware/${_uid}"
|
||||
fi
|
||||
done
|
||||
|
||||
exec /usr/bin/vmware-usbarbitrator -f
|
58
srcpkgs/vmware-horizon-client/template
Normal file
58
srcpkgs/vmware-horizon-client/template
Normal file
|
@ -0,0 +1,58 @@
|
|||
# Template file for 'vmware-horizon-client'
|
||||
pkgname=vmware-horizon-client
|
||||
version=2303
|
||||
revision=1
|
||||
_build1=8.9.0
|
||||
_build2=21435420
|
||||
_cart="CART24FQ1_LIN_${version}"
|
||||
archs="x86_64"
|
||||
short_desc="VMware Horizon virtual desktop client"
|
||||
maintainer="Andrew Benson <abenson@gmail.com>"
|
||||
license="custom:Proprietary"
|
||||
homepage="https://www.vmware.com/go/viewclients"
|
||||
distfiles="https://download3.vmware.com/software/${_cart}_TARBALL/VMware-Horizon-Client-Linux-${version}-${_build1}-${_build2}.tar.gz"
|
||||
checksum=a4dcc6afc0be7641e10e922ccbbab0a10adbf8f2a83e4b5372dfba095091fb78
|
||||
repository=nonfree
|
||||
restricted=yes
|
||||
nopie=yes
|
||||
|
||||
do_install() {
|
||||
# Extract main components and copy into place
|
||||
vmkdir usr
|
||||
for _bundle in Client html5mmr PCoIP USB integratedPrinting scannerClient serialportClient; do
|
||||
bsdtar xf "x64/VMware-Horizon-${_bundle}-${version}-${_build1}-${_build2}.x64.tar.gz"
|
||||
vcopy "VMware-Horizon-${_bundle}-${version}-${_build1}-${_build2}.x64/*" usr/
|
||||
done
|
||||
|
||||
vmkdir etc
|
||||
mv ${DESTDIR}/usr/vmware ${DESTDIR}/etc
|
||||
|
||||
# Replace shipped libav with ours
|
||||
for LIB in 'libavcodec.so.59' 'libavutil.so.57'; do
|
||||
find "${DESTDIR}/usr/lib/vmware/view/" -name "${LIB}" -exec ln -sf "/usr/lib/${LIB}" {} \;
|
||||
done
|
||||
|
||||
# Allow for use of pkcs11 smartcards
|
||||
vmkdir usr/lib/vmware/view/pkcs11
|
||||
ln -sf /usr/lib/pkcs11/opensc-pkcs11.so ${DESTDIR}/usr/lib/vmware/view/pkcs11/libopenscpkcs11.so
|
||||
|
||||
vsv ftscanhvd
|
||||
vsv ftsprhvd
|
||||
vsv vmware-USBArbitrator
|
||||
|
||||
vlicense ${DESTDIR}/usr/doc/open_source_licenses.txt
|
||||
|
||||
rm -rf ${DESTDIR}/usr/README \
|
||||
${DESTDIR}/usr/doc \
|
||||
${DESTDIR}/usr/patches \
|
||||
${DESTDIR}/usr/init.d \
|
||||
${DESTDIR}/usr/systemd
|
||||
}
|
||||
|
||||
vmware-horizon-client-smartcard_package() {
|
||||
short_desc+=" - pkcs11 support"
|
||||
depends="opensc-pkcs11"
|
||||
pkg_install() {
|
||||
vmove usr/lib/vmware/view/pkcs11
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue