Преглед на файлове

[Filemanager] Enable zip and gmp libs when building Hestia php

GMP lib improves sftp performance and ZIP enables un/compression features in the filemanager
Robert Zollner преди 5 години
родител
ревизия
dde0dc69d5
променени са 1 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 5 3
      src/hst_autocompile.sh

+ 5 - 3
src/hst_autocompile.sh

@@ -98,7 +98,7 @@ mkdir -p $DEB_DIR
 mkdir -p $ARCHIVE_DIR
 mkdir -p $ARCHIVE_DIR
 
 
 # Set package dependencies for compiling
 # Set package dependencies for compiling
-SOFTWARE='build-essential libxml2-dev libz-dev libcurl4-gnutls-dev unzip openssl libssl-dev pkg-config libsqlite3-dev libonig-dev'
+SOFTWARE='build-essential libxml2-dev libz-dev libzip-dev libgmp-dev libcurl4-gnutls-dev unzip openssl libssl-dev pkg-config libsqlite3-dev libonig-dev'
 
 
 # Define a timestamp function
 # Define a timestamp function
 timestamp() {
 timestamp() {
@@ -340,6 +340,8 @@ if [ "$PHP_B" = true ] ; then
                 --with-libdir=lib/x86_64-linux-gnu \
                 --with-libdir=lib/x86_64-linux-gnu \
                 --with-mysqli \
                 --with-mysqli \
                 --with-curl \
                 --with-curl \
+                --with-zip \
+                --with-gmp \
                 --enable-mbstring
                 --enable-mbstring
 
 
     # Create the files and install them
     # Create the files and install them
@@ -397,7 +399,7 @@ if [ "$PHP_B" = true ] ; then
     # clear up the source folder
     # clear up the source folder
     rm -r hestia-php_$PHP_V
     rm -r hestia-php_$PHP_V
     rm -rf usr/
     rm -rf usr/
-    if [ ! -z "$use_src_folder" ] && [ -d $$BUILD_DIR/hestiacp-$branch ]; then
+    if [ ! -z "$use_src_folder" ] && [ -d $BUILD_DIR/hestiacp-$branch ]; then
       rm -r $BUILD_DIR/hestiacp-$branch
       rm -r $BUILD_DIR/hestiacp-$branch
     fi
     fi
 fi
 fi
@@ -409,7 +411,7 @@ fi
 #
 #
 #################################################################################
 #################################################################################
 
 
-if [ "$HESTIA_B" = true ] ; then
+if [ "$HESTIA_B" = true ]; then
     echo "Building Hestia Control Panel package..."
     echo "Building Hestia Control Panel package..."
     # Change to build directory
     # Change to build directory
     cd $BUILD_DIR
     cd $BUILD_DIR