Created
September 19, 2014 23:11
-
-
Save dginther/d820cba132259997f379 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set libsodium = pillar.get('libsodium', {}) -%} | |
{% set version = libsodium.get('version', '0.7.0') -%} | |
{% set source = libsodium.get('source_root', '/usr/local/src') -%} | |
{% set libsodium_package = source + '/libsodium-' + version + '.tar.gz' -%} | |
get_libsodium: | |
pkg.installed: | |
- names: | |
- libcurl4-openssl-dev | |
- build-essential | |
file.managed: | |
- name: {{ libsodium_package }} | |
- source: http://download.dnscrypt.org/libsodium/releases/libsodium-{{ version }}.tar.gz | |
cmd.wait: | |
- cwd: {{ source }} | |
- name: tar -zxvf {{ libsodium_package }} | |
- require: | |
- pkg: get_libsodium | |
- watch: | |
- file: get_libsodium | |
libsodium: | |
cmd.wait: | |
- cwd: {{ source + 'libsodium-' + version }} | |
- name: ./configure && make && make install | |
- watch: | |
- cmd: get_libsodium | |
- require: | |
- cmd: get_libsodium |
Author
dginther
commented
Sep 19, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment