ports/sysutils/minikube/files/patch-pkg_minikube_cluster_cluster__freebsd.go
Danilo Egea Gondolfo 79cb9ead32 - New port: sysutils/minikube
Minikube is a tool that makes it easy to run Kubernetes locally.
Minikube runs a single-node Kubernetes cluster inside a VM on your laptop
for users looking to try out Kubernetes or develop with it day-to-day.
2018-08-11 19:25:41 +00:00

32 lines
932 B
Go

--- pkg/minikube/cluster/cluster_freebsd.go.orig 2018-08-08 17:03:34 UTC
+++ pkg/minikube/cluster/cluster_freebsd.go
@@ -0,0 +1,29 @@
+/*
+Copyright 2016 The Kubernetes Authors All rights reserved.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package cluster
+
+import (
+ "os/exec"
+)
+
+func detectVBoxManageCmd() string {
+ cmd := "VBoxManage"
+ if path, err := exec.LookPath(cmd); err == nil {
+ return path
+ }
+ return cmd
+}