Commit Graph

61 Commits

Author SHA1 Message Date
arend
55939d5cd1 fix(module): include php version in redis module package name
set the php version in the map for debian module redis to allow installation of the desired version
2021-09-14 20:12:21 +02:00
sticky-note
4c9ed0295c feat(mods): add xsl module for FreeBSD 2021-06-17 12:53:32 +11:00
sticky-note
7eef994582 feat(mods): add soap module for FreeBSD 2021-06-17 12:53:32 +11:00
sticky-note
6381ad4634 feat(mods): add bcmath module for FreeBSD 2021-06-17 12:07:24 +11:00
Alexander Weidinger
d727b15557
feat(composer): make dependencies configurable 2021-03-31 09:17:30 +01:00
sylvainfaivre
393d69eb0f fix(map.jinja): fix pid file location for debian
The PID file location for Debian changed recently
see https://www.patreon.com/posts/february-updates-34189046
and https://github.com/oerdnj/deb.sury.org/issues/1334
2020-02-27 10:39:17 +01:00
Javier Bértoli
8b69034c5b feat(odbc): add odbc module support 2019-12-09 12:29:35 -03:00
Mark Gomersbach
39b1307671 fix(map.jinja): fix useflags regex (gentoo)
* fix(map.jinja): fix useflags regex

When using version inside useflag, the sls_block macro with ebuildpkg regex result in a range error.
Replacing the version argument with uses seem to work as escapes don't really work there.

fix(map.jinja): replace all problematic lines
fix(map.jinja): update available targets

```
----------
          ID: php_install_imagick_dev-php-pecl-imagick
    Function: pkg.installed
        Name: dev-php/pecl-imagick
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib64/python3.6/site-packages/salt/state.py", line 1933, in call
                  **cdata['kwargs'])
                File "/usr/lib64/python3.6/site-packages/salt/loader.py", line 1951, in wrapper
                  return f(*args, **kwargs)
                File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 1563, in installed
                  **kwargs)
                File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 651, in _find_install_targets
                  for name, version in desired.items()
                File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 652, in <listcomp>
                  if not (name in cur_pkgs and (version is None or _fulfills_version_string(cur_pkgs[name], version)))
                File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 216, in _fulfills_version_string
                  fullfills_all = fullfills_all and _fulfills_version_spec([installed_version], operator, version_string, ignore_epoch=ignore_epoch)
                File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 234, in _fulfills_version_spec
                  if (oper == '==' and fnmatch.fnmatch(ver, desired_version)) \
                File "/usr/lib64/python3.6/fnmatch.py", line 36, in fnmatch
                  return fnmatchcase(name, pat)
                File "/usr/lib64/python3.6/fnmatch.py", line 70, in fnmatchcase
                  match = _compile_pattern(pat)
                File "/usr/lib64/python3.6/fnmatch.py", line 46, in _compile_pattern
                  return re.compile(res).match
                File "/usr/lib64/python3.6/re.py", line 233, in compile
                  return _compile(pattern, flags)
                File "/usr/lib64/python3.6/re.py", line 301, in _compile
                  p = sre_compile.compile(pattern, flags)
                File "/usr/lib64/python3.6/sre_compile.py", line 562, in compile
                  p = sre_parse.parse(p, flags)
                File "/usr/lib64/python3.6/sre_parse.py", line 855, in parse
                  p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
                File "/usr/lib64/python3.6/sre_parse.py", line 416, in _parse_sub
                  not nested and not items))
                File "/usr/lib64/python3.6/sre_parse.py", line 765, in _parse
                  p = _parse_sub(source, state, sub_verbose, nested + 1)
                File "/usr/lib64/python3.6/sre_parse.py", line 416, in _parse_sub
                  not nested and not items))
                File "/usr/lib64/python3.6/sre_parse.py", line 553, in _parse
                  raise source.error(msg, len(this) + 1 + len(that))
              sre_constants.error: bad character range 7-3 at position 20
     Started: 14:28:26.927898
    Duration: 6321.149 ms
     Changes:
```

* Use single-quoting

