Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: vmware-horizon-client-2303
@ 2023-04-21 11:23 abenson
  2023-04-21 13:08 ` [PR PATCH] [Updated] " abenson
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: abenson @ 2023-04-21 11:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 675 bytes --]

There is a new pull request by abenson against master on the void-packages repository

https://github.com/abenson/void-packages np_vmwarehorizon
https://github.com/void-linux/void-packages/pull/43564

New package: vmware-horizon-client-2303
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


#### Local build testing
- I built this PR locally for my native architecture, x86_64

A patch file from https://github.com/void-linux/void-packages/pull/43564.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-np_vmwarehorizon-43564.patch --]
[-- Type: text/x-diff, Size: 5922 bytes --]

From d976ca7b3d2bb5fee2721a00a1220421a7fb583f Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson@gmail.com>
Date: Thu, 20 Apr 2023 20:41:43 -0500
Subject: [PATCH 1/2] New package: libudev0-shim-1

---
 common/shlibs                  |  1 +
 srcpkgs/libudev0-shim/template | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 srcpkgs/libudev0-shim/template

diff --git a/common/shlibs b/common/shlibs
index 0b05cd99d6b3..457f56f34ca3 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -217,6 +217,7 @@ libpcrecpp.so.0 libpcrecpp-7.8_1
 libgirepository-gimarshallingtests-1.0.so libgirepository-1.30_1
 libgirepository-everything-1.0.so libgirepository-1.30_1
 libgirepository-1.0.so.1 libgirepository-1.30_1
+libudev.so.0 libudev0-shim-1_1
 libudev.so.1 eudev-libudev-1.6_1
 libgudev-1.0.so.0 libgudev-230_1
 libumockdev.so.0 libumockdev-0.17.6_1
diff --git a/srcpkgs/libudev0-shim/template b/srcpkgs/libudev0-shim/template
new file mode 100644
index 000000000000..0bfb47a6fb1e
--- /dev/null
+++ b/srcpkgs/libudev0-shim/template
@@ -0,0 +1,21 @@
+# Template file for 'libudev0-shim'
+pkgname=libudev0-shim
+version=1
+revision=1
+build_style=gnu-makefile
+makedepends="eudev-libudev-devel"
+short_desc="libudev.so.0 compatibility library"
+maintainer="Andrew Benson <abenson@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/archlinux/libudev0-shim"
+distfiles="https://github.com/archlinux/libudev0-shim/archive/v${version}.tar.gz"
+checksum=24a1072fa437935d6c4e1d9c1ce84f4ad1d7be45026f6ee7b0b3d77ec0f66e3c
+
+do_build() {
+	unset LDFLAGS
+	make
+}
+
+do_install() {
+	vinstall libudev.so.0.0.9999 0755 usr/lib libudev.so.0
+}

From c82051cadc478d44dcdde65d483c8a94893745b3 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson@gmail.com>
Date: Thu, 20 Apr 2023 20:31:43 -0500
Subject: [PATCH 2/2] New package: vmware-horizon-client-2303

---
 srcpkgs/vmware-horizon-client-smartcard       |  1 +
 .../vmware-horizon-client/files/ftscanhvd/run |  5 ++
 .../vmware-horizon-client/files/ftsprhvd/run  |  5 ++
 .../files/vmware-USBArbitrator/run            |  5 ++
 srcpkgs/vmware-horizon-client/template        | 58 +++++++++++++++++++
 5 files changed, 74 insertions(+)
 create mode 120000 srcpkgs/vmware-horizon-client-smartcard
 create mode 100755 srcpkgs/vmware-horizon-client/files/ftscanhvd/run
 create mode 100755 srcpkgs/vmware-horizon-client/files/ftsprhvd/run
 create mode 100755 srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
 create mode 100644 srcpkgs/vmware-horizon-client/template

diff --git a/srcpkgs/vmware-horizon-client-smartcard b/srcpkgs/vmware-horizon-client-smartcard
new file mode 120000
index 000000000000..232d869ed0ac
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client-smartcard
@@ -0,0 +1 @@
+vmware-horizon-client
\ No newline at end of file
diff --git a/srcpkgs/vmware-horizon-client/files/ftscanhvd/run b/srcpkgs/vmware-horizon-client/files/ftscanhvd/run
new file mode 100755
index 000000000000..f5fe8ffcf240
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/ftscanhvd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec /usr/lib/vmware/view/bin/ftscanhvd -D
diff --git a/srcpkgs/vmware-horizon-client/files/ftsprhvd/run b/srcpkgs/vmware-horizon-client/files/ftsprhvd/run
new file mode 100755
index 000000000000..136d93fc1c46
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/ftsprhvd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec /usr/lib/vmware/view/bin/ftsprhvd -D
diff --git a/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run b/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
new file mode 100755
index 000000000000..ea9654cd8683
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec chpst -P /usr/bin/vmware-usbarbitrator
diff --git a/srcpkgs/vmware-horizon-client/template b/srcpkgs/vmware-horizon-client/template
new file mode 100644
index 000000000000..629a22780d54
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/template
@@ -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
+	}
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: vmware-horizon-client-2303
  2023-04-21 11:23 [PR PATCH] New package: vmware-horizon-client-2303 abenson
@ 2023-04-21 13:08 ` abenson
  2023-04-21 13:26 ` abenson
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: abenson @ 2023-04-21 13:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

There is an updated pull request by abenson against master on the void-packages repository

https://github.com/abenson/void-packages np_vmwarehorizon
https://github.com/void-linux/void-packages/pull/43564

New package: vmware-horizon-client-2303
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


#### Local build testing
- I built this PR locally for my native architecture, x86_64

A patch file from https://github.com/void-linux/void-packages/pull/43564.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-np_vmwarehorizon-43564.patch --]
[-- Type: text/x-diff, Size: 5929 bytes --]

From be98011816f64c477d633409649e97757b6539d3 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson@gmail.com>
Date: Thu, 20 Apr 2023 20:41:43 -0500
Subject: [PATCH 1/2] New package: libudev0-shim-1

---
 common/shlibs                  |  1 +
 srcpkgs/libudev0-shim/template | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 srcpkgs/libudev0-shim/template

diff --git a/common/shlibs b/common/shlibs
index 0b05cd99d6b3..457f56f34ca3 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -217,6 +217,7 @@ libpcrecpp.so.0 libpcrecpp-7.8_1
 libgirepository-gimarshallingtests-1.0.so libgirepository-1.30_1
 libgirepository-everything-1.0.so libgirepository-1.30_1
 libgirepository-1.0.so.1 libgirepository-1.30_1
+libudev.so.0 libudev0-shim-1_1
 libudev.so.1 eudev-libudev-1.6_1
 libgudev-1.0.so.0 libgudev-230_1
 libumockdev.so.0 libumockdev-0.17.6_1
diff --git a/srcpkgs/libudev0-shim/template b/srcpkgs/libudev0-shim/template
new file mode 100644
index 000000000000..df496604a160
--- /dev/null
+++ b/srcpkgs/libudev0-shim/template
@@ -0,0 +1,21 @@
+# Template file for 'libudev0-shim'
+pkgname=libudev0-shim
+version=1
+revision=1
+build_style=gnu-makefile
+makedepends="eudev-libudev-devel"
+short_desc="Compability library shim for libudev.so.0"
+maintainer="Andrew Benson <abenson@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/archlinux/libudev0-shim"
+distfiles="https://github.com/archlinux/libudev0-shim/archive/v${version}.tar.gz"
+checksum=24a1072fa437935d6c4e1d9c1ce84f4ad1d7be45026f6ee7b0b3d77ec0f66e3c
+
+do_build() {
+	unset LDFLAGS
+	make
+}
+
+do_install() {
+	vinstall libudev.so.0.0.9999 0755 usr/lib libudev.so.0
+}

From 026026deda8d5cfa33224e3d3230e4562e6db940 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson@gmail.com>
Date: Thu, 20 Apr 2023 20:31:43 -0500
Subject: [PATCH 2/2] New package: vmware-horizon-client-2303

---
 srcpkgs/vmware-horizon-client-smartcard       |  1 +
 .../vmware-horizon-client/files/ftscanhvd/run |  5 ++
 .../vmware-horizon-client/files/ftsprhvd/run  |  5 ++
 .../files/vmware-USBArbitrator/run            |  5 ++
 srcpkgs/vmware-horizon-client/template        | 58 +++++++++++++++++++
 5 files changed, 74 insertions(+)
 create mode 120000 srcpkgs/vmware-horizon-client-smartcard
 create mode 100755 srcpkgs/vmware-horizon-client/files/ftscanhvd/run
 create mode 100755 srcpkgs/vmware-horizon-client/files/ftsprhvd/run
 create mode 100755 srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
 create mode 100644 srcpkgs/vmware-horizon-client/template

diff --git a/srcpkgs/vmware-horizon-client-smartcard b/srcpkgs/vmware-horizon-client-smartcard
new file mode 120000
index 000000000000..232d869ed0ac
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client-smartcard
@@ -0,0 +1 @@
+vmware-horizon-client
\ No newline at end of file
diff --git a/srcpkgs/vmware-horizon-client/files/ftscanhvd/run b/srcpkgs/vmware-horizon-client/files/ftscanhvd/run
new file mode 100755
index 000000000000..f5fe8ffcf240
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/ftscanhvd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec /usr/lib/vmware/view/bin/ftscanhvd -D
diff --git a/srcpkgs/vmware-horizon-client/files/ftsprhvd/run b/srcpkgs/vmware-horizon-client/files/ftsprhvd/run
new file mode 100755
index 000000000000..136d93fc1c46
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/ftsprhvd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec /usr/lib/vmware/view/bin/ftsprhvd -D
diff --git a/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run b/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
new file mode 100755
index 000000000000..ea9654cd8683
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec chpst -P /usr/bin/vmware-usbarbitrator
diff --git a/srcpkgs/vmware-horizon-client/template b/srcpkgs/vmware-horizon-client/template
new file mode 100644
index 000000000000..629a22780d54
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/template
@@ -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
+	}
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: vmware-horizon-client-2303
  2023-04-21 11:23 [PR PATCH] New package: vmware-horizon-client-2303 abenson
  2023-04-21 13:08 ` [PR PATCH] [Updated] " abenson
