Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jan 3, 2025
1 parent 792b134 commit 3bef89d
Show file tree
Hide file tree
Showing 17 changed files with 370 additions and 99 deletions.
12 changes: 12 additions & 0 deletions plugins/php/versions/52/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@ if [ "${SYS_ARCH}" == "aarch64" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER} ];then

Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/53/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,19 @@ if [ "${SYS_ARCH}" == "aarch64" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER}/bin ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/${PHP_VER} \
Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/54/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,19 @@ if [ "${SYS_ARCH}" == "arm64" ] && [ "$sysName" == "Darwin" ] ;then
cat ${curPath}/versions/${PHP_VER}/src/reentrancy.c > $sourcePath/php/php${PHP_VER}/main/reentrancy.c
fi

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/${PHP_VER} \
Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/55/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,19 @@ if [ "${SYS_ARCH}" == "arm64" ] && [ "$sysName" == "Darwin" ] ;then
cat ${curPath}/versions/${PHP_VER}/src/reentrancy.c > $sourcePath/php/php${PHP_VER}/main/reentrancy.c
fi

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/${PHP_VER} \
Expand Down
12 changes: 12 additions & 0 deletions plugins/php/versions/56/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,18 @@ if [ "${SYS_ARCH}" == "arm64" ] && [ "$sysName" == "Darwin" ] ;then
cat ${curPath}/versions/${PHP_VER}/src/mkstemp.c > $sourcePath/php/php${PHP_VER}/ext/zip/lib/mkstemp.c
fi

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/70/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,19 @@ if [ "${SYS_ARCH}" == "arm64" ] && [ "$sysName" == "Darwin" ] ;then
cat ${curPath}/versions/${PHP_VER}/src/mkstemp.c > $sourcePath/php/php${PHP_VER}/ext/zip/lib/mkstemp.c
fi

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/${PHP_VER} \
Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/71/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,19 @@ if [ "${SYS_ARCH}" == "arm64" ] && [ "$sysName" == "Darwin" ] ;then
cat ${curPath}/versions/${PHP_VER}/src/mkstemp.c > $sourcePath/php/php${PHP_VER}/ext/zip/lib/mkstemp.c
fi

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/${PHP_VER} \
Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/72/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,19 @@ if [ "${SYS_ARCH}" == "arm64" ];then
echo "cat ${curPath}/versions/${PHP_VER}/src/reentrancy.c > $sourcePath/php/php${PHP_VER}/main/reentrancy.c"
fi

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/${PHP_VER} \
Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/73/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,19 @@ else
fi
# ----- cpu end ------

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER}
./configure --prefix=$serverPath/php/${PHP_VER} \
Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/74/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ else
fi
# ----- cpu end ------

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER} && make clean
./configure \
Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/80/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ fi

# echo "$sourcePath/php/php${PHP_VER}"

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER}
./buildconf --force
Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/81/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,19 @@ fi

echo "$sourcePath/php/php${PHP_VER}"

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER}
./configure \
Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/82/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,19 @@ else
fi
# ----- cpu end ------

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

# echo "$sourcePath/php/php${PHP_VER}"
if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER}
Expand Down
15 changes: 13 additions & 2 deletions plugins/php/versions/83/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,20 @@ else
fi
# ----- cpu end ------

echo "$sourcePath/php/php${PHP_VER}"
if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

# echo "$sourcePath/php/php${PHP_VER}"
if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER}
./configure \
Expand All @@ -114,7 +126,6 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-openssl \
--enable-mbstring \
--enable-ftp \
--enable-sockets \
Expand Down
13 changes: 13 additions & 0 deletions plugins/php/versions/84/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,19 @@ fi
# OPTIONS="${OPTIONS} --enable-debug"
# OPTIONS="${OPTIONS} --enable-dtrace"

if [ "$sysName" == "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

LIB_DEPEND_DIR=`brew info openssl | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="$OPTIONS --with-openssl=$(brew --prefix openssl)"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
export OPENSSL_CFLAGS="-I${LIB_DEPEND_DIR}/include"
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
else
OPTIONS="$OPTIONS --with-openssl"
fi

echo "$sourcePath/php/php${PHP_VER}"

if [ ! -d $serverPath/php/${PHP_VER} ];then
Expand Down
Loading

0 comments on commit 3bef89d

Please sign in to comment.