33 lines
967 B
Bash
Executable File
33 lines
967 B
Bash
Executable File
#!/bin/bash
|
|
# ============================================================================
|
|
# DarkForge Linux — Phase 3, Chapter 8.33: Psmisc
|
|
# ============================================================================
|
|
# Purpose: Build psmisc (Process Signalling Miscellaneous) utilities.
|
|
# Provides killall, pstree, fuser for process management.
|
|
# Inputs: /sources/psmisc-23.7.tar.xz
|
|
# Outputs: psmisc utilities in /usr/bin/ and /usr/sbin/
|
|
# Assumes: Running inside chroot
|
|
# Ref: LFS 13.0 §8.33
|
|
# ============================================================================
|
|
|
|
set -euo pipefail
|
|
|
|
source /sources/toolchain-scripts/100-chroot-env.sh
|
|
|
|
PACKAGE="psmisc"
|
|
VERSION="23.7"
|
|
|
|
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
|
|
|
|
pkg_extract "${PACKAGE}-${VERSION}.tar.xz"
|
|
cd "${PACKAGE}-${VERSION}"
|
|
|
|
./configure \
|
|
--prefix=/usr
|
|
|
|
make
|
|
make install
|
|
|
|
pkg_cleanup "${PACKAGE}-${VERSION}"
|
|
echo "=== ${PACKAGE}-${VERSION} complete ==="
|