From: Elan Ruusamäe Date: Fri, 21 Aug 2015 09:48:40 +0000 (+0300) Subject: fix networking detection for pld X-Git-Tag: auto/th/vagrant-1.7.4-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=e775e16dff92dfe79d0504a4bf6913d1a8565b59;p=packages%2Fvagrant.git fix networking detection for pld --- diff --git a/pld-networking.patch b/pld-networking.patch new file mode 100644 index 0000000..7092aad --- /dev/null +++ b/pld-networking.patch @@ -0,0 +1,28 @@ +--- /dev/null 2015-05-25 21:49:42.000000000 +0300 ++++ vagrant-1.7.4/plugins/guests/pld/cap/flavor.rb 2015-08-21 12:37:06.511699482 +0300 +@@ -0,0 +1,11 @@ ++module VagrantPlugins ++ module GuestPld ++ module Cap ++ class Flavor ++ def self.flavor(machine) ++ return :pld ++ end ++ end ++ end ++ end ++end +--- vagrant-1.7.4/plugins/guests/pld/plugin.rb~ 2015-07-17 22:38:51.000000000 +0300 ++++ vagrant-1.7.4/plugins/guests/pld/plugin.rb 2015-08-21 12:39:33.651261462 +0300 +@@ -20,6 +20,11 @@ + require_relative "cap/network_scripts_dir" + Cap::NetworkScriptsDir + end ++ ++ guest_capability("pld", "flavor") do ++ require_relative "cap/flavor" ++ Cap::Flavor ++ end + end + end + end diff --git a/vagrant.spec b/vagrant.spec index fbaa21b..a13e377 100644 --- a/vagrant.spec +++ b/vagrant.spec @@ -18,6 +18,7 @@ Patch6: checkpoint.patch Patch7: insert-key.patch Patch8: listen.patch Patch9: pld-chef-installed.patch +Patch10: pld-networking.patch URL: http://www.vagrantup.com/ BuildRequires: bash BuildRequires: rpm-rubyprov @@ -126,6 +127,7 @@ Ruby documentation for %{gem_name} %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 VERSION=$(cat version.txt) sed -i -e "s/__VERSION__/$VERSION/" lib/vagrant/version.rb