Signed-off-by: Mark Gomersbach <markgomersbach@gmail.com>
2019-12-02 21:54:41 +00:00
Imran Iqbal
01f5ede277
fix(map.jinja): fix salt-lint errors
```bash
Examining php/map.jinja of type state
[204] Lines should be no longer that 160 chars
php/map.jinja:25
                            'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'],

[204] Lines should be no longer that 160 chars
php/map.jinja:191
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:192
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:520
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:521
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:896
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:897
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:1270
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:1271
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:1644
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:1645
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:2035
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:2036
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:2206
                            'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'],

[204] Lines should be no longer that 160 chars
php/map.jinja:2375
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:2376
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
```
2019-10-09 16:07:50 +01:00
Nicolas Rodriguez
496ec28dae fix(xdebug): fix xdebug package name 2019-09-04 22:46:11 +02:00
Nicolas Rodriguez
b13bed2a48 test(ubuntu): fix tests on Ubuntu distro 2019-09-04 02:58:06 +02:00
sticky-note
f1b71d00ae feat(ng): promote NG formula
BREAKING CHANGES: users must adapt their pillar. See `docs.REAME.rst`
2019-08-20 13:01:49 +11:00
Bogdan Radulescu
1ea47c267e Added support for Debian 9 2018-06-26 15:32:55 +00:00
Alexander Weidinger
7ea03f350f FreeBSD: support for php.composer 2018-03-15 22:22:30 +01:00
Niels Abspoel
f08552cd53
Merge pull request #140 from tsia/patch-1
fixed copy/paste error
2017-11-14 20:09:45 +01:00
tsia
7bdc6a05c4
fixed typo 2017-11-07 11:31:07 +01:00
tsia
695b66c338
added support for ubuntu 17.10 / php7.1 2017-11-07 11:28:50 +01:00
tsia
913efbb0df
fixed copy/paste error
variable `phpng_version` was used here instead of `php_version`
2017-11-07 11:20:36 +01:00
Javier Bértoli
5d4a8201de Add Sybase/MS-SQL extension 2017-06-28 15:32:43 -03:00
sc250024
1e3e3032f3 New structure for new Ubuntu PPA and other fixes (#113)
* Initial commit for new branch

* Quick change to base test files

* Updated map.jinja, added `php` dependency for all subformulas

* Fixing mongo module and map.jinja needed OpenSSL dev libraries

* Should be final changes needed for Mongo module

* Updating Suhosin package since many distros don't have package in their
repos anymore

* Generalizing suhosin module, and updating pillar.example for new PPA

* Adding addtional logic for RedHat based families to Suhosin

* Initial commit of NG refactored map.jinja file

* Deleting FFMpeg state file since the module is quite old, and has been
replaced by using a Composer library. See
https://github.com/PHP-FFMpeg/PHP-FFMpeg for details

* Updating NG formulas for new definitions

* Removing 'twig' as a state since it can be installed via Composer

* Changes to installed.jinja to set correct PHP path based on version

* NG Composer and NG Suhosin changes

* Version bump and deleting README for deleted states

* Finished refactor of NG map.jinja file

* Adding trailing commas (forgot them earler)

* Adding changes list, and modifying map file for missing definitions when
using Ubuntu 16.04 and NOT using a PPA

* Changes needed after performing testing on RHEL 7

* Changes needed for Ubuntu Trusty without using PPA

* Removing testing files; keep on local

* Map changes needed after testing Debian Jessie

* Changed needed for Debian Wheezy

* Adding more pkgs for Arch Linux support

* More ArchLinux support

* Stupid tabs

* Removing extra line breaks, and using the general "use_external_repo" in
the future if DotDeb (Debian) or Webtactic (RedHat)

* Accoutning for Precise `phpenmod` and others
2016-12-13 13:37:53 -08:00
Wolodja Wentland
41f417be16 Remove duplicate dev_pkg entries.
This was introduced in #86 and really should have never been released.
2016-07-25 14:50:56 +02:00
Aline Freitas
8aaff98176 Add support for Ubuntu Xenial Xerus (16.04). 2016-07-07 20:14:32 -03:00
Alex Powell
de96c787d5 Fixing composer with php7.
Fixing php7 pgsql package definition.
Adding mbstring and sqlite package definitions for php7.
2016-06-01 19:03:31 +01:00
Niels Abspoel
33ea716515 add php-zip 2016-05-02 21:58:00 +02:00
Wolodja Wentland
c780e165e5 Do not hardcode composer checksum
This allows composer installs to function even if the installer checksum
changes, and doesn't force us to update the formula whenever their
installer changes.

We can do this now as composer upstream provides the checksum on
https://composer.github.io/installer.sig since 2016-04-28.
2016-04-29 10:53:57 +02:00
Wolodja Wentland
f1aa592207 Update composer installer sha256 hash 2016-04-14 13:30:14 +02:00
Bogdan Radulescu
6e87843aa9 Added a bunch of new PHP7 packages and fixed fpm_service for PHP5 2016-03-30 04:42:06 -07:00
Bogdan Radulescu
8fc048a4b5 Added the readline PHP package and support for PHP7 in Debian. 2016-03-29 07:48:03 -07:00
Bogdan Radulescu
7c2bd44ae9 Added the php-mail package for Debian 2015-12-16 13:24:03 +00:00
Nitin Madhok
16e7cb083b Merge pull request #42 from teohhanhui/patch-1
Fix Debian package name for `php.ng.xml` state
2015-07-22 05:12:18 -04:00
Hayden King
77c6e9b2c0 add composer bin and hash variables so it could be overridden in pillar if needed. 2015-07-19 18:01:34 -05:00
Teoh Han Hui
3f3467d17a Fix Debian package name for php.ng.xml state
XML module is already built-in. In any case, `php5-xmlrpc` package actually provides XML-RPC module.
2015-06-25 19:22:26 +08:00
Kurt Bendlin
547d62bff4 we also need the map,jinja-entry 2015-05-17 16:59:42 +02:00
Jordi Boggiano
3f1bb7d964 Add apcu support 2015-04-25 11:35:29 +01:00
Niels Abspoel
1fd98a6eaf Added opensuse support
See README.rst for more information
2015-03-09 22:22:48 +01:00
Forrest
2cf2d020e2 Merge pull request #32 from xclusv/feature-composer
Add php.composer state
2015-03-06 11:50:26 -08:00
jeroen92
be2f5d7a0d Fix php(5) typo 2015-03-06 15:49:06 +01:00
jeroen92
8194cba6aa Add sqlite support 2015-03-06 15:42:00 +01:00
Ross Perkins
2780ad7e77 Added Composer support 2015-02-20 11:12:19 +01:00
Chin Kiong, Ng
bec65b8875 Merge branch 'features/redis'
Conflicts:
	php/map.jinja
	php/ng/map.jinja
2014-12-17 17:39:30 +08:00
Chin Kiong, Ng
0c66177ed0 Added PHP Redis module 2014-12-17 17:36:53 +08:00
Chin Kiong, Ng
0704c75b7d Fixed Ubuntu/Debian xml package name and extra space typo 2014-12-17 17:12:30 +08:00
Seth Miller
9c2e178fe3 fix imagick package name for RedHat systems 2014-11-23 15:52:09 -06:00
Walter Dal Mut
d14b686e5e Added mongo extension via pecl and use ppa for php 2014-08-21 15:14:28 +02:00
Michael Hubbard
0503ba52b3 New module: intl 2014-08-10 21:51:16 -04:00
Chad Heuschober
7268b7d69e Merge branch 'master' of github.com:saltstack-formulas/php-formula 2014-06-05 16:31:49 -04:00
Nicholas J
0d0cf6827d This commit adds the php-json package.
The json features of php have been moved to a separate package in the following distributions:
  - Debian >= 8 (jessie)
  - Ubuntu >= 13.04

Changes:
  - Added json.sls
  - Updated map.jinja
  - Updated README.md
2014-05-22 10:43:58 -04:00
Clayton Kramer
cfe623fab4 New state for managing the php.ini file. 2014-05-19 16:54:29 -04:00
Giuseppe Iannello
be040a1229 Fix #9 - Add explicit installation for php-cgi 2014-04-09 20:06:30 +02:00
Giuseppe Iannello
4f45372ff3 Added php-cli package 2014-04-09 16:52:01 +02:00