commit 0f27e84e629284464931b093bf07873435008f6e
parent dd86c5cb76daee16a906791bec1191bf54cb0441
Author: torter <koubbamohamedrayan@gmail.com>
Date: Sat, 14 Nov 2026 15:52:32 +0000
bootstrap: a mag.conf with the job count and the C standard old pkgsrc code needs
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/tools/chamesle-bootstrap b/tools/chamesle-bootstrap
@@ -48,6 +48,7 @@ export PAGER=less
umask 022
P
[ -e etc/os-release ] || printf 'NAME=Chamesle\nID=chamesle\nPRETTY_NAME="Chamesle"\n' > etc/os-release
+[ -e etc/mag.conf ] || printf '# read by mag, same syntax as pkgsrc mk.conf\nJOBS=%s\nCFLAGS=-O2 -std=gnu17\n' "$(nproc 2>/dev/null || echo 4)" > etc/mag.conf
export MAG_ROOT=$PWD MAG_PREFIX=/usr MAG_REPO
echo "installing: $base"
mag install $base