[packages/vagrant] fix networking detection for pld

glen glen at pld-linux.org
Fri Aug 21 11:48:52 CEST 2015


commit e775e16dff92dfe79d0504a4bf6913d1a8565b59
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Aug 21 12:48:40 2015 +0300

    fix networking detection for pld

 pld-networking.patch | 28 ++++++++++++++++++++++++++++
 vagrant.spec         |  2 ++
 2 files changed, 30 insertions(+)
---
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
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vagrant.git/commitdiff/e775e16dff92dfe79d0504a4bf6913d1a8565b59



More information about the pld-cvs-commit mailing list