Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shimizukawa/chef-download-make-install
This cookbook run download target source, extract, configure, make, make install process.
https://github.com/shimizukawa/chef-download-make-install
Last synced: about 15 hours ago
JSON representation
This cookbook run download target source, extract, configure, make, make install process.
- Host: GitHub
- URL: https://github.com/shimizukawa/chef-download-make-install
- Owner: shimizukawa
- Created: 2013-01-23T07:04:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-07T03:39:01.000Z (over 10 years ago)
- Last Synced: 2024-05-01T23:57:11.813Z (5 months ago)
- Language: Ruby
- Size: 148 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
download-make-install Cookbook
===============================This cookbook run download target source, extract, configure, make, make install process.
Requirements
------------#### cookbook
- `build-essential` - building some target source needs gcc/g++ and related headers.Attributes
----------#### download-make-install::default
`node['download_make_install']['install_prefix']` - install path prefix: default is '/usr/local'
`node['download_make_install']['packages']` - build target source definitions hash-array. hash include few keys. `url` is target source file location, required. `configure_options` value will pass-through to ./configure option, optional. `target` is expected installed file/directory after installation, optional. if `target` is omitted then try to download/install everytime.Usage
-----
#### download-make-install::defaultInclude `download_make_install` in your node's `run_list` and set packages information:
```json
{
"name":"my_node",
"run_list": [
"recipe[download-make-install]"
],
"override_attributes" : {
"download_make_install": {
"install_prefix" : "/usr/local/",
"packages": [
{
"url": "http://mecab.googlecode.com/files/mecab-0.994.tar.gz",
"configure_options": "--with-charset=utf8 --enable-utf8-only",
"target": "/usr/local/lib/libmecab.so"
},
{
"url": "http://mecab.googlecode.com/files/mecab-ipadic-2.7.0-20070801.tar.gz",
"configure_options": "--with-charset=utf8",
"target": "/usr/local/lib/mecab"
},
{
"url": "http://www.sqlite.org/2013/sqlite-autoconf-3080200.tar.gz",
"target": "/usr/local/bin/sqlite3"
}
]
}
}
}
```Contributing
------------1. Fork the repository on Github
2. Create a named feature branch (like `add_component_x`)
3. Write you change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request using GithubLicense and Authors
-------------------
Authors: Takayuki Shimizukawa
License: Apache 2.0