View | Details | Raw Unified | Return to bug 266845
Collapse All | Expand All

(-)b/sysutils/vagrant/Makefile (-2 / +5 lines)
Lines 1-7 Link Here
1
PORTNAME=	vagrant
1
PORTNAME=	vagrant
2
PORTVERSION=	2.2.19
2
PORTVERSION=	2.2.19
3
DISTVERSIONPREFIX=	v
3
DISTVERSIONPREFIX=	v
4
PORTREVISION=	2
4
PORTREVISION=	3
5
CATEGORIES=	sysutils rubygems devel
5
CATEGORIES=	sysutils rubygems devel
6
6
7
MAINTAINER=	joe@thrallingpenguin.com
7
MAINTAINER=	joe@thrallingpenguin.com
Lines 70-76 BASH_PLIST_FILES= share/bash-completion/completions/vagrant Link Here
70
ZSH_PLIST_FILES=	share/share/zsh/site-functions/_vagrant
70
ZSH_PLIST_FILES=	share/share/zsh/site-functions/_vagrant
71
71
72
post-patch:
72
post-patch:
73
	@${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' ${WRKSRC}/bin/vagrant
73
	@${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' \
74
		${WRKSRC}/bin/vagrant \
75
		${WRKSRC}/plugins/providers/virtualbox/action/network.rb \
76
		${WRKSRC}/templates/locales/en.yml
74
77
75
do-build:
78
do-build:
76
	(cd ${WRKSRC}; (${ECHO_CMD} -e "install:\n\techo\n") > Makefile)
79
	(cd ${WRKSRC}; (${ECHO_CMD} -e "install:\n\techo\n") > Makefile)
(-)b/sysutils/vagrant/files/patch-plugins_providers_virtualbox_action_network.rb (+11 lines)
Added Link Here
1
--- plugins/providers/virtualbox/action/network.rb.orig	2021-11-05 21:15:44 UTC
2
+++ plugins/providers/virtualbox/action/network.rb
3
@@ -18,7 +18,7 @@ module VagrantPlugins
4
       class Network
5
 
6
         # Location of the VirtualBox networks configuration file
7
-        VBOX_NET_CONF = "/etc/vbox/networks.conf".freeze
8
+        VBOX_NET_CONF = "@PREFIX@/etc/vbox/networks.conf".freeze
9
         # Version of VirtualBox that introduced hostonly network range restrictions
10
         HOSTONLY_VALIDATE_VERSION = Gem::Version.new("6.1.28")
11
         # Default valid range for hostonly networks
(-)b/sysutils/vagrant/files/patch-templates_locales_en.yml (-1 / +11 lines)
Added Link Here
0
- 
1
--- templates/locales/en.yml.orig	2021-11-05 21:15:44 UTC
2
+++ templates/locales/en.yml
3
@@ -1863,7 +1863,7 @@ en:
4
           Address: %{address}
5
           Ranges: %{ranges}
6
 
7
-        Valid ranges can be modified in the /etc/vbox/networks.conf file. For
8
+        Valid ranges can be modified in the @PREFIX@/etc/vbox/networks.conf file. For
9
         more information including valid format see:
10
 
11
           https://www.virtualbox.org/manual/ch06.html#network_hostonly

Return to bug 266845