@ 2023-04-21 13:26 ` abenson
  2023-04-21 15:50 ` abenson
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: abenson @ 2023-04-21 13:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

There is an updated pull request by abenson against master on the void-packages repository

https://github.com/abenson/void-packages np_vmwarehorizon
https://github.com/void-linux/void-packages/pull/43564

New package: vmware-horizon-client-2303
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


#### Local build testing
- I built this PR locally for my native architecture, x86_64

A patch file from https://github.com/void-linux/void-packages/pull/43564.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-np_vmwarehorizon-43564.patch --]
[-- Type: text/x-diff, Size: 5930 bytes --]

From 8442c55671e227672692b908926e4e1fd984e515 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson@gmail.com>
Date: Thu, 20 Apr 2023 20:41:43 -0500
Subject: [PATCH 1/2] New package: libudev0-shim-1

---
 common/shlibs                  |  1 +
 srcpkgs/libudev0-shim/template | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 srcpkgs/libudev0-shim/template

diff --git a/common/shlibs b/common/shlibs
index 0b05cd99d6b3..457f56f34ca3 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -217,6 +217,7 @@ libpcrecpp.so.0 libpcrecpp-7.8_1
 libgirepository-gimarshallingtests-1.0.so libgirepository-1.30_1
 libgirepository-everything-1.0.so libgirepository-1.30_1
 libgirepository-1.0.so.1 libgirepository-1.30_1
