Bug 266845 - sysutils/vagrant: Respect hier(7) for networks.conf
Summary: sysutils/vagrant: Respect hier(7) for networks.conf
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: joe
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-05 13:40 UTC by Michael Gmelin
Modified: 2022-10-05 16:29 UTC (History)
1 user (show)

See Also:
joe: maintainer-feedback+
joe: maintainer-feedback+


Attachments
Patch to replace /etc/vbox with $PREFIX/etc/vbox (3.47 KB, patch)
2022-10-05 13:40 UTC, Michael Gmelin
joe: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gmelin freebsd_committer freebsd_triage 2022-10-05 13:40:15 UTC
Created attachment 237101 [details]
Patch to replace /etc/vbox with $PREFIX/etc/vbox

Since virtualbox-ose 6.1.26 there is a new networks.conf file
which had originally been placed in /etc/vbox.

In 66635b2061daf this was been corrected for emulators/virtualbox-ose,
this change does the same for vagrant's virtualbox plugin.

Without this change, networks.conf has to be put into two places
(e.g., by symlinking /usr/local/etc/vbox to /etc/vbox), which is
a bit painful.
Comment 1 Michael Gmelin freebsd_committer freebsd_triage 2022-10-05 16:24:20 UTC
@Joe Thanks for the fast turnaround
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-10-05 16:28:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a9f7f114e5cc57963a1ae45720a5ade66aad1598

commit a9f7f114e5cc57963a1ae45720a5ade66aad1598
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2022-10-05 13:12:39 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2022-10-05 16:27:28 +0000

    sysutils/vagrant: Respect hier(7) for networks.conf

    Since virtualbox-ose 6.1.26 there is a new networks.conf file
    which had originally been placed in /etc/vbox.

    In 66635b2061daf this was been corrected for emulators/virtualbox-ose,
    this change does the same for vagrant's virtualbox plugin.

    Before this change, networks.conf had to be put into two places
    (e.g., by symlinking /usr/local/etc/vbox to /etc/vbox).

    PR:             266845
    Approved by:    joe@thrallingpenguin.com (maintainer)

 sysutils/vagrant/Makefile                                     |  7 +++++--
 ...patch-plugins_providers_virtualbox_action_network.rb (new) | 11 +++++++++++
 sysutils/vagrant/files/patch-templates_locales_en.yml (new)   | 11 +++++++++++
 3 files changed, 27 insertions(+), 2 deletions(-)