```ruby
case node["platform_family"]
    when 'mac_os_x'
        include_recipe "homebrewalt::default"

        package "gnu-tar" do
          action [:install, :upgrade]
        end

        link "/usr/bin/tar" do
            to "/usr/local/bin/gtar"
        end
    when 'debian'
        Chef::Log.debug("This recipe is OSX only")
end


```

Fix for rootless in 10.11
user
```ruby
case node["platform_family"]
    when 'mac_os_x'
        include_recipe "homebrewalt::default"

        package "gnu-tar" do
          action [:install, :upgrade]
        end

        link "/usr/local/bin/tar" do
            to "/usr/local/bin/gtar"
        end
    when 'debian'
        Chef::Log.debug("This recipe is OSX only")
end


```
assistant