mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 01:51:26 +00:00
Since Python 2 support was removed in 1ca0323e7c29 ("Require Python 3 and remove support for Python 2."), python3-six is not needed anymore. Moreover python3-six is not available on RHEL/CentOS7 without using EPEL and so this patch is needed in order to release OVS 2.13 on RHEL7. Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
50 lines
1.5 KiB
Ruby
50 lines
1.5 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
|
# configures the configuration version (we support older styles for
|
|
# backwards compatibility). Please don't change it unless you know what
|
|
# you're doing.
|
|
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
Vagrant.require_version ">=1.7.0"
|
|
|
|
$bootstrap_freebsd = <<SCRIPT
|
|
sed -e 's/\#DEFAULT_ALWAYS_YES = false/DEFAULT_ALWAYS_YES = true/g' -e 's/\#ASSUME_ALWAYS_YES = false/ASSUME_ALWAYS_YES = true/g' /usr/local/etc/pkg.conf > /tmp/pkg.conf
|
|
mv -f /tmp/pkg.conf /usr/local/etc/pkg.conf
|
|
pkg install automake libtool wget py37 gmake lftp
|
|
SCRIPT
|
|
|
|
$configure_ovs = <<SCRIPT
|
|
cd /vagrant
|
|
./boot.sh
|
|
mkdir -p ~/build
|
|
cd ~/build
|
|
sudo /vagrant/configure --disable-libcapng --enable-silent-rules
|
|
SCRIPT
|
|
|
|
$build_ovs = <<SCRIPT
|
|
cd ~/build
|
|
gmake
|
|
SCRIPT
|
|
|
|
$test_userspace = <<SCRIPT
|
|
cd ~/build
|
|
gmake check
|
|
SCRIPT
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
# Use NFS due to capability 'mount_virtualbox_shared_folder'
|
|
# does not work on FreeBSD.
|
|
config.vm.network :private_network, ip: "10.0.0.2"
|
|
config.vm.synced_folder ".", "/vagrant", :nfs => true
|
|
|
|
config.vm.define "freebsd-10.2" do |freebsd|
|
|
freebsd.vm.box = "bento/freebsd-10.2"
|
|
freebsd.vm.provision "bootstrap", type: "shell", inline: $bootstrap_freebsd
|
|
freebsd.vm.provision "configure_ovs", type: "shell", inline: $configure_ovs
|
|
freebsd.vm.provision "build_ovs", type: "shell", inline: $build_ovs
|
|
freebsd.vm.provision "test_userspace", type: "shell", inline: $test_userspace
|
|
end
|
|
end
|