+libudev.so.0 libudev0-shim-1_1
 libudev.so.1 eudev-libudev-1.6_1
 libgudev-1.0.so.0 libgudev-230_1
 libumockdev.so.0 libumockdev-0.17.6_1
diff --git a/srcpkgs/libudev0-shim/template b/srcpkgs/libudev0-shim/template
new file mode 100644
index 000000000000..73b6da956a29
--- /dev/null
+++ b/srcpkgs/libudev0-shim/template
@@ -0,0 +1,21 @@
+# Template file for 'libudev0-shim'
+pkgname=libudev0-shim
+version=1
+revision=1
+build_style=gnu-makefile
+makedepends="eudev-libudev-devel"
+short_desc="Compability library shim for libudev.so.0"
+maintainer="Andrew Benson <abenson@gmail.com>"
+license="LGPL-2.1-or-later"
+homepage="https://github.com/archlinux/libudev0-shim"
+distfiles="https://github.com/archlinux/libudev0-shim/archive/v${version}.tar.gz"
+checksum=24a1072fa437935d6c4e1d9c1ce84f4ad1d7be45026f6ee7b0b3d77ec0f66e3c
+
+do_build() {
+	unset LDFLAGS
+	make
+}
+
+do_install() {
+	vinstall libudev.so.0.0.9999 0755 usr/lib libudev.so.0
+}

