summaryrefslogtreecommitdiffstats
path: root/Vagrantfile
diff options
context:
space:
mode:
authorThomas Waldmann <tw@waldmann-edv.de>2015-09-15 14:46:26 +0200
committerThomas Waldmann <tw@waldmann-edv.de>2015-09-15 14:46:26 +0200
commitdc0938f6397bbb6e044e4a8b4b8e3fea3a9f6d99 (patch)
tree5d6c881a278c8bc82c4dca68476b5a4384a58eea /Vagrantfile
parentcf9ba87734f51654df7cf26610dd368b509c4493 (diff)
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.
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile30
1 files changed, 30 insertions, 0 deletions
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"