Skip to content

Commit 4df395a

Browse files
authored
Update php56 install-php-extensions
1 parent 05c82bd commit 4df395a

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

services/php56/extensions/install-php-extensions

+37-2
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,12 @@ buildRequiredPackageLists() {
15541554
xmlrpc@debian)
15551555
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
15561556
;;
1557+
xpass@alpine)
1558+
if ! isLibXCryptInstalled; then
1559+
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile linux-headers"
1560+
COMPILE_LIBS="$COMPILE_LIBS libxcrypt"
1561+
fi
1562+
;;
15571563
xsl@alpine)
15581564
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libxslt"
15591565
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxslt-dev libgcrypt-dev"
@@ -2423,6 +2429,25 @@ installFirebird() {
24232429
cd - >/dev/null
24242430
fi
24252431
}
2432+
2433+
isLibXCryptInstalled() {
2434+
if ! test -f /usr/local/lib/libcrypt.so && ! test -f /usr/lib/libcrypt.so && ! test -f /usr/lib/x86_64*/libcrypt.so; then
2435+
return 1
2436+
fi
2437+
return 0
2438+
}
2439+
2440+
installLibXCrypt() {
2441+
printf 'Installing libxcrypt\n'
2442+
installLibXCrypt_version=4.4.36
2443+
installLibXCrypt_src="$(getPackageSource "https://github.com/besser82/libxcrypt/releases/download/v$installLibXCrypt_version/libxcrypt-$installLibXCrypt_version.tar.xz")"
2444+
cd -- "$installLibXCrypt_src"
2445+
./configure --prefix /usr
2446+
make -j$(getProcessorCount)
2447+
make install
2448+
cd - >/dev/null
2449+
}
2450+
24262451
# Install Composer
24272452
installComposer() {
24282453
installComposer_version="$(getWantedPHPModuleVersion @composer)"
@@ -2618,6 +2643,9 @@ compileLibs() {
26182643
if stringInList firebird "$COMPILE_LIBS"; then
26192644
installFirebird
26202645
fi
2646+
if stringInList libxcrypt "$COMPILE_LIBS"; then
2647+
installLibXCrypt
2648+
fi
26212649
}
26222650

26232651
# Install a bundled PHP module given its handle
@@ -3067,6 +3095,13 @@ installRemoteModule() {
30673095
installRemoteModule_version=alpha
30683096
fi
30693097
;;
3098+
ev)
3099+
if test -z "$installRemoteModule_version"; then
3100+
if test $PHP_MAJMIN_VERSION -lt 800; then
3101+
installRemoteModule_version=1.1.5
3102+
fi
3103+
fi
3104+
;;
30703105
event)
30713106
installRemoteModule_version="$(resolvePeclStabilityVersion "$installRemoteModule_module" "$installRemoteModule_version")"
30723107
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 2.4.0) -ge 0; then
@@ -3839,10 +3874,10 @@ installRemoteModule() {
38393874
snuffleupagus)
38403875
if test -z "$installRemoteModule_path"; then
38413876
if test -z "$installRemoteModule_version"; then
3842-
if test $PHP_MAJMIN_VERSION -le 704; then
3877+
if test $PHP_MAJMIN_VERSION -le 800; then
38433878
installRemoteModule_version=0.9.0
38443879
else
3845-
installRemoteModule_version=0.10.0
3880+
installRemoteModule_version=0.11.0
38463881
fi
38473882
fi
38483883
installRemoteModule_src="$(getPackageSource https://codeload.github.com/jvoisin/snuffleupagus/tar.gz/v$installRemoteModule_version)"

0 commit comments

Comments
 (0)