#!/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:-"lib rtmp install"}" shDebugEnable="${shDebugEnable:-1}" shDebug "$*" rootDarkMake="${rootDarkMake:-/etc/darkmake}" $(shInclude ${rootDarkMake}/pkg/lib-sh/pkg-config) fi autoPath="lib/web/librtmp" shErrorOnMissing "autoPath" extraConfigure="" \ . "${rootDarkMake}/lib/autotools/libtool/install/basics" file="/usr/local/lib/pkgconfig/librtmp.pc" sed -i "s/@prefix@/\/usr\/local/g" "${file}" sed -i "s/@libdir@/\/usr\/local\/lib/g" "${file}" exit 0 path_install_vars="${rootDarkMake}/${autoPath}/global/install_vars" \ . ${rootDarkMake}/lib/autotools/pkg-config/bin/checks shLog="[ $pkgName/$pkgVersion ]" if [ ! -f "${pkgSrc}/.darkPatch" ];then touch "${pkgSrc}/.darkPatch" for file in "${pkgSrc}/Makefile.am" "${pkgSrc}/Makefile.in" ;do sed -i "s/@EXTRA_LINKER_FLAGS@//g" "${file}" sed -i "s/@EXTRA_HOGWEED_LINKER_FLAGS@//g" "${file}" done fi #extraConfigure="" \ cd $pkgSrc filesToInit="$( pkgSrc="${pkgSrc}" findConfigures )" \ . ${rootDarkMake}/lib/autotools/libtool/install/init # autoupdateResetConfigure="1" \ cd $pkgSrc cpt=0 fileLog="${pkgDirLog}/C${cpt}_configureHelp.log" cpt=$((cpt + 1 ));shDebug 1 "CONFIGURE Help $fileLog" printEnv > $fileLog ./configure --help >> $fileLog 2>&1 fileLog="${pkgDirLog}/C${cpt}_configure.log" cpt=$((cpt + 1 ));shDebug 1 "CONFIGURE $fileLog" printEnv > $fileLog echo ./configure >> $fileLog 2>&1 ./configure >> $fileLog 2>&1 tail -50l $fileLog echo "Press any key to continue... ";read REPLY . ${rootDarkMake}/lib/autotools/make/install/stdCleanMakeInstall --check exit if ! type "shInclude" > /dev/null; then # rootDarkMake="${rootDarkMake:-/etc/darkmake}" . /etc/darkcontainer/lib/shTools fi shLog="nettle-initcompile" shDebugEnable="1" shDebug "$*" path_install_vars="${rootDarkMake}/lib/crypto/nettle/global/install_vars" \ . ${rootDarkMake}/lib/autotools/pkg-config/bin/checks shLog="[ $pkgName/$pkgVersion ]" pkgDirLog="$pkgDirLog" pkgSrc="$pkgSrc" pkgName="$pkgName" pkgVersion="$pkgVersion" ${rootDarkMake}/pkg/bin/getsource #if [ ! -f "$pkgSrc/configure" ];then # cd $pkgSrc # filesToInit="" # for subFolder in $(find . | grep Makefile\.in$ | rev | cut -d/ -f 2- | rev | tr '\n' ' ');do # if [ "$subFolder" = "." ];then filesToInit="$filesToInit $pkgSrc/configure"; # else filesToInit="$filesToInit $pkgSrc/$subFolder/configure";fi # done # filesToInit="$filesToInit" \ # YACC="$YACC" INTLBISON="$INTLBISON" CC="$CC" \ # GNULIB_SRCDIR="$GNULIB_SRCDIR" GNULIB_TOOL="$GNULIB_TOOL" \ # LIBGNU_LIBS="$LIBGNU_LIBS" LIBGNU_CFLAGS="$LIBGNU_CFLAGS" LIBGNU_PATH="$LIBGNU_PATH" \ # LIBTOOL_LIBS="$LIBTOOL_LIBS" LIBTOOL_CFLAGS="$LIBTOOL_CFLAGS" LIBTOOL_PATH="$LIBTOOL_PATH" LIBTOOL="$LIBTOOL" LIBTOOLIZE="$LIBTOOLIZE" \ # LIBRARY_PATH="$LIBRARY_PATH" LD_RUN_PATH="$LD_RUN_PATH" LD_LIBRARY_PATH="$LD_LIBRARY_PATH" \ # M4DIR="$M4DIR" LIBS="$LIBS" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" \ # pkgDirLog="$pkgDirLog" pkgSrc="$pkgSrc" pkgName="$pkgName" pkgVersion="$pkgVersion" \ # . ${rootDarkMake}/lib/autotools/libtool/install/init # #AUTORECONF_CONF="none" AUTOMAKE_CONF="non" \ #fi cd $pkgSrc shDebug 1 "================== APT" ${rootDarkMake}/pkg/bin/aptCheck texlive if [ ! -f ./configure ];then # echo "[ $pkgName/$pkgVersion ] ======== AUTO SCAN/CONF ======" # ./autogen.sh > $pkgDirLog/XX_autogen.log 2>&1 # dirIncludeM4="" ## dirIncludeM4="-I m4" # if [ -d /usr/share/aclocal ];then dirIncludeM4="$dirIncludeM4 -I /usr/share/aclocal";fi # if [ -d /usr/local/share/aclocal ];then dirIncludeM4="$dirIncludeM4 -I /usr/local/share/aclocal";fi ## libtoolize --force > $pkgDirLog/01_libtoolize.log 2>&1 # aclocal $dirIncludeM4 > $pkgDirLog/02_aclocal.log 2>&1 # autoheader > $pkgDirLog/03_autoheader.log 2>&1 # automake --force-missing --add-missing > $pkgDirLog/04_automake.log 2>&1 ## autoscan > $pkgDirLog/05_autoscan.log 2>&1 # autoconf > $pkgDirLog/05_autoconf.log 2>&1 # autoreconf -iv $dirIncludeM4 > $pkgDirLog/06_autoreconf.log 2>&1 shDebug 1 "======== BOOTSTRAP ========" ./.bootstrap > $pkgDirLog/XX_bootstrap.log 2>&1 fi shDebug 1 "======== CONFIGURE ========" ./configure --help > $pkgDirLog/configureHelp.log 2>&1 YACC="$YACC" INTLBISON="$INTLBISON" CC="$CC" \ GNULIB_SRCDIR="$GNULIB_SRCDIR" GNULIB_TOOL="$GNULIB_TOOL" \ LIBGNU_LIBS="$LIBGNU_LIBS" LIBGNU_CFLAGS="$LIBGNU_CFLAGS" LIBGNU_PATH="$LIBGNU_PATH" \ LIBTOOL_LIBS="$LIBTOOL_LIBS" LIBTOOL_CFLAGS="$LIBTOOL_CFLAGS" LIBTOOL_PATH="$LIBTOOL_PATH" LIBTOOL="$LIBTOOL" LIBTOOLIZE="$LIBTOOLIZE" \ LIBRARY_PATH="$LIBRARY_PATH" LD_RUN_PATH="$LD_RUN_PATH" LD_LIBRARY_PATH="$LD_LIBRARY_PATH" \ M4DIR="$M4DIR" LIBS="$LIBS" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" \ pkgDirLog="$pkgDirLog" pkgSrc="$pkgSrc" pkgName="$pkgName" pkgVersion="$pkgVersion" \ ./configure > $pkgDirLog/configure.log 2>&1 tail $pkgDirLog/configure.log echo "Press any key to continue... ";read REPLY YACC="$YACC" INTLBISON="$INTLBISON" CC="$CC" \ GNULIB_SRCDIR="$GNULIB_SRCDIR" GNULIB_TOOL="$GNULIB_TOOL" \ LIBGNU_LIBS="$LIBGNU_LIBS" LIBGNU_CFLAGS="$LIBGNU_CFLAGS" LIBGNU_PATH="$LIBGNU_PATH" \ LIBTOOL_LIBS="$LIBTOOL_LIBS" LIBTOOL_CFLAGS="$LIBTOOL_CFLAGS" LIBTOOL_PATH="$LIBTOOL_PATH" LIBTOOL="$LIBTOOL" LIBTOOLIZE="$LIBTOOLIZE" \ LIBRARY_PATH="$LIBRARY_PATH" LD_RUN_PATH="$LD_RUN_PATH" LD_LIBRARY_PATH="$LD_LIBRARY_PATH" \ M4DIR="$M4DIR" LIBS="$LIBS" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" \ pkgDirLog="$pkgDirLog" pkgSrc="$pkgSrc" pkgName="$pkgName" pkgVersion="$pkgVersion" \ . ${rootDarkMake}/lib/autotools/make/install/stdCleanMakeInstall --check