bernd / fpm-cookery

A tool for building software packages with fpm.
Other
460 stars 88 forks source link

Download artifacts or extra dependancies #95

Open petems opened 10 years ago

petems commented 10 years ago

So, I'm basically seeing how to to create a packaged version of nginx with various external modules included.

For example, following these instructions: https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source

From what I'm reading of the documentation, you can only download one thing. And if you want to download extra artefacts, thats not natively possible, unless you put them into the one download url and it downloaded them all at once (not ideal)

I thought omnibus might help, but thats more like creating a package of packages right?

bernd commented 10 years ago

Sorry, there is no support for downloading multiple sources at the moment. :disappointed:

You can download the additional sources in the build method via something like safesystem("curl http://...") and extract them in a similar way before building the software. Hope that helps.

petems commented 9 years ago

Cool, I'll give that a go. I might do a quick spike to see if I could implement an extra dependancy step also! :+1:

igalic commented 9 years ago

would also love this feature. we build our own version of tomcat with built-in logback support, which requires a couple of extra jars.


any directions where we could start to contribute such a feature?

andytinycat commented 9 years ago

You're looking at doing something here: https://github.com/bernd/fpm-cookery/tree/master/lib/fpm/cookery/source_handler

For example, it might make sense to modify the default curl handler to take multiple sources. Or create a new multi_source handler to do it.