bernd / fpm-recipes

My collection of fpm-cookery recipes.
145 stars 44 forks source link

Allow dynamic setting for gzip #37

Open petems opened 9 years ago

petems commented 9 years ago

Was testing the haproxy package for OSX, and was having difficulty with the gzip:

/opt/boxen/rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/fpm-cookery-0.25.0/lib/fpm/cookery/utils.rb:12:in `safesystem': 'system(["/bin/gzip", #<FPM::Cookery::Path:/Users/peterso/Projects/capd-fpm-cookery/haproxy/tmp-dest/usr/share/man/man1/haproxy.1>])' failed with error code: 127 (RuntimeError)
    from /Users/peterso/Projects/capd-fpm-cookery/haproxy/recipe.rb:51:in `install'

Darwin has a different gzip path:

$ which gzip
/usr/bin/gzip

So it'd be nice to change this up so it can find the correct gzip! :+1:

petems commented 9 years ago

Basic spike here: https://github.com/petems/fpm-recipes/tree/allow_dynamic_gzip_path