Skip to content

Commit

Permalink
Merge pull request #552 from oxc/freebsd_prefix
Browse files Browse the repository at this point in the history
Improve package prefix selection on FreeBSD
  • Loading branch information
bastelfreak authored Apr 21, 2020
2 parents 691df11 + 3e011b9 commit 80e9279
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 8 additions & 0 deletions manifests/globals.pp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@
}
}
'FreeBSD': {
case $globals_php_version {
/^(\d)\.(\d)$/: {
$package_prefix = "php${1}${2}-"
}
default: {
$package_prefix = 'php56-'
}
}
$default_config_root = '/usr/local/etc'
$default_fpm_pid_file = '/var/run/php-fpm.pid'
$fpm_service_name = undef
Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
$fpm_group = 'www'
$embedded_package_suffix = 'embed'
$embedded_inifile = "${config_root}/php-embed.ini"
$package_prefix = 'php56-'
$package_prefix = $php::globals::package_prefix
$compiler_packages = ['gcc']
$manage_repos = false
$root_group = 'wheel'
Expand Down
4 changes: 0 additions & 4 deletions manifests/pear.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
# even though others are called 'php5-fpm' or 'php5-dev'
$package_name = "php-${php::params::pear_package_suffix}"
}
'FreeBSD': {
# On FreeBSD the package name is just 'pear'.
$package_name = $php::params::pear_package_suffix
}
default: {
# This is the default for all other architectures
$package_name = "${php::package_prefix}${php::params::pear_package_suffix}"
Expand Down

0 comments on commit 80e9279

Please sign in to comment.