From a1f445d99fb464d5d93d699471e6bce50fe0960a Mon Sep 17 00:00:00 2001 From: Christian McHugh Date: Sat, 22 Oct 2016 20:25:51 +0100 Subject: [PATCH] add php-bcmath --- php/bcmath.sls | 5 +++++ php/ng/bcmath.sls | 2 ++ php/ng/map.jinja | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 php/bcmath.sls create mode 100644 php/ng/bcmath.sls diff --git a/php/bcmath.sls b/php/bcmath.sls new file mode 100644 index 0000000..a4d0896 --- /dev/null +++ b/php/bcmath.sls @@ -0,0 +1,5 @@ +{% from "php/map.jinja" import php with context %} + +php-bcmath: + pkg.installed: + - name: {{ php.bcmath_pkg }} diff --git a/php/ng/bcmath.sls b/php/ng/bcmath.sls new file mode 100644 index 0000000..14a2da6 --- /dev/null +++ b/php/ng/bcmath.sls @@ -0,0 +1,2 @@ +{% set state = 'bcmath' %} +{% include "php/ng/installed.jinja" %} diff --git a/php/ng/map.jinja b/php/ng/map.jinja index 70e3808..6bd8de8 100644 --- a/php/ng/map.jinja +++ b/php/ng/map.jinja @@ -4,6 +4,7 @@ 'Debian': { 'pkgs': { 'apcu': 'php-apcu', + 'bcmath': 'php7.0-bcmath', 'php': 'php7.0', 'cgi': 'php7.0-cgi', 'cli': 'php7.0-cli', @@ -296,6 +297,7 @@ 'Ubuntu': { 'pkgs': { 'php': 'php', + 'bcmath': 'php7.0-bcmath', 'apc': 'php', 'apcu': 'php-apcu', 'cgi': 'php-cgi',