From eb32e3a095c02b0160538741b8697ad694c9a745 Mon Sep 17 00:00:00 2001 From: Alexander Weidinger Date: Thu, 15 Mar 2018 15:14:13 +0100 Subject: [PATCH] FreeBSD: support for php.ng.composer added - php.ng.filter - php.ng.hash - php.ng.openssl - php.ng.phar --- php/ng/composer.sls | 8 ++++++++ php/ng/filter.sls | 2 ++ php/ng/hash.sls | 2 ++ php/ng/map.jinja | 8 ++++++++ php/ng/openssl.sls | 2 ++ php/ng/phar.sls | 2 ++ 6 files changed, 24 insertions(+) create mode 100644 php/ng/filter.sls create mode 100644 php/ng/hash.sls create mode 100644 php/ng/openssl.sls create mode 100644 php/ng/phar.sls diff --git a/php/ng/composer.sls b/php/ng/composer.sls index 39e61e7..b20f7c4 100644 --- a/php/ng/composer.sls +++ b/php/ng/composer.sls @@ -12,6 +12,14 @@ include: - php.ng +{% if grains['os_family'] == 'FreeBSD' %} + - php.ng.filter + - php.ng.hash + - php.ng.json + - php.ng.mbstring + - php.ng.openssl + - php.ng.phar +{% endif %} get-composer: file.managed: diff --git a/php/ng/filter.sls b/php/ng/filter.sls new file mode 100644 index 0000000..46c155b --- /dev/null +++ b/php/ng/filter.sls @@ -0,0 +1,2 @@ +{% set state = 'filter' %} +{% include "php/ng/installed.jinja" %} diff --git a/php/ng/hash.sls b/php/ng/hash.sls new file mode 100644 index 0000000..aabf7a6 --- /dev/null +++ b/php/ng/hash.sls @@ -0,0 +1,2 @@ +{% set state = 'hash' %} +{% include "php/ng/installed.jinja" %} diff --git a/php/ng/map.jinja b/php/ng/map.jinja index 0f932a5..331e57a 100644 --- a/php/ng/map.jinja +++ b/php/ng/map.jinja @@ -2398,8 +2398,16 @@ }, 'pkgs': { 'apache2': 'mod_php' + freebsd_phpng_version, + 'composer_bin': 'composer', + 'filter': 'php' + freebsd_phpng_version + '-filter', + 'hash': 'php' + freebsd_phpng_version + '-hash', + 'json': 'php' + freebsd_phpng_version + '-json', 'local_bin': '/usr/local/bin', + 'mbstring': 'php' + freebsd_phpng_version + '-mbstring', + 'openssl': 'php' + freebsd_phpng_version + '-openssl', 'php': 'php' + freebsd_phpng_version, + 'phar': 'php' + freebsd_phpng_version + '-phar', + 'temp_dir': '/tmp', }, }, }), diff --git a/php/ng/openssl.sls b/php/ng/openssl.sls new file mode 100644 index 0000000..b37485b --- /dev/null +++ b/php/ng/openssl.sls @@ -0,0 +1,2 @@ +{% set state = 'openssl' %} +{% include "php/ng/installed.jinja" %} diff --git a/php/ng/phar.sls b/php/ng/phar.sls new file mode 100644 index 0000000..8a1b9ac --- /dev/null +++ b/php/ng/phar.sls @@ -0,0 +1,2 @@ +{% set state = 'phar' %} +{% include "php/ng/installed.jinja" %}