How coffnix/coffnix-ebuilds works
This repository is a Gentoo/Funtoo Portage overlay, not an application runtime. Its job is to define, patch, and package third-party software so it can be installed by emerge from a local overlay repository.
The top-level structure is category-first: each directory such as sys-apps, net-misc, dev-qt, kde-plasma, x11-*, and media-* maps to a Portage package category. Under each package directory are versioned .ebuild files, a Manifest, and often a files/ directory with patches, init scripts, service units, config templates, or desktop integration files.
The main data flow is: upstream source release or VCS snapshot → ebuild recipe in this overlay → patches and local install files from files/ → Portage resolves dependencies and builds/installs the package into the target system. For many packages, the overlay also carries service wiring for OpenRC or systemd so the installed software becomes a boot-time daemon.
eclass/ is the shared build logic layer. It contains reusable Gentoo build helpers for ecosystems like Meson, CMake, Rust, Cargo, Python, KDE, Qt, XDG, NVIDIA, and others. These eclasses are the main abstraction boundary that keeps many package recipes small and consistent.
A second abstraction layer is the generated-package workflow. Several packages use autogen.yaml, autogen.py, generator.py, and templates/ to produce multiple ebuilds or version variants from a common template. This is used heavily for large families such as Qt, KDE Frameworks/Plasma, Rust, Python, NodeJS, and some system utilities.
metadata/ is mostly generated Portage cache and repository metadata. metadata/md5-cache/ mirrors package metadata for faster dependency resolution; it is derived output rather than primary source. profiles/ defines the repo identity, category list, and package masks/unmasks used by Portage when this overlay is enabled.
The repository has a strong “distro integration” subsystem: many packages ship distro-specific service files, init scripts, tmpfiles, udev rules, PAM snippets, logrotate configs, and default configuration files. Examples include net-analyzer/zabbix, net-dns/unbound, net-misc/openssh, sys-apps/openrc, sys-auth/elogind, and kde-plasma/* session components. These files are the boundary between build-time packaging and system boot/runtime behavior.
Another major subsystem is patch maintenance. Many packages carry targeted patches for compiler compatibility, libc/toolchain changes, security fixes, and feature enablement. Examples include GCC/Clang fixes, musl and LibreSSL compatibility, kernel-version compatibility, and backports for upstream bugs. The overlay is therefore both a package source and a downstream patch set.
The repository also encodes a few large technology stacks as coordinated package groups rather than isolated packages: KDE Frameworks/Plasma, LXQt, GNOME, Xlibre/Xorg, GStreamer/PulseAudio/PipeWire, and crypto/TPM tooling. Within each stack, many packages are version-aligned and depend on shared libraries built elsewhere in the overlay.
funtoo-hardened/ is a custom system-profile bundle: it contains hardened boot/network/profile defaults, nftables rules, Portage configuration, and kernel configs. This acts more like a deployment policy layer than a software package layer, and it shows the overlay is intended to bootstrap or tune whole systems, not just individual apps.
xlibre-* and kde-*/lxqt-* namespaces indicate the overlay carries alternative or updated desktop infrastructure, including display server packages, input/video drivers, and desktop session components. These directories are important architectural boundaries because they represent platform stacks with their own dependency trees and runtime services.
For a diagram, the key external systems are the Portage package manager, upstream source projects, and the target host’s init/service manager. Internally, the important nodes are: package recipes (.ebuild), shared build logic (eclass), package-local patches/configs (files/), generated metadata (metadata/md5-cache), and repo policy/profile files (profiles/).
Main entry points: syslog-ng-4.10.2.ebuild Ebuilds · meson.eclass Eclasses · unbound.service Service wiring · plasma-meta-5.91.0.ebuild KDE stack
Components 19
External systems
Upstream sources, Portage, and the target host runtime that the overlay feeds.
- Portage · Resolves dependencies, applies ebuild logic, and builds packages from the overlay.
- Upstream · Release tarballs, VCS snapshots, and vendored third-party projects consumed by recipes.
- Target host · The installed Gentoo/Funtoo system where daemons, desktop stacks, and policy take effect.
- OpenRC · Boot and service manager targeted by many init scripts and conf.d files.
- systemd · Alternative runtime/service target for installed units, tmpfiles, and daemon wiring.
Overlay source tree
Category-first ebuild packages and their local patches/files.
- Ebuilds · Versioned package definitions spread across category directories such as sys-apps, net-misc, dev-qt, and x11-*.
app-admin/syslog-ng/syslog-ng-4.10.2.ebuild - Files & patches · Patch sets, init scripts, service units, templates, and install-time config shipped with packages.
net-misc/openssh/files/sshd.service - Manifests · Per-package Manifest files that pin distfiles and local files used by Portage.
app-admin/syslog-ng/Manifest
Build abstractions
Shared eclasses and generated-package workflows used by many recipes.
- Eclasses · Reusable Gentoo build helpers for Meson, CMake, Rust, Qt/KDE, XDG, OpenRC, and more.
eclass/meson.eclass - Generators · autogen.yaml, autogen.py, generator.py, and templates that emit families of ebuilds.
dev-qt/autogen.yaml
Repo policy
Profiles and generated metadata that steer Portage behavior.
- Profiles · Repository identity, category list, masks, and overlay policy for Portage.
profiles/repo_name - Md5 cache · Derived Portage metadata cache used to speed dependency resolution.
metadata/md5-cache - Hardened profile · Funtoo hardened defaults for boot, firewall, Portage settings, and kernel configuration.
funtoo-hardened/etc/portage/make.conf
Coordinated stacks
Large aligned package families that are maintained as sets.
- KDE stack · Frameworks, Plasma, and supporting KDE utilities kept version-aligned as a coordinated family.
kde-plasma/plasma-meta/plasma-meta-5.91.0.ebuild - LXQt stack · LXQt base, tools, and portal components maintained as an aligned desktop stack.
lxqt-base/lxqt-meta/lxqt-meta-2.3.0.ebuild - Xlibre stack · Updated Xorg/Xlibre server and drivers, including NVIDIA and input/video components.
xlibre-base/xorg-server/xorg-server-25.1.5.ebuild - Media & net · Audio, video, networking, and browser-facing libraries and daemons reused across the overlay.
media-libs/gstreamer/gstreamer-1.24.11.ebuild - Security tools · Cryptography, TPM, secure boot, and related security tooling packaged by the overlay.
app-crypt/tpm2-tools/tpm2-tools-5.4.ebuild
Distro integration
Boot-time, service, and system configuration wired into installed packages.
- Service wiring · Init scripts, service units, tmpfiles, udev rules, PAM snippets, and defaults that bridge package install to runtime behavior.
net-dns/unbound/files/unbound.service
Connections 21
- Upstream → Ebuilds: source inputs · Recipes fetch upstream releases or VCS snapshots and turn them into buildable package definitions.
- Ebuilds → Files & patches: patched by · Package recipes apply local patches and install files from their files/ directories.
- Ebuilds → Manifests: locked by · Manifests record distfiles and local artifacts referenced by each package.
- Eclasses → Ebuilds: shared logic · Many recipes inherit common build helpers instead of duplicating build steps.
- Generators → Ebuilds: emits · Template workflows generate families of related ebuilds and version variants.
- Profiles → Portage: configures · Profiles tell Portage how to treat this overlay and which packages are masked or enabled.
- Md5 cache → Portage: speeds up · Generated md5-cache metadata is consumed by Portage for faster resolution.
- Hardened profile → Profiles: extends · The hardened bundle acts as a deployment-policy layer alongside the repository profile settings.
- Portage → Ebuilds: builds · Portage evaluates recipes to compile, merge, or install packages.
- Portage → Target host: installs into · Built packages are merged into the target host filesystem.
- Ebuilds → Service wiring: ships · Many recipes install service files and runtime defaults as part of the package payload.
- Service wiring → OpenRC: targets · OpenRC init scripts and conf.d files wire daemons into system boot.
- Service wiring → systemd: targets · Systemd units, tmpfiles, and related files wire services into modern boot/runtime behavior.
- KDE stack → Eclasses: uses KDE helpers · KDE frameworks and Plasma packages rely heavily on KDE-specific eclasses and templates.
- LXQt stack → Eclasses: uses Qt helpers · LXQt packages use shared Qt and CMake build helpers to keep the stack consistent.
- Xlibre stack → Eclasses: uses X helpers · Xlibre server and driver packages depend on Xorg/Xlibre eclasses and meson wrappers.
- Media & net → Eclasses: uses shared build · Media, networking, and browser-facing components reuse common Meson, CMake, Rust, and Python helpers.
- Security tools → Eclasses: uses crypto helpers · Security-oriented packages commonly use Rust, Cargo, and signature/secureboot helpers.
- KDE stack → Service wiring: session wiring · Plasma components contribute PAM, session, and desktop integration files.
- Media & net → Service wiring: daemon wiring · Audio, DNS, SSH, and monitoring packages contribute service units and init scripts.
- Security tools → Target host: protects · Cryptography, TPM, and secure-boot tooling operate on the target system after installation.