aboutsummaryrefslogtreecommitdiff
path: root/emulators/open-vm-tools
diff options
context:
space:
mode:
authorGeoff Davis <gadavis@ucsd.edu>2022-10-03 17:51:41 +0000
committerRenato Botelho <garga@FreeBSD.org>2022-10-03 17:55:12 +0000
commit8f9a376fdfe9dc5fb43ba5f04aaba303393633c2 (patch)
tree93c7f670b1892bdb863679c1637528a3dd2a5936 /emulators/open-vm-tools
parentf63d317dfc2e646813c29f187430033ee41e3b40 (diff)
downloadports-8f9a376fdfe9dc5fb43ba5f04aaba303393633c2.tar.gz
ports-8f9a376fdfe9dc5fb43ba5f04aaba303393633c2.zip
emulators/open-vm-tools: Fix vmware-guestd rc
Add eval to the call to ${checkvm_cmd} to make sure stdout/stderr are redirect to /dev/null and remove spurious output when it's executed PR: 266520 Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'emulators/open-vm-tools')
-rw-r--r--emulators/open-vm-tools/Makefile1
-rw-r--r--emulators/open-vm-tools/files/vmware-guestd.in2
2 files changed, 2 insertions, 1 deletions
diff --git a/emulators/open-vm-tools/Makefile b/emulators/open-vm-tools/Makefile
index 1539f3fee5c3..bce1166d3214 100644
--- a/emulators/open-vm-tools/Makefile
+++ b/emulators/open-vm-tools/Makefile
@@ -1,6 +1,7 @@
PORTNAME= open-vm-tools
PORTVERSION= 12.1.0
DISTVERSIONPREFIX= stable-
+PORTVERSION= 1
PORTEPOCH= 2
CATEGORIES= emulators
diff --git a/emulators/open-vm-tools/files/vmware-guestd.in b/emulators/open-vm-tools/files/vmware-guestd.in
index 99235082d679..f7aca835fbff 100644
--- a/emulators/open-vm-tools/files/vmware-guestd.in
+++ b/emulators/open-vm-tools/files/vmware-guestd.in
@@ -18,7 +18,7 @@ rcvar=vmware_guestd_enable
load_rc_config $name
checkvm_cmd="%%PREFIX%%/bin/vmware-checkvm > /dev/null 2>&1"
-if ${checkvm_cmd}; then
+if eval "${checkvm_cmd}"; then
: ${vmware_guestd_enable:="YES"}
else
: ${vmware_guestd_enable:="NO"}