#!/bin/sh # ===================================================================== # Projet : DARKMAKE # Fichier : compile # Auteur : Nicolas "DarkHack" Chapuis (c) 2026 # ================== DARKHACK ================== # [ darkweb.fr - system online ] # Powered by Perplexity, your AI assistant # [https://www.perplexity.ai](https://www.perplexity.ai) # ============================================== # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ===================================================================== rootDarkMake="${rootDarkMake:-/etc/darkmake}" if ! type "shInclude" > /dev/null; then . /etc/darksh/lib/shTools shLog="${shLog:-"php7 install"}" shDebugEnable="${shDebugEnable:-1}" shDebug "$*" $(shInclude /etc/darkcontainer/lib/autotools/pkg-config) fi autoPath="web/php7" shErrorOnMissing "autoPath" extraConfigure="--with-xmlrpc --enable-sockets --enable-pcntl --enable-sysvmsg --enable-mbstring" extraConfigure="${extraConfigure} --with-curl=/usr/local --with-openssl --with-zlib=/usr/local --with-xpm-dir==/usr/local " extraConfigure="${extraConfigure} --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local" extraConfigure="${extraConfigure} --with-libxml-dir=/usr/local --with-apxs2=/usr/local/apache2/bin/apxs" extraConfigure="${extraConfigure}" \ . "${rootDarkMake}/lib/autotools/libtool/install/basics" #cpt=$((cpt + 1 ));shDebug 1 "====== APT ${cpt}_apt.log" #$racine/pkg/bin/aptCheck re2c > $pkgDirLog/${cpt}_apt.log 2>&1 # libmcrypt-dev #if [ ! -f "./configure" ];then # cpt=$((cpt + 1 ));shDebug 1 "====== BUILDCONF ${cpt}_buildconf.log" # ./buildconf --force > $pkgDirLog/${cpt}_buildconf.log 2>&1 #fi #cpt=$((cpt + 1 ));shDebug 1 "====== CONFIGURE Help [ $(pwd) ] ${cpt}-configureHelp.log" #./configure --help > $pkgDirLog/${cpt}_configureHelp.log 2>&1 #mysqlenable="" #mysqlconfig="$(which mysql_config)" #if [ -f "$mysqlconfig" ];then # CPPFLAGS="$CPPFLAGS -I/usr/include/mysql" ## CPPFLAGS="$CPPFLAGS -I/usr/include/mysql/server" ## CPPFLAGS="$CPPFLAGS -I/usr/include/mariadb/server" # mysqlenable="--with-mysqli=$mysqlconfig" ## mysqlenable="--enable-mysqlnd --with-mysqli=$mysqlconfig" ## mysqlenable="--enable-mysqlnd --enable-embedded-mysqli" #fi # --with-webp-dir=DIR GD: Set the path to libwebp install prefix # --with-xpm-dir=DIR GD: Set the path to libXpm install prefix # --with-freetype-dir=DIR GD: Set the path to FreeType 2 install prefix # --with-mcrypt --with-mysqli --with-mysql #cpt=$((cpt + 1 ));shDebug 1 "====== CONFIGURE [ $(pwd) ] ${cpt}-configure.log" #./configure --with-libxml-dir=/usr/local \ # --with-curl=/usr/local --with-openssl=/usr/local/ssl --with-zlib=/usr/local --with-xpm-dir==/usr/local \ # --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-xmlrpc \ # --enable-sockets --enable-pcntl --enable-sysvmsg --with-apxs2=/usr/local/apache2/bin/apxs\ # --enable-mbstring $mysqlenable > $pkgDirLog/${cpt}_configure.log 2>&1