From bd0e7b28f0c2f1425d209675b7f42dc9797b278b Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson@gmail.com>
Date: Thu, 20 Apr 2023 20:31:43 -0500
Subject: [PATCH 2/2] New package: vmware-horizon-client-2303

---
 srcpkgs/vmware-horizon-client-smartcard       |  1 +
 .../vmware-horizon-client/files/ftscanhvd/run |  5 ++
 .../vmware-horizon-client/files/ftsprhvd/run  |  5 ++
 .../files/vmware-USBArbitrator/run            |  5 ++
 srcpkgs/vmware-horizon-client/template        | 58 +++++++++++++++++++
 5 files changed, 74 insertions(+)
 create mode 120000 srcpkgs/vmware-horizon-client-smartcard
 create mode 100755 srcpkgs/vmware-horizon-client/files/ftscanhvd/run
 create mode 100755 srcpkgs/vmware-horizon-client/files/ftsprhvd/run
 create mode 100755 srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
 create mode 100644 srcpkgs/vmware-horizon-client/template

diff --git a/srcpkgs/vmware-horizon-client-smartcard b/srcpkgs/vmware-horizon-client-smartcard
new file mode 120000
index 000000000000..232d869ed0ac
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client-smartcard
@@ -0,0 +1 @@
+vmware-horizon-client
\ No newline at end of file
diff --git a/srcpkgs/vmware-horizon-client/files/ftscanhvd/run b/srcpkgs/vmware-horizon-client/files/ftscanhvd/run
new file mode 100755
index 000000000000..f5fe8ffcf240
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/ftscanhvd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec /usr/lib/vmware/view/bin/ftscanhvd -D
diff --git a/srcpkgs/vmware-horizon-client/files/ftsprhvd/run b/srcpkgs/vmware-horizon-client/files/ftsprhvd/run
new file mode 100755
index 000000000000..136d93fc1c46
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/ftsprhvd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec /usr/lib/vmware/view/bin/ftsprhvd -D
diff --git a/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run b/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
new file mode 100755
index 000000000000..ea9654cd8683
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec chpst -P /usr/bin/vmware-usbarbitrator
diff --git a/srcpkgs/vmware-horizon-client/template b/srcpkgs/vmware-horizon-client/template
new file mode 100644
index 000000000000..629a22780d54
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/template
@@ -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
+	}
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New package: vmware-horizon-client-2303
  2023-04-21 11:23 [PR PATCH] New package: vmware-horizon-client-2303 abenson
  2023-04-21 13:08 ` [PR PATCH] [Updated] " abenson
  2023-04-21 13:26 ` abenson
