#!/bin/sh # ===================================================================== # Projet : DARKMAKE # Fichier : check # 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 2>&1; then . /etc/darksh/lib/shTools fi shLog="pkg/bin/check" shDebugEnable="1" #|-----------------------------------------------------| #| user right "which" tools | #| chmod | chown | chgrp | groupadd | useradd | chroot | #|-----------------------------------------------------| #$(shInclude /etc/darksrv/which/lib-sh/userRight) #pkgConfName="pthread-stubs" pkgInstallPath="lib/graphical/xcb-pthread-stubs" ./pkg/bin/check shErrorOnMissing "pkgInstallPath" #shWarnOnMissing "PKG_CONFIG_PATH pkgConfName PKG_SEARCHLIB_FILE PKG_SEARCHEAD_FILE PKG_SEARCHEADLIB_FOLDERS PKG_SEARCHEAD_FOLDERS" shLog="[pkg/bin/check] $pkgConfName:$pkgInstallPath" #PKG_M4DIR="" ##LIBS:-l #PKG_LIBS="" ##CFLAGS: #PKG_CFLAGS="" ##CPPFLAGS:-I #PKG_CPPFLAGS="" ##LDFLAGS:-L #PKG_LDFLAGS="" found="" #PKG_CONFIG_PATH="$PKG_CONFIG_PATH" pkgConfName="$pkgConfName" pkgInstallPath="$pkgInstallPath" \ shDebug 1 " SEARCH -------------------------------------------------------------------------- [$pkgConfName]" . ${rootDarkMake}/pkg/bin/search if [ -n "$found" ];then # shDebug 1 " FOUND[$pkgConfName] : LIBS:$PKG_LIBS CFLAGS:$PKG_CFLAGS CPPFLAGS:$PKG_CPPFLAGS LDFLAGS:$PKG_LDFLAGS LD_LIBRARY_PATH:$PKG_LD_LIBRARY_PATH LIBRARY_PATH:$PKG_LIBRARY_PATH" # shDebug 1 " FOUND[$pkgConfName] : MD4DIR:$PKG_M4DIR " shDebug 1 " FOUND[$pkgConfName]" else shDebug 2 " ECHEC ON INSTALL AND NOT FOUND LIB:$pkgConfName" fi