-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update PHP 7.2 libzip, libsodium & argon2 route
- For Centmin Mod 123.09beta01 and newer branches, fix PHP 7.2 compiles for libzip + libsodium + argon2 support https://community.centminmod.com/threads/update-php-7-2-add-argon2-password-libsodium-support.13294/ - Support is disabled by default as PHP uses embedded libzip zip version. To enable libsodium and argon2 you need to use a newer version of libzip zip library. So to enable set in persistent config file /etc/centminmod/custom_config.inc the variable PHP_LIBZIP='y' and then recompile PHP 7.2 version i.e. 7.2.3 or newer via centmin.sh menu option 5
- Loading branch information
1 parent
8f0aeb7
commit d29b3c3
Showing
5 changed files
with
64 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
libzip_install() { | ||
pushd /svr-setup/ | ||
cecho "Download ${LIBZIP_LINKFILE} ..." $boldyellow | ||
if [ -s "${LIBZIP_LINKFILE}" ]; then | ||
cecho "${LIBZIP_LINKFILE} found, skipping download..." $boldgreen | ||
else | ||
echo "wget -c4 --progress=bar $LIBZIP_LINK --tries=3" | ||
wget -c4 --progress=bar $LIBZIP_LINK --tries=3 | ||
ERROR=$? | ||
if [[ "$ERROR" != '0' ]]; then | ||
cecho "Error: ${LIBZIP_LINKFILE} download failed." $boldgreen | ||
else | ||
cecho "Download done." $boldyellow | ||
fi | ||
fi | ||
tar xvzf ${LIBZIP_LINKFILE} | ||
cd libzip-${LIBZIP_VER} | ||
mkdir build | ||
cd build/ | ||
cmake3 .. | ||
make${MAKETHREADS} | ||
make install | ||
popd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters