2016-08-16 22:08:57 +00:00
|
|
|
require_relative "../../../synced_folders/rsync/default_unix_cap"
|
|
|
|
|
2014-01-31 03:26:43 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module GuestNetBSD
|
|
|
|
module Cap
|
|
|
|
class RSync
|
2016-08-16 22:08:57 +00:00
|
|
|
extend VagrantPlugins::SyncedFolderRSync::DefaultUnixCap
|
2014-01-31 03:26:43 +00:00
|
|
|
|
|
|
|
def self.rsync_install(machine)
|
|
|
|
machine.communicate.sudo(
|
2016-10-24 19:46:44 +00:00
|
|
|
'PATH=$PATH:/usr/sbin '\
|
|
|
|
'PKG_PATH="http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/' \
|
|
|
|
'`uname -m`/`uname -r | cut -d. -f1-2`/All" ' \
|
|
|
|
'pkg_add rsync'
|
|
|
|
)
|
2014-01-31 03:26:43 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|