summaryrefslogtreecommitdiffstats
path: root/Vagrantfile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /Vagrantfile
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile45
1 files changed, 45 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 00000000..7b76dc4a
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,45 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
+VAGRANTFILE_API_VERSION = "2"
+
+Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
+
+ # Bump the default resources as building is expensive
+ config.vm.provider "virtualbox" do |v|
+ v.memory = 8096
+ v.cpus = 4
+ end
+
+ # Permit X11 forwarding so running the graphical Wireshark works
+ config.ssh.forward_x11 = true
+
+ # Mounting to /vagrant (the default) won't work for building a
+ # Debian package. Let's be consistent for all boxes.
+ config.vm.synced_folder ".", "/vagrant", disabled: true
+ config.vm.synced_folder ".", "/home/vagrant/wireshark", type: "virtualbox"
+
+ # Install and build the various things (including wireshark!)
+ config.vm.define "ubuntu", autostart: false do |deb|
+ deb.vm.box = "ubuntu/jammy64"
+
+ deb.vm.provision "shell" do |s|
+ s.path = 'tools/debian-setup.sh'
+ s.args = ['--install-optional', '--assume-yes', '--install-qt6-deps']
+ end
+ deb.vm.provision :shell, inline: "apt-get -y install ccache"
+ deb.vm.provision :shell, path: 'vagrant_build.sh', privileged: false
+ end
+
+ config.vm.define "fedora", autostart: false do |rpm|
+ rpm.vm.box = "fedora/28-cloud-base"
+
+ rpm.vm.provision "shell" do |s|
+ s.path = 'tools/rpm-setup.sh'
+ s.args = ['--install-optional', '--assumeyes']
+ end
+ rpm.vm.provision :shell, inline: "yum -y install ccache"
+ rpm.vm.provision :shell, path: 'vagrant_build.sh', privileged: false
+ end
+end