@ 2023-04-21 15:50 ` abenson
  2023-04-21 19:21 ` abenson
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: abenson @ 2023-04-21 15:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/43564#issuecomment-1518026084

Comment:
I'm pretty happy with the state of `vmware-horizon-client`.  It and the `-smartcard` sub-package works well with my company's setup, and I care less about it being pretty since it's a restricted package anyway.  I haven't tested the USB redirection since we have that disabled by policy.

I would like the `libudev0-shim` to be more better before its merged, but I'm not sure how best to fix it.  In `do_build`, I had to unset `LDFLAGS` to get rid of the `-Wl,--as-needed` otherwise it won't pull in `libudev.so.1` and it'll fail on load.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New package: vmware-horizon-client-2303
  2023-04-21 11:23 [PR PATCH] New package: vmware-horizon-client-2303 abenson
                   ` (2 preceding siblings ...)
  2023-04-21 15:50 ` abenson
@ 2023-04-21 19:21 ` abenson
  2023-04-24 13:16 ` [PR REVIEW] " Johnnynator
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: abenson @ 2023-04-21 19:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/43564#issuecomment-1518246246

Comment:
I guess I could try getting the arm64 version to work, too.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] New package: vmware-horizon-client-2303
  2023-04-21 11:23 [PR PATCH] New package: vmware-horizon-client-2303 abenson
                   ` (3 preceding siblings ...)
  2023-04-21 19:21 ` abenson
@ 2023-04-24 13:16 ` Johnnynator
  2023-04-24 23:51 ` [PR PATCH] [Updated] " abenson
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Johnnynator @ 2023-04-24 13:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

New review comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/pull/43564#discussion_r1175270006

Comment:
You want to add the `-f` flag at the end to run it in the foreground.
After that the service runs fine, but the usb support in vmware horizon still seems to be broken.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: vmware-horizon-client-2303
  2023-04-21 11:23 [PR PATCH] New package: vmware-horizon-client-2303 abenson
                   ` (4 preceding siblings ...)
  2023-04-24 13:16 ` [PR REVIEW] " Johnnynator
@ 2023-04-24 23:51 ` abenson
  2023-04-24 23:52 ` [PR REVIEW] " abenson
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: abenson @ 2023-04-24 23:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

There is an updated pull request by abenson against master on the void-packages repository

https://github.com/abenson/void-packages np_vmwarehorizon
https://github.com/void-linux/void-packages/pull/43564

New package: vmware-horizon-client-2303
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


#### Local build testing
- I built this PR locally for my native architecture, x86_64

A patch file from https://github.com/void-linux/void-packages/pull/43564.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-np_vmwarehorizon-43564.patch --]
[-- Type: text/x-diff, Size: 6300 bytes --]

From 0c5a49c283f1313671a9c899e069b23d03665713 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson@gmail.com>
Date: Thu, 20 Apr 2023 20:41:43 -0500
Subject: [PATCH 1/2] New package: libudev0-shim-1

---
 common/shlibs                  |  1 +
 srcpkgs/libudev0-shim/template | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 srcpkgs/libudev0-shim/template

diff --git a/common/shlibs b/common/shlibs
index 7f91aa2dfccc..fd204f505cad 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -217,6 +217,7 @@ libpcrecpp.so.0 libpcrecpp-7.8_1
 libgirepository-gimarshallingtests-1.0.so libgirepository-1.30_1
 libgirepository-everything-1.0.so libgirepository-1.30_1
 libgirepository-1.0.so.1 libgirepository-1.30_1
+libudev.so.0 libudev0-shim-1_1
 libudev.so.1 eudev-libudev-1.6_1
 libgudev-1.0.so.0 libgudev-230_1
 libumockdev.so.0 libumockdev-0.17.6_1
