From dc0938f6397bbb6e044e4a8b4b8e3fea3a9f6d99 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 15 Sep 2015 14:46:26 +0200 Subject: [PATCH] vagrant: add netbsd (needs more work) there's a problem with the shell: - either it is no login shell, then e.g. PKG_PATH is not set (sh) - or it is not found (no bash here) - or it is not compatible enough (csh) depending on what shell is configured, one or the other vagrant mode / feature does not work. --- Vagrantfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 0599bb6de..0b3c4b0cc 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -84,6 +84,27 @@ def packages_openbsd EOF end +def packages_netbsd + # ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/6.1.5/All/ + return <<-EOF + #ftp ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc.tar.gz + #tar xzf pkgsrc.tar.gz + #cd pkgsrc/bootstrap + #./bootstrap + #PATH="/usr/pkg/sbin:$PATH" + PKG_PATH="ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/6.1.5/All/" + export PKG_PATH + pkg_add python34 py34-setuptools + ln -s /usr/pkg/bin/python3.4 /usr/pkg/bin/python + ln -s /usr/pkg/bin/python3.4 /usr/pkg/bin/python3 + pkg_add mozilla-rootcerts lz4 git + mozilla-rootcerts install + #pkg_add pkg-config fuse-2.9.3 # llfuse does not support netbsd + easy_install-3.4 pip + pip install virtualenv + EOF +end + def packages_darwin return <<-EOF ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" @@ -206,6 +227,15 @@ Vagrant.configure(2) do |config| b.vm.provision "prepare user", :type => :shell, :privileged => false, :inline => prepare_user("openbsd") end + config.vm.define "netbsd" do |b| + #b.vm.box = "Kralian/netbsd_6.1.5_amd64" + b.vm.box = "alex-skimlinks/netbsd-6.1.5-amd64" + b.ssh.shell = "ksh -l" + #b.ssh.shell = "sh" + b.vm.provision "packages netbsd", :type => :shell, :inline => packages_netbsd + b.vm.provision "prepare user", :type => :shell, :privileged => false, :inline => prepare_user("netbsd") + end + # OS X config.vm.define "darwin" do |b| b.vm.box = "jhcook/yosemite-clitools"