#!/bin/bash # ============================================================================ # DarkForge Linux — Phase 3, Chapter 8.26: ACL (Access Control Lists) # ============================================================================ # Purpose: Build ACL, a library for managing Access Control Lists on # filesystems. Provides fine-grained permission control beyond # traditional Unix permissions. # Inputs: /sources/acl-2.3.2.tar.xz # attr already installed # Outputs: ACL library in /usr/lib, tools in /usr/bin # Ref: LFS 13.0 §8.26 # ============================================================================ set -euo pipefail source /sources/toolchain-scripts/100-chroot-env.sh PACKAGE="acl" VERSION="2.3.2" echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ===" pkg_extract "${PACKAGE}-${VERSION}.tar.xz" cd "${PACKAGE}-${VERSION}" # Configure ACL with attr support ./configure \ --prefix=/usr \ --disable-static \ --sysconfdir=/etc make make install # Verify installation echo "ACL version: $(/usr/bin/getfacl --version 2>&1 | head -1)" cd "${SRCDIR}" pkg_cleanup "${PACKAGE}-${VERSION}" echo "=== ${PACKAGE}-${VERSION} complete ==="