diff --git a/srcpkgs/libudev0-shim/template b/srcpkgs/libudev0-shim/template
new file mode 100644
index 000000000000..d7e47814678f
--- /dev/null
+++ b/srcpkgs/libudev0-shim/template
@@ -0,0 +1,19 @@
+# Template file for 'libudev0-shim'
+pkgname=libudev0-shim
+version=1
+revision=1
+build_style=gnu-makefile
+make_use_env=yes
+hostmakedepends="patchelf"
+makedepends="eudev-libudev-devel"
+short_desc="Compability library shim for libudev.so.0"
+maintainer="Andrew Benson <abenson@gmail.com>"
+license="LGPL-2.1-or-later"
+homepage="https://github.com/archlinux/libudev0-shim"
+distfiles="https://github.com/archlinux/libudev0-shim/archive/v${version}.tar.gz"
+checksum=24a1072fa437935d6c4e1d9c1ce84f4ad1d7be45026f6ee7b0b3d77ec0f66e3c
+
+do_install() {
+	patchelf --add-needed libudev.so.1 libudev.so.0.0.9999
+	vinstall libudev.so.0.0.9999 0755 usr/lib libudev.so.0
+}

From eb5648d2bf1325eff3e0737c932d8499510afc52 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson@gmail.com>
Date: Thu, 20 Apr 2023 20:31:43 -0500
Subject: [PATCH 2/2] New package: vmware-horizon-client-2303

---
 srcpkgs/vmware-horizon-client-smartcard       |  1 +
 .../vmware-horizon-client/files/ftscanhvd/run |  5 ++
 .../vmware-horizon-client/files/ftsprhvd/run  |  5 ++
 .../files/vmware-USBArbitrator/run            | 14 +++++
 srcpkgs/vmware-horizon-client/template        | 58 +++++++++++++++++++
 5 files changed, 83 insertions(+)
 create mode 120000 srcpkgs/vmware-horizon-client-smartcard
 create mode 100755 srcpkgs/vmware-horizon-client/files/ftscanhvd/run
 create mode 100755 srcpkgs/vmware-horizon-client/files/ftsprhvd/run
 create mode 100755 srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
 create mode 100644 srcpkgs/vmware-horizon-client/template

diff --git a/srcpkgs/vmware-horizon-client-smartcard b/srcpkgs/vmware-horizon-client-smartcard
new file mode 120000
index 000000000000..232d869ed0ac
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client-smartcard
@@ -0,0 +1 @@
+vmware-horizon-client
\ No newline at end of file
diff --git a/srcpkgs/vmware-horizon-client/files/ftscanhvd/run b/srcpkgs/vmware-horizon-client/files/ftscanhvd/run
new file mode 100755
index 000000000000..f5fe8ffcf240
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/ftscanhvd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec /usr/lib/vmware/view/bin/ftscanhvd -D
diff --git a/srcpkgs/vmware-horizon-client/files/ftsprhvd/run b/srcpkgs/vmware-horizon-client/files/ftsprhvd/run
new file mode 100755
index 000000000000..136d93fc1c46
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/ftsprhvd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec /usr/lib/vmware/view/bin/ftsprhvd -D
diff --git a/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run b/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
new file mode 100755
index 000000000000..d76e17f464b5
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
@@ -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
diff --git a/srcpkgs/vmware-horizon-client/template b/srcpkgs/vmware-horizon-client/template
new file mode 100644
index 000000000000..629a22780d54
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/template
@@ -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
+	}
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] New package: vmware-horizon-client-2303
  2023-04-21 11:23 [PR PATCH] New package: vmware-horizon-client-2303 abenson
                   ` (5 preceding siblings ...)
  2023-04-24 23:51 ` [PR PATCH] [Updated] " abenson
@ 2023-04-24 23:52 ` abenson
  2023-04-24 23:55 ` abenson
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: abenson @ 2023-04-24 23:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 190 bytes --]

