Big script
This commit is contained in:
41
toolchain/scripts/174-procps-ng.sh
Executable file
41
toolchain/scripts/174-procps-ng.sh
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
# ============================================================================
|
||||
# DarkForge Linux — Phase 3, Chapter 8: procps-ng
|
||||
# ============================================================================
|
||||
# Purpose: Build procps-ng (ps, top, uptime, pgrep, pkill utilities).
|
||||
# Provides tools for process monitoring and control.
|
||||
# Inputs: /sources/procps-ng-4.0.5.tar.xz
|
||||
# Outputs: procps utilities in /usr/bin/ and /usr/sbin/
|
||||
# Assumes: Running inside chroot
|
||||
# Ref: LFS 13.0 §8.80
|
||||
# ============================================================================
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
source /sources/toolchain-scripts/100-chroot-env.sh
|
||||
|
||||
PACKAGE="procps-ng"
|
||||
VERSION="4.0.5"
|
||||
|
||||
echo "=== Building ${PACKAGE}-${VERSION} ==="
|
||||
|
||||
cd /sources
|
||||
tar -xf "${PACKAGE}-${VERSION}.tar.xz"
|
||||
cd "${PACKAGE}-${VERSION}"
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--exec-prefix= \
|
||||
--libdir=/lib \
|
||||
--docdir=/usr/share/doc/procps-ng-${VERSION} \
|
||||
--disable-static \
|
||||
--disable-kill
|
||||
|
||||
make
|
||||
# Optional: run tests
|
||||
# make check || true
|
||||
make install
|
||||
|
||||
cd /sources
|
||||
rm -rf "${PACKAGE}-${VERSION}"
|
||||
echo "=== ${PACKAGE}-${VERSION} complete ==="
|
||||
Reference in New Issue
Block a user