1
0

ZiomekOS v26.9.26

This commit is contained in:
2026-10-03 11:34:14 +02:00
commit a6ebba2e95
38 changed files with 355582 additions and 0 deletions

1
meta/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
build/

26
meta/Makefile Normal file
View File

@@ -0,0 +1,26 @@
INPUTS = src/etc/X11/wdm/motd.in \
src/etc/issue.in \
src/etc/lsb-release.in \
src/etc/motd.in \
src/etc/os-release.in
OUTPUTS = build/etc/X11/wdm/motd \
build/etc/issue \
build/etc/lsb-release \
build/etc/motd \
build/etc/os-release
VARS = ../vars.sh
.PHONY = all clean install
all: $(OUTPUTS)
clean:
rm -rf build/
build/%: src/%.in $(VARS)
./render.sh $<
install: all
cp -rv build/ "$(DESTDIR)/"

47
meta/render.sh Executable file
View File

@@ -0,0 +1,47 @@
#!/usr/bin/env /bin/bash
# Co-Authored by: Claude (Sonnet 5.5 Medium)
# Usage: render.sh src/path/file.in [../vars.sh]
set -euo pipefail
in=$1
vars_file=${2:-../vars.sh}
case $in in
src/*) ;;
*) echo "render.sh: input must be under src/: $in" >&2; exit 1 ;;
esac
# src/etc/issue.in -> build/etc/issue
out=build/${in#src/}
out=${out%.in}
# Load variables from vars.sh and export them for envsubst
if [[ -n $vars_file ]]; then
set -a
# shellcheck disable=SC1090
source "$vars_file"
set +a
fi
# Only substitute ${VAR} references that actually appear in the template,
# so anything else (like \n or \l) is left untouched
refs=$(grep -oE '\$\{[A-Za-z_][A-Za-z0-9_]*\}' "$in" | sort -u || true)
# Fail loudly on undefined variables instead of silently emitting empty strings
for ref in $refs; do
name=${ref#\$\{}; name=${name%\}}
if [[ -z ${!name+x} ]]; then
echo "render.sh: $in uses undefined variable $name" >&2
exit 1
fi
done
mkdir -p "$(dirname "$out")"
# Write to a temp file first so a failure never leaves a half-written output
tmp=$(mktemp "$out.XXXXXX")
trap 'rm -f "$tmp"' EXIT
envsubst "$(echo $refs)" < "$in" > "$tmp"
chmod 644 "$tmp"
mv "$tmp" "$out"
trap - EXIT

View File

@@ -0,0 +1,2 @@
ZiomekOS ${VERSION} (${CODENAME_PRETTY}) based on LFS 12.4
Created by Tomek Wójcik | For teh lulz

2
meta/src/etc/issue.in Normal file
View File

@@ -0,0 +1,2 @@
ZiomekOS ${VERSION} (${CODENAME_PRETTY}) \n \l

View File

@@ -0,0 +1,4 @@
DISTRIB_ID="ZiomekOS"
DISTRIB_RELEASE="${VERSION}"
DISTRIB_CODENAME="${CODENAME}"
DISTRIB_DESCRIPTION="ZiomekOS ${VERSION} (${CODENAME_PRETTY})"

12
meta/src/etc/motd.in Normal file
View File

@@ -0,0 +1,12 @@
A
_ _ _ _ _ _
| |__ | |_| |__ | | __ _| |__ ___ _ __ | |
| '_ \| __| '_ \| |/ _` | '_ \/ __| | '_ \| |
| |_) | |_| | | | | (_| | |_) \__ \_| |_) | |
|_.__/ \__|_| |_|_|\__,_|_.__/|___(_) .__/|_|
|_|
production
ZiomekOS ${VERSION} (${CODENAME_PRETTY}) based on LFS 12.4
Created by Tomek Wójcik | For teh lulz

View File

@@ -0,0 +1,7 @@
NAME="ZiomekOS"
ID=ziomekos
PRETTY_NAME="ZiomekOS ${VERSION} (${CODENAME_PRETTY})"
VERSION="${VERSION} (${CODENAME_PRETTY})"
VERSION_CODENAME="${CODENAME}"
BUILD_ID="${BUILD}"
RELEASE_TYPE="stable"