#!/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. # ===================================================================== if ! type "shInclude" > /dev/null; then racine="${racine:-/etc/darkmake}" . /etc/darksh/lib/shTools shLog="${shLog:-"openssl install"}" shDebugEnable="${shDebugEnable:-1}" shDebug "$*" rootDarkMake="${rootDarkMake:-/etc/darkmake}" $(shInclude ${rootDarkMake}/pkg/lib-sh/pkg-config) fi autoPath="lib/crypto/openssl" shErrorOnMissing "autoPath" #stdCleanMakeBeforeMake="depend" #extraConfigure="" #. $racine/lib/autotools/libtool/install/basics path_install_vars="${racine}/${autoPath}/global/install_vars" \ . ${rootDarkMake}/pkg/bin/checks shLog="[ $pkgName/$pkgVersion ]" #if [ ! -f "${pkgSrc}/.darkPatch" ];then # touch "${pkgSrc}/.darkPatch" # mv "${pkgSrc}/Configure" "${pkgSrc}/configure.darkOld" #fi #if [ ! -f "${pkgSrc}/configure" ];then # cd $pkgSrc # filesToInit="$( pkgSrc="${pkgSrc}" findConfigures )" \ # . $racine/lib/autotools/libtool/install/init #fi #pkgSrc="${pkgSrc}/icu4c/source" cd $pkgSrc unameM="$(uname -m)" if [ "i686" = "${unameM}" ];then buildMachine="linux-x86" else buildMachine="linux-${unameM}" fi cpt=0 fileLog="${pkgDirLog}/C${cpt}_configure.log" cpt=$((cpt + 1 ));shDebug 1 "CONFIGURE $fileLog" printEnv > $fileLog echo ./config zlib "${LIBS}" "${CFLAGS}" "${CPPFLAGS}" "${LDFLAGS}" "${buildMachine}" >> $fileLog 2>&1 ./config zlib "${LIBS}" "${CFLAGS}" "${CPPFLAGS}" "${LDFLAGS}" "${buildMachine}" >> $fileLog 2>&1 fileLog="${pkgDirLog}/C${cpt}_configure2.log" cpt=$((cpt + 1 ));shDebug 1 "CONFIGURE $fileLog" printEnv > $fileLog echo ./Configure zlib "${LIBS}" "${CFLAGS}" "${CPPFLAGS}" "${LDFLAGS}" "${buildMachine}" >> $fileLog 2>&1 ./Configure zlib "${LIBS}" "${CFLAGS}" "${CPPFLAGS}" "${LDFLAGS}" "${buildMachine}" >> $fileLog 2>&1 fileLog="${pkgDirLog}/C${cpt}_configureHelp.log" cpt=$((cpt + 1 ));shDebug 1 "CONFIGURE Help $fileLog" printEnv > $fileLog echo ./Configure --help >> $fileLog 2>&1 ./Configure --help >> $fileLog 2>&1 fileLog="${pkgDirLog}/C${cpt}_confDUMP.log" cpt=$((cpt + 1 ));shDebug 1 "CONFIGURE DUMP $fileLog" echo perl configdata.pm --dump > $fileLog 2>&1 perl configdata.pm --dump > $fileLog 2>&1 tail -50l $fileLog echo "Press any key to continue... ";read REPLY stdCleanMakeBeforeMake="depend" . $racine/lib/autotools/make/install/stdCleanMakeInstall --check cd $pkgSrc #cpt=0 #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 > $pkgDirLog/${cpt}_buildconf.log 2>&1 #fi #cpt=$((cpt + 1 ));shDebug 1 "====== CONFIGURE Help [ $(pwd) ] ${cpt}-configureHelp.log" #./config --help > $pkgDirLog/${cpt}_configureHelp.log 2>&1 #cpt=$((cpt + 1 ));shDebug 1 "====== CONFIGURE [ $(pwd) ] ${cpt}_configure.log" #./config shared > $pkgDirLog/${cpt}_configure.log 2>&1 #tail -50l $pkgDirLog/${cpt}_configure.log #echo "Press any key to continue... ";read REPLY #cpt=$((cpt + 1 ));shDebug 1 "====== DEPENDS [ $(pwd) ] ${cpt}_depends.log" #make depend > $pkgDirLog/${cpt}_depends.log 2>&1 ##stdCleanMakeBeforeInstall="test" \ #. $racine/lib/autotools/make/install/stdCleanMakeInstall --check