#!/bin/sh # ===================================================================== # Projet : DARKMAKE # Fichier : install_vars # 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. # ===================================================================== pkgName="apr" #pkgVersion="1.6.2" #pkgVersion="1.6.3" #pkgVersion="1.7.0" pkgVersion="1.7.5" pkgDeps="lib/autotools/autoconf;lib/autotools/gnulib;lib/autotools/automake" pkgDeps="$pkgDeps;lib/web/expat;lib/web/libxml2;lib/crypto/openssl;lib/languages/python" pkgDeps="$pkgDeps;lib/autotools/libtool" pkgConfName="apr-2" pkgInstallPath="web/apache2Apr" pkgConfPath="/usr/local/apr/lib" if [ -f /usr/local/apr/bin/apr-2-config ];then cmdAprConfig=/usr/local/apr/bin/apr-2-config elif [ -f /usr/local/apr/bin/apr-1-config ];then cmdAprConfig=/usr/local/apr/bin/apr-1-config fi if [ -x "/usr/local/apr/bin/apr-2-config" ];then aprConfig="/usr/local/apr/bin/apr-2-config" APR="/usr/local/apr/bin/apr-2-config" elif [ -x "/usr/local/apr/bin/apr-1-config" ];then aprConfig="/usr/local/apr/bin/apr-1-config" APR="/usr/local/apr/bin/apr-1-config" fi PKG_SEARCHLIB_FILE="libapr-1.so" PKG_SEARCHEAD_FILE="apr.h" PKG_SEARCHEADLIB_FOLDERS="" APR_LIB="" APR_INCLUDE="" if [ -f "/usr/local/apr/include/apr-1/${PKG_SEARCHEAD_FILE}" ];then APR_INCLUDE="/usr/local/apr/include/apr-1" fi if [ -f "/usr/local/apr/lib/${PKG_SEARCHLIB_FILE}" ];then APR_LIB="/usr/local/apr/lib" #elif [ -f "/usr/lib/i386-linux-gnu/{PKG_SEARCHLIB_FILE}" ];then # APR_LIB="/usr/lib/i386-linux-gnu" fi PKG_SEARCHEADLIB_FOLDERS="$PKG_SEARCH_FOLDERS ${APR_LIB}:${APR_INCLUDE}" work="/opt/lib/$pkgName" pkgSrc="$work/$pkgVersion" pkgDirLog="$work/$pkgVersion-log" #if [ ! -d "$pkgSrc" ];then mkdir -p "$pkgSrc";fi if [ ! -d "$pkgDirLog" ];then mkdir -p "$pkgDirLog";fi