New review comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/43564#discussion_r1175890713

Comment:
Fixed, and USB seems to be working for me!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New package: vmware-horizon-client-2303
  2023-04-21 11:23 [PR PATCH] New package: vmware-horizon-client-2303 abenson
                   ` (6 preceding siblings ...)
  2023-04-24 23:52 ` [PR REVIEW] " abenson
@ 2023-04-24 23:55 ` abenson
  2023-04-27  1:51 ` [PR PATCH] [Updated] " abenson
  2023-04-27  1:57 ` [PR PATCH] [Merged]: " abenson
  9 siblings, 0 replies; 11+ messages in thread
From: abenson @ 2023-04-24 23:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/43564#issuecomment-1518246246

Comment:
I guess I could try getting the arm64 version to work, too.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: vmware-horizon-client-2303
  2023-04-21 11:23 [PR PATCH] New package: vmware-horizon-client-2303 abenson
                   ` (7 preceding siblings ...)
  2023-04-24 23:55 ` abenson
@ 2023-04-27  1:51 ` abenson
  2023-04-27  1:57 ` [PR PATCH] [Merged]: " abenson
  9 siblings, 0 replies; 11+ messages in thread
From: abenson @ 2023-04-27  1:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

There is an updated pull request by abenson against master on the void-packages repository

https://github.com/abenson/void-packages np_vmwarehorizon
https://github.com/void-linux/void-packages/pull/43564

New package: vmware-horizon-client-2303
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


#### Local build testing
- I built this PR locally for my native architecture, x86_64

A patch file from https://github.com/void-linux/void-packages/pull/43564.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-np_vmwarehorizon-43564.patch --]
[-- Type: text/x-diff, Size: 6300 bytes --]

From 65a4f7d86f6aeafc73e903519a77c4f0a5a9115e Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson@gmail.com>
Date: Thu, 20 Apr 2023 20:41:43 -0500
Subject: [PATCH 1/2] New package: libudev0-shim-1

---
 common/shlibs                  |  1 +
 srcpkgs/libudev0-shim/template | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 srcpkgs/libudev0-shim/template

diff --git a/common/shlibs b/common/shlibs
index 3f37bcd7614e..e9c30f5953bb 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -217,6 +217,7 @@ libpcrecpp.so.0 libpcrecpp-7.8_1
 libgirepository-gimarshallingtests-1.0.so libgirepository-1.30_1
 libgirepository-everything-1.0.so libgirepository-1.30_1
 libgirepository-1.0.so.1 libgirepository-1.30_1
+libudev.so.0 libudev0-shim-1_1
 libudev.so.1 eudev-libudev-1.6_1
 libgudev-1.0.so.0 libgudev-230_1
 libumockdev.so.0 libumockdev-0.17.6_1
diff --git a/srcpkgs/libudev0-shim/template b/srcpkgs/libudev0-shim/template
new file mode 100644
index 000000000000..d7e47814678f
--- /dev/null
+++ b/srcpkgs/libudev0-shim/template
@@ -0,0 +1,19 @@
+# Template file for 'libudev0-shim'
+pkgname=libudev0-shim
+version=1
+revision=1
+build_style=gnu-makefile
+make_use_env=yes
+hostmakedepends="patchelf"
+makedepends="eudev-libudev-devel"
+short_desc="Compability library shim for libudev.so.0"
+maintainer="Andrew Benson <abenson@gmail.com>"
+license="LGPL-2.1-or-later"
+homepage="https://github.com/archlinux/libudev0-shim"
+distfiles="https://github.com/archlinux/libudev0-shim/archive/v${version}.tar.gz"
+checksum=24a1072fa437935d6c4e1d9c1ce84f4ad1d7be45026f6ee7b0b3d77ec0f66e3c
+
+do_install() {
+	patchelf --add-needed libudev.so.1 libudev.so.0.0.9999
+	vinstall libudev.so.0.0.9999 0755 usr/lib libudev.so.0
+}

From 93d4ed04ba7c194c717facbd6352d98b31061f92 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson@gmail.com>
Date: Thu, 20 Apr 2023 20:31:43 -0500
Subject: [PATCH 2/2] New package: vmware-horizon-client-2303

---
 srcpkgs/vmware-horizon-client-smartcard       |  1 +
 .../vmware-horizon-client/files/ftscanhvd/run |  5 ++
 .../vmware-horizon-client/files/ftsprhvd/run  |  5 ++
 .../files/vmware-USBArbitrator/run            | 14 +++++
 srcpkgs/vmware-horizon-client/template        | 58 +++++++++++++++++++
 5 files changed, 83 insertions(+)
 create mode 120000 srcpkgs/vmware-horizon-client-smartcard
 create mode 100755 srcpkgs/vmware-horizon-client/files/ftscanhvd/run
 create mode 100755 srcpkgs/vmware-horizon-client/files/ftsprhvd/run
 create mode 100755 srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
 create mode 100644 srcpkgs/vmware-horizon-client/template

diff --git a/srcpkgs/vmware-horizon-client-smartcard b/srcpkgs/vmware-horizon-client-smartcard
new file mode 120000
index 000000000000..232d869ed0ac
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client-smartcard
@@ -0,0 +1 @@
+vmware-horizon-client
\ No newline at end of file
diff --git a/srcpkgs/vmware-horizon-client/files/ftscanhvd/run b/srcpkgs/vmware-horizon-client/files/ftscanhvd/run
new file mode 100755
index 000000000000..f5fe8ffcf240
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/ftscanhvd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec /usr/lib/vmware/view/bin/ftscanhvd -D
diff --git a/srcpkgs/vmware-horizon-client/files/ftsprhvd/run b/srcpkgs/vmware-horizon-client/files/ftsprhvd/run
new file mode 100755
index 000000000000..136d93fc1c46
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/ftsprhvd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+exec 2>&1
+
+exec /usr/lib/vmware/view/bin/ftsprhvd -D
diff --git a/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run b/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
new file mode 100755
index 000000000000..d76e17f464b5
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/files/vmware-USBArbitrator/run
@@ -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
diff --git a/srcpkgs/vmware-horizon-client/template b/srcpkgs/vmware-horizon-client/template
new file mode 100644
index 000000000000..629a22780d54
--- /dev/null
+++ b/srcpkgs/vmware-horizon-client/template
@@ -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
+	}
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Merged]: New package: vmware-horizon-client-2303
  2023-04-21 11:23 [PR PATCH] New package: vmware-horizon-client-2303 abenson
                   ` (8 preceding siblings ...)
  2023-04-27  1:51 ` [PR PATCH] [Updated] " abenson
@ 2023-04-27  1:57 ` abenson
  9 siblings, 0 replies; 11+ messages in thread
From: abenson @ 2023-04-27  1:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 515 bytes --]

There's a merged pull request on the void-packages repository

New package: vmware-horizon-client-2303
https://github.com/void-linux/void-packages/pull/43564

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


#### Local build testing
- I built this PR locally for my native architecture, x86_64

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-04-27  1:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-21 11:23 [PR PATCH] New package: vmware-horizon-client-2303 abenson
2023-04-21 13:08 ` [PR PATCH] [Updated] " abenson
2023-04-21 13:26 ` abenson
2023-04-21 15:50 ` abenson
2023-04-21 19:21 ` abenson
2023-04-24 13:16 ` [PR REVIEW] " Johnnynator
2023-04-24 23:51 ` [PR PATCH] [Updated] " abenson
2023-04-24 23:52 ` [PR REVIEW] " abenson
2023-04-24 23:55 ` abenson
2023-04-27  1:51 ` [PR PATCH] [Updated] " abenson
2023-04-27  1:57 ` [PR PATCH] [Merged]: " abenson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).