vagrant-bindfs 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90ab2b993260790dc9fe3d6751748e832e851bac
4
- data.tar.gz: 0d55ed6480db568599b19f09e13a68b5e410faad
3
+ metadata.gz: a2151716d8929cd791839d51907749be10ad319f
4
+ data.tar.gz: a3fde21ffc2652da19102f4eeb8229d5bc29aa77
5
5
  SHA512:
6
- metadata.gz: 93e5048db96ca90e4c829a042a70b5b9b1d310cec4433df2771daf2aa9f4500c43e4566407fd5563d01992f5dd5395d7eb1131f39cf60388d92cd03797d7eeb2
7
- data.tar.gz: 7288fdeee35ae4e23640e270191e17489946763c91bc32ce1e6ab69918c7ef2e72f6dbd15b88e5d41b8edc67c532bc7d3ebcaaab82419998e562fb403ba5027a
6
+ metadata.gz: bcf1093dd5907ecab940a0a39765ac4c44b71bf0340467219dcebbe6bddb34663e92d077769bf4a3c09ce3707bdaf333ed697add06818a2a39ec9d9b0781bacd
7
+ data.tar.gz: 2c307c4cd1dc3bd215402d1af94bc945e52c68c25cf75132121550ab04ab6555bff7f615b77c5ae8c9bb11abb76c8e456f72ae1fbcc3c05f64c5dc6fadca0167
@@ -11,11 +11,24 @@ module VagrantPlugins
11
11
  if comm.test("test 0 -eq $(sudo yum search bindfs 2>&1 >/dev/null | wc -l)")
12
12
  comm.sudo("yum -y install bindfs")
13
13
  else
14
- comm.sudo("yum -y install fuse fuse-devel gcc wget")
15
- comm.sudo("wget #{SOURCE_URL} -O bindfs.tar.gz")
16
- comm.sudo("tar --overwrite -zxvf bindfs.tar.gz")
17
- comm.sudo("[ -d ./bindfs-#{SOURCE_VERSION} ] && cd bindfs-#{SOURCE_VERSION} && ./configure && make && make install")
18
- comm.sudo("ln -s /usr/local/bin/bindfs /usr/bin")
14
+ comm.sudo("yum -y install fuse fuse-devel gcc wget tar make")
15
+ comm.sudo <<-SHELL
16
+ for u in "#{SOURCE_URLS.join('" "')}"; do
17
+ if wget -q --spider $u; then
18
+ url=$u;
19
+ break;
20
+ fi;
21
+ done;
22
+ [ -n "$url" ] && \
23
+ wget $url -O bindfs.tar.gz && \
24
+ tar --overwrite -zxvf bindfs.tar.gz && \
25
+ [ -d ./bindfs-#{SOURCE_VERSION} ] && \
26
+ cd bindfs-#{SOURCE_VERSION} && \
27
+ ./configure && \
28
+ make && \
29
+ make install && \
30
+ ln -s /usr/local/bin/bindfs /usr/bin
31
+ SHELL
19
32
  end
20
33
  end
21
34
  end
@@ -1,10 +1,13 @@
1
1
  module VagrantPlugins
2
2
  module Bindfs
3
3
 
4
- VERSION = "0.4.8"
4
+ VERSION = "0.4.9"
5
5
 
6
6
  SOURCE_VERSION = "1.13.1"
7
- SOURCE_URL = "http://bindfs.org/downloads/bindfs-#{SOURCE_VERSION}.tar.gz"
7
+ SOURCE_URLS = [
8
+ "http://bindfs.org/downloads/bindfs-#{SOURCE_VERSION}.tar.gz",
9
+ "http://bindfs.dnsalias.net/downloads/bindfs-#{SOURCE_VERSION}.tar.gz"
10
+ ]
8
11
 
9
12
  end
10
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-bindfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaël-Ian Havard
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-07-01 00:00:00.000000000 Z
13
+ date: 2016-07-04 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: A Vagrant plugin to automate bindfs mount in the VM. This allow you to
16
16
  change owner, group and permissions on files and, for example, work around NFS share