From bae7dbb0e28b613618738f6437c8eaf5608fb19f Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Sat, 24 Aug 2013 22:10:51 +0900 Subject: [PATCH] Support slackware linux Signed-off-by: Hiroshi Miura --- plugins/hosts/slackware/host.rb | 26 ++++++++++++++++++++++++++ plugins/hosts/slackware/plugin.rb | 15 +++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 plugins/hosts/slackware/host.rb create mode 100644 plugins/hosts/slackware/plugin.rb diff --git a/plugins/hosts/slackware/host.rb b/plugins/hosts/slackware/host.rb new file mode 100644 index 000000000..365625f39 --- /dev/null +++ b/plugins/hosts/slackware/host.rb @@ -0,0 +1,26 @@ +require "vagrant" + +require Vagrant.source_root.join("plugins/hosts/linux/host") + +module VagrantPlugins + module HostSlackware + class Host < VagrantPlugins::HostLinux::Host + def self.match? + return File.exists?("/etc/slackware-release") + end + + # Normal, mid-range precedence. + def self.precedence + 5 + end + + def initialize(*args) + super + + @nfs_apply_command = "/usr/sbin/exportfs -r" + @nfs_check_command = "/etc/rc.d/rc.nfsd status" + @nfs_start_command = "/etc/rc.d/rc.nfsd start" + end + end + end +end diff --git a/plugins/hosts/slackware/plugin.rb b/plugins/hosts/slackware/plugin.rb new file mode 100644 index 000000000..d99f622c9 --- /dev/null +++ b/plugins/hosts/slackware/plugin.rb @@ -0,0 +1,15 @@ +require "vagrant" + +module VagrantPlugins + module HostGentoo + class Plugin < Vagrant.plugin("2") + name "Slackware host" + description "Slackware and derivertives host support." + + host("slackware") do + require File.expand_path("../host", __FILE__) + Host + end + end + end +end