ports/sysutils/vagrant/files/patch-bin_vagrant
Christoph Moench-Tegeder c361cf6206 Use CA certificates from ca_root_nss for TLS validation
instead of embedding a very old version of that file, and depend
on ca_root_nss for that.
Add dependency on curl, which has been missing for a long time.

PR:		234421
Submitted by:	joe@thrallingpenguin.com
Reported by:	corvid@openmailbox.org
Approved by:	joe@thrallingpenguin.com (maintainer)
2019-03-14 23:15:28 +00:00

23 lines
741 B
Text

--- bin/vagrant.orig 2019-02-27 15:35:56.000000000 +0000
+++ bin/vagrant 2019-03-11 03:50:43.415883000 +0000
@@ -5,6 +5,9 @@
# initializing which have historically resulted in stack traces.
Signal.trap("INT") { abort }
+ENV["VAGRANT_INSTALLER_ENV"] = 'true'
+ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"] = '@PREFIX@/share/vagrant/embedded'
+
# Disable exception reporting by default if available
if Thread.respond_to?(:report_on_exception=)
Thread.report_on_exception = false
@@ -16,7 +19,9 @@
# These will be the options that are passed to initialize the Vagrant
# environment.
-opts = {}
+opts = {
+ :ca_cert => '@PREFIX@/share/certs/ca-root-nss.crt'
+}
if idx = argv.index("--")
argv_extra = argv.slice(idx+1, argv.length-2)