#!/bin/sh # ===================================================================== # Projet : DARKMAKE # Fichier : getsource # 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="getsource" shDebugEnable="1" for myParams in pkgName pkgSrc pkgDirLog;do if [ -z "$(eval echo \$$myParams)" ];then shDebug 2 ""$log":missing :$myParams";exit 1;fi done nodeReposHost="${nodeReposHost:-https://toqqee6cwewdumm4aubkcc02f5oou0tktial01i4wa3.darkweb.fr}" nodeReposFolder="${nodeReposFolder:-DarkHack}" nodeReposGitFolder="${nodeReposGitFolder:-${nodeReposFolder}/pkg/git}" #pkgUrl="${pkgUrl:-https://toqqee6cwewdumm4aubkcc02f5oou0tktial01i4wa3.darkweb.fr/DarkHack/pkg/git}" pkgUrl="${pkgUrl:-${nodeReposHost}/${nodeReposGitFolder}}" # git repository pkgGitRepo="${pkgGitRepo:-$pkgUrl/$pkgName.git}" # fossil repository #pkgUrlFossilRepos="https://pkg.darkweb.fr/fossil/repo" #pkgFossilRepo="${pkgUrlFossilRepos}/${pkgName}/tarball/${pkgVersion}/${pkgName}-${pkgVersion}.tar.gz" if [ -d $pkgSrc ];then shDebug 1 "$log: pkgSrc not empty :$pkgSrc";else [ ! -d "$pkgDirLog" ] && mkdir "$pkgDirLog" pkgUrl="$pkgUrl"\ pkgName="$pkgName"\ pkgVersion="$pkgVersion"\ pkgGitVersion="$pkgGitVersion" \ pkgSrc="$pkgSrc"\ pkgFossilRepo="$pkgFossilRepo"\ pkgGitRepo="$pkgGitRepo"\ pkgWgetRepo="$pkgWgetRepo"\ pkgTarballDir="$pkgTarballDir"\ forceRecursive="$forceRecursive"\ . $rootDarkMake/pkg/lib-sh/getsource | tee "$pkgDirLog/000_getsource.log" 2>&1 # if [ -f "$pkgSrc/configure" ];then # rm "$pkgSrc/configure" # fi fi