Big script
This commit is contained in:
29
toolchain/scripts/102-iana-etc.sh
Executable file
29
toolchain/scripts/102-iana-etc.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
# ============================================================================
|
||||
# DarkForge Linux — Phase 3, Chapter 8.4: IANA-Etc
|
||||
# ============================================================================
|
||||
# Purpose: Install IANA protocol and service definitions.
|
||||
# Provides /etc/services and /etc/protocols which many programs need.
|
||||
# Inputs: /sources/iana-etc-20250306.tar.gz
|
||||
# Outputs: /etc/services, /etc/protocols
|
||||
# Ref: LFS 13.0 §8.4
|
||||
# ============================================================================
|
||||
|
||||
set -euo pipefail
|
||||
source /sources/toolchain-scripts/100-chroot-env.sh
|
||||
|
||||
PACKAGE="iana-etc"
|
||||
VERSION="20250306"
|
||||
|
||||
echo "=== Installing ${PACKAGE}-${VERSION} (Phase 3) ==="
|
||||
|
||||
pkg_extract "${PACKAGE}-${VERSION}.tar.gz"
|
||||
cd "${PACKAGE}-${VERSION}"
|
||||
|
||||
# IANA-Etc is just data files
|
||||
# Copy the protocol and service definitions
|
||||
cp services /etc/
|
||||
cp protocols /etc/
|
||||
|
||||
pkg_cleanup "${PACKAGE}-${VERSION}"
|
||||
echo "=== ${PACKAGE}-${VERSION} complete ==="
|
||||
Reference in New Issue
Block a user