commit f5f66491e9a1b6df39227b7f42d28af76de4fa68
parent 5ca9fd18e3c8caa4b11f4ace42b01d3d73eb1334
Author: torter <koubbamohamedrayan@gmail.com>
Date: Mon, 16 Nov 2026 23:12:49 +0000
site: SPAS is the package manager, hoard is its command
Diffstat:
12 files changed, 165 insertions(+), 165 deletions(-)
diff --git a/docs/about.html b/docs/about.html
@@ -54,7 +54,7 @@ with them. The old code is still on <a href="https://github.com/tortr-rs/chamesl
The Rifle Shoots down the GNU<br>
Unfortunately the GNU herd got so big the rifle doesn't have enough ammo to shoot all of it down. gmake, to build musl, and the kernel's build tools are still GNU.</li>
<li><b>Winchester</b>, the init. A shell script that runs <code>/etc/rc</code> and keeps the gettys alive.</li>
-<li><b>hoard</b>, the package manager, from SPAS. It reads Gentoo's repository and runs the ebuilds, on the musl profile.
+<li><b>SPAS</b>, the package manager. Its command is <code>hoard</code>. It reads Gentoo's repository and runs the ebuilds, on the musl profile.
<code>hoard sync</code> fetches the tree.</li>
<li><b>chamesle-disk</b> and <b>chamesle-chroot</b>, two small helpers for installing: the first runs cfdisk and makes a vfat boot partition and a ZFS root, the second chroots with <code>/proc</code>, <code>/dev</code> and the rest mounted. The install itself stays by hand.</li>
<li><b>musl</b> for the C library, <b>mksh</b> for the login shell and <code>/bin/sh</code>, a shell script init in the FreeBSD style (<code>/etc/init.conf</code>, services in <code>/etc/rc.d</code>),
@@ -82,7 +82,7 @@ vi, and nothing else. You write the shell and everything after it.</p>
<p>cheers @tortr-rs</p>
<h2>License</h2>
-<p>Not decided. The packages hoard builds keep their own licenses.</p>
+<p>Not decided. The packages SPAS builds keep their own licenses.</p>
<h2 id="chum">Meet Chum</h2>
<p><img src="img/chum.png?9" alt="Chum, a grey, lumpy and very round sunfish" width="220" height="220"
diff --git a/docs/docs.html b/docs/docs.html
@@ -4,12 +4,12 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Handbook - Chamesle</title>
-<meta name="description" content="The Chamesle handbook, chapter by chapter: preparing, installing by hand, hoard, rifle, the base system, the kernel, the live ISO and the files of the system.">
+<meta name="description" content="The Chamesle handbook, chapter by chapter: preparing, installing by hand, SPAS, rifle, the base system, the kernel, the live ISO and the files of the system.">
<link rel="canonical" href="https://chamesle.org/docs.html">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Chamesle">
<meta property="og:title" content="Handbook - Chamesle">
-<meta property="og:description" content="The Chamesle handbook, chapter by chapter: preparing, installing by hand, hoard, rifle, the base system, the kernel, the live ISO and the files of the system.">
+<meta property="og:description" content="The Chamesle handbook, chapter by chapter: preparing, installing by hand, SPAS, rifle, the base system, the kernel, the live ISO and the files of the system.">
<meta property="og:url" content="https://chamesle.org/docs.html">
<link rel="stylesheet" href="style.css?16">
</head>
@@ -42,13 +42,13 @@
<ul><li><a href="handbook-about.html#s1-1">1.1 What it is</a></li><li><a href="handbook-about.html#s1-2">1.2 The layout of the system</a></li><li><a href="handbook-about.html#s1-3">1.3 Where the sources are</a></li></ul>
</li>
<li><a href="handbook-preparing.html">Preparing</a>
-<ul><li><a href="handbook-preparing.html#s2-1">2.1 What the build host needs</a></li><li><a href="handbook-preparing.html#s2-2">2.2 Building hoard and rifle</a></li><li><a href="handbook-preparing.html#s2-3">2.3 Getting the Gentoo tree</a></li><li><a href="handbook-preparing.html#s2-4">2.4 The profile</a></li><li><a href="handbook-preparing.html#s2-5">2.5 make.conf</a></li></ul>
+<ul><li><a href="handbook-preparing.html#s2-1">2.1 What the build host needs</a></li><li><a href="handbook-preparing.html#s2-2">2.2 Building SPAS and rifle</a></li><li><a href="handbook-preparing.html#s2-3">2.3 Getting the Gentoo tree</a></li><li><a href="handbook-preparing.html#s2-4">2.4 The profile</a></li><li><a href="handbook-preparing.html#s2-5">2.5 make.conf</a></li></ul>
</li>
<li><a href="handbook-installing.html">Installing by hand</a>
<ul><li><a href="handbook-installing.html#s3-1">3.1 chamesle-disk</a></li><li><a href="handbook-installing.html#s3-2">3.2 Partitioning and file systems by hand</a></li><li><a href="handbook-installing.html#s3-3">3.3 Copying the live system</a></li><li><a href="handbook-installing.html#s3-4">3.4 Building the system from source, instead</a></li><li><a href="handbook-installing.html#s3-5">3.5 rifle</a></li><li><a href="handbook-installing.html#s3-6">3.6 fstab</a></li><li><a href="handbook-installing.html#s3-7">3.7 Host name, users, password</a></li><li><a href="handbook-installing.html#s3-8">3.8 The kernel and the boot entry</a></li><li><a href="handbook-installing.html#s3-9">3.9 First boot</a></li></ul>
</li>
-<li><a href="handbook-hoard.html">Using hoard</a>
-<ul><li><a href="handbook-hoard.html#s4-1">4.1 The commands</a></li><li><a href="handbook-hoard.html#s4-2">4.2 Installing and removing</a></li><li><a href="handbook-hoard.html#s4-3">4.3 Where it keeps things</a></li><li><a href="handbook-hoard.html#s4-4">4.4 make.conf</a></li><li><a href="handbook-hoard.html#s4-5">4.5 Repositories</a></li><li><a href="handbook-hoard.html#s4-6">4.6 USE flags and keywords</a></li><li><a href="handbook-hoard.html#s4-7">4.7 Binary packages</a></li><li><a href="handbook-hoard.html#s4-8">4.8 Writing an ebuild</a></li></ul>
+<li><a href="handbook-spas.html">Using SPAS</a>
+<ul><li><a href="handbook-spas.html#s4-1">4.1 The commands</a></li><li><a href="handbook-spas.html#s4-2">4.2 Installing and removing</a></li><li><a href="handbook-spas.html#s4-3">4.3 Where it keeps things</a></li><li><a href="handbook-spas.html#s4-4">4.4 make.conf</a></li><li><a href="handbook-spas.html#s4-5">4.5 Repositories</a></li><li><a href="handbook-spas.html#s4-6">4.6 USE flags and keywords</a></li><li><a href="handbook-spas.html#s4-7">4.7 Binary packages</a></li><li><a href="handbook-spas.html#s4-8">4.8 Writing an ebuild</a></li></ul>
</li>
<li><a href="handbook-rifle.html">rifle</a>
<ul><li><a href="handbook-rifle.html#s5-1">5.1 What it is</a></li><li><a href="handbook-rifle.html#s5-2">5.2 The tools</a></li><li><a href="handbook-rifle.html#s5-3">5.3 Building</a></li><li><a href="handbook-rifle.html#s5-4">5.4 Tests</a></li></ul>
diff --git a/docs/download.html b/docs/download.html
@@ -57,13 +57,13 @@
<pre>dd if=chamesle.iso of=/dev/sdX bs=4M status=progress conv=fsync</pre>
<h2>What is on it</h2>
-<p>A live system with mksh, vim, hoard and the Gentoo tree, <code>chamesle-chroot</code>, <code>chamesle-disk</code>
+<p>A live system with mksh, vim, SPAS and the Gentoo tree, <code>chamesle-chroot</code>, <code>chamesle-disk</code>
(cfdisk, then vfat for boot and ZFS for the root), the disk tools (sfdisk, mkfs.ext4, mkfs.fat, zpool, zfs) and the
handbook in <code>/usr/share/doc/chamesle/</code>. It boots with limine and logs in as root with no password.</p>
<h2>What you need</h2>
<p>An x86-64 machine with 2 GB of RAM and a disk to install on. The network comes up with DHCP on a wired card; wifi
-firmware is added with hoard after the install, as the handbook says.</p>
+firmware is added with SPAS after the install, as the handbook says.</p>
<h2>Try it in QEMU first</h2>
<pre>qemu-system-x86_64 -cpu max -m 2G -cdrom chamesle.iso -boot d
diff --git a/docs/handbook-about.html b/docs/handbook-about.html
@@ -45,7 +45,7 @@
<tr><td>kernel</td><td>a prebuilt Linux 6.18 LTS kernel with its modules</td></tr>
<tr><td>musl</td><td>the C library</td></tr>
<tr><td>rifle</td><td>the coreutils, all in one C file; <code>cat</code>, <code>ls</code>, <code>cp</code> and the rest are links to one program</td></tr>
-<tr><td>hoard</td><td>the package manager, from SPAS; it builds from source and runs Gentoo's ebuilds</td></tr>
+<tr><td>SPAS</td><td>the package manager; its command is <code>hoard</code>. It builds from source and runs Gentoo's ebuilds</td></tr>
<tr><td>mksh</td><td>the shell, login shell and <code>/bin/sh</code></td></tr>
<tr><td>init</td><td>Winchester, <code>/sbin/init</code>, a shell script that runs under mksh, in the style of FreeBSD's: <code>/etc/rc</code>, <code>/etc/init.conf</code>, services</td></tr>
<tr><td>limine</td><td>the boot loader, BIOS and UEFI</td></tr>
diff --git a/docs/handbook-hoard.html b/docs/handbook-hoard.html
@@ -1,136 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Using hoard - Chamesle</title>
-<meta name="description" content="hoard is the package manager of SPAS. It is a replacement for Portage written in Rust, and it runs Gentoo's ebuilds. Chamesle">
-<link rel="canonical" href="https://chamesle.org/handbook-hoard.html">
-<meta property="og:type" content="website">
-<meta property="og:site_name" content="Chamesle">
-<meta property="og:title" content="Using hoard - Chamesle">
-<meta property="og:description" content="hoard is the package manager of SPAS. It is a replacement for Portage written in Rust, and it runs Gentoo's ebuilds. Chamesle">
-<meta property="og:url" content="https://chamesle.org/handbook-hoard.html">
-<link rel="stylesheet" href="style.css?16">
-</head>
-<body>
-
-<div id="page">
-
-<div id="top">
-<h1><a href="./">Chamesle</a></h1>
-</div>
-
-<div id="nav">
-<a href="./">Home</a> |
-<a href="download.html">Download</a> |
-<b>Handbook</b> |
-<a href="packages.html">Packages</a> |
-<a href="new.html">News</a> |
-<a href="board.html">Board</a> |
-<a href="chat.html">Chat</a> |
-<a href="source.html">Source</a> |
-<a href="https://x22.chamesle.org/">X22</a> |
-<a href="about.html">About</a>
-</div>
-
-<main>
-<p><a href="handbook-installing.html">← Installing by hand</a> | <a href="docs.html">Contents</a> | <a href="handbook-rifle.html">rifle →</a></p>
-<h2>4. Using hoard</h2>
-<p>hoard is the package manager of SPAS. It is a replacement for Portage written in Rust, and it runs Gentoo's ebuilds. Chamesle uses Gentoo's repository on the musl profile, so a package is an ebuild in <code>/var/db/repos/gentoo</code>, and everything is built on the machine that installs it, unless a binary package matches.</p>
-<h2 id="s4-1">4.1 The commands</h2>
-<pre>hoard install PKG... install, dependencies first (-p pretend, -1 do not add to world, -u -D -N, -jN parallel builds)
-hoard upgrade update everything (install -uDN @world)
-hoard remove PKG... uninstall
-hoard autoremove uninstall what @world and @system no longer need
-hoard sync sync the repositories
-hoard search REGEX names (-d: descriptions too)
-hoard info PKG versions, masks, keywords, USE
-hoard list what is installed
-hoard files PKG the files a package put on the system
-hoard owns PATH which package a file came from
-hoard env-update regenerate /etc/profile.env and ld.so.conf
-hoard manifest PKG|DIR write the DIST lines of an overlay package's Manifest
-hoard self-update replace a hand-installed hoard with the newest release</pre>
-<p>A package name works without its category (<code>hoard install tree</code>); hoard asks if two categories have it. <code>hoard --root DIR</code> does any of this in another root, which is how a new system is built (chapter 3).</p>
-<h2 id="s4-2">4.2 Installing and removing</h2>
-<pre>hoard install app-editors/vim
-hoard install -p app-misc/fastfetch what would be built, nothing is done
-hoard remove vim</pre>
-<p><code>install</code> takes the dependencies first, downloads the sources, checks their size, BLAKE2B and SHA512 against the Manifest, builds in a private directory as the <code>portage</code> user without network, and merges the result. Before it touches anything it checks every file against what other packages own, a file under <code>/etc</code> that you changed stays and the new one is written next to it as <code>._cfg0000_name</code>, and each file is replaced atomically, so a running program is never half written.</p>
-<p>If a build fails, hoard keeps the build directory. <code>hoard install --resume</code> goes on from the phase that stopped, <code>--skipfirst</code> leaves the failed package out and <code>--keep-going</code> builds everything that does not depend on it.</p>
-<h2 id="s4-3">4.3 Where it keeps things</h2>
-<table>
-<tr><th>what</th><th>where</th></tr>
-<tr><td>configuration</td><td><code>/etc/spas</code>: <code>make.conf</code>, <code>make.profile</code>, <code>repos.conf/</code>, <code>package.use</code>, <code>package.accept_keywords</code>, <code>package.mask</code>, <code>package.license</code>, <code>package.env</code> and <code>env/</code></td></tr>
-<tr><td>the repositories</td><td><code>/var/db/repos/gentoo</code>, and any overlay you add</td></tr>
-<tr><td>installed packages</td><td><code>/var/db/pkg</code>, one directory per package, with its <code>CONTENTS</code></td></tr>
-<tr><td>the world file</td><td><code>/var/lib/portage/world</code></td></tr>
-<tr><td>downloaded sources</td><td><code>/var/cache/distfiles</code></td></tr>
-<tr><td>binary packages</td><td><code>PKGDIR</code>, from <code>/etc/spas/make.conf</code></td></tr>
-</table>
-<p>If there is no <code>/etc/spas</code>, hoard reads <code>/etc/portage</code> instead, so a machine that has Portage's files is understood as it is.</p>
-<h2 id="s4-4">4.4 make.conf</h2>
-<p><code>/etc/spas/make.conf</code> holds the build settings, in the shell syntax of Portage's:</p>
-<pre>COMMON_FLAGS="-O2 -pipe -std=gnu17"
-CFLAGS="${COMMON_FLAGS}"
-CXXFLAGS="${COMMON_FLAGS}"
-CHOST="x86_64-pc-linux-musl"
-MAKEOPTS="-j8"
-ACCEPT_KEYWORDS="amd64"
-USE="-systemd"</pre>
-<ul>
-<li><code>MAKEOPTS</code> is the number of jobs for <code>make</code>, and <code>-jN</code> on the hoard command line is how many packages build at once</li>
-<li><code>USE</code> turns features on and off for every package; one package gets its own line in <code>package.use</code></li>
-<li><code>ACCEPT_KEYWORDS</code> says how new the packages may be: <code>amd64</code> is stable, <code>~amd64</code> is testing</li>
-<li><code>/etc/spas/make.profile</code> is a link to a profile of the tree. Chamesle uses the musl one: <code>ln -sfn /var/db/repos/gentoo/profiles/default/linux/amd64/23.0/musl /etc/spas/make.profile</code></li>
-</ul>
-<p><code>-std=gnu17</code> matters. clang defaults to C23 now, and a lot of older source does not compile under it (section 9.3).</p>
-<h2 id="s4-5">4.5 Repositories</h2>
-<p><code>/etc/spas/repos.conf/gentoo.conf</code> names the tree and where it comes from:</p>
-<pre>[gentoo]
-location = /var/db/repos/gentoo
-sync-type = git
-sync-uri = https://github.com/gentoo-mirror/gentoo.git</pre>
-<p><code>hoard sync</code> brings every repository up to date. A git repository whose newest commit is not validly signed is rolled back, and a tree from rsync is checked against its signed Manifests.</p>
-<h2 id="s4-6">4.6 USE flags and keywords</h2>
-<p>When nothing satisfies a dependency, hoard works out the smallest change that would (a <code>package.use</code> line, a <code>~amd64</code> keyword or a license), shows it, and writes it to <code>zz-hoard-autounmask</code> in the config directory after you say yes.</p>
-<pre>hoard info net-misc/curl the versions, the USE flags and what they are now
-echo "net-misc/curl http2 -idn" >> /etc/spas/package.use</pre>
-<h2 id="s4-7">4.7 Binary packages</h2>
-<p><code>hoard install -g</code> uses prebuilt packages from Gentoo's binary host when the version, slot and every USE flag match, and otherwise builds the ebuild. They are checked against the index and the release key before they are unpacked. <code>-b</code> (or <code>FEATURES=buildpkg</code>) saves everything you build as a <code>.gpkg.tar</code> in <code>PKGDIR</code>, and hoard installs from those the next time the version and USE match.</p>
-<h2 id="s4-8">4.8 Writing an ebuild</h2>
-<p>If the tree does not have what you want, write an ebuild in an overlay. An overlay is a repository with <code>profiles/repo_name</code>, <code>metadata/layout.conf</code> and <code>category/name/name-VERSION.ebuild</code>:</p>
-<pre>EAPI=8
-DESCRIPTION="nl80211 wireless configuration tool"
-HOMEPAGE="https://wireless.docs.kernel.org/en/latest/en/users/documentation/iw.html"
-SRC_URI="https://cdn.kernel.org/pub/software/network/iw/${P}.tar.xz"
-LICENSE="ISC"
-SLOT="0"
-KEYWORDS="amd64"
-DEPEND="dev-libs/libnl"
-RDEPEND="${DEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-src_install() {
- emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install
-}</pre>
-<p><code>hoard manifest net-wireless/iw</code> writes the checksums of the sources into the package's <code>Manifest</code>. Add the overlay to <code>/etc/spas/repos.conf/</code>, run <code>hoard sync</code>, and <code>hoard install net-wireless/iw</code> builds it.</p>
-<hr>
-<p><a href="handbook-installing.html">← Installing by hand</a> | <a href="docs.html">Contents</a> | <a href="handbook-rifle.html">rifle →</a></p>
-</main>
-
-<hr>
-<div id="foot">
-Something wrong on this page? Tell us on the <a href="board.html">board</a>.<br>
-Chamesle is installed by hand, from the <a href="docs.html">handbook</a>.<br>
-<a href="https://ko-fi.com/L6N725GI1V">Ko-fi</a><br>
-<a href="#" id="edit-link">Edit text</a><br>
-$Date: 2026-11-16 $
-</div>
-
-</div>
-
-<script src="edit.js"></script>
-</body>
-</html>
diff --git a/docs/handbook-installing.html b/docs/handbook-installing.html
@@ -35,7 +35,7 @@
</div>
<main>
-<p><a href="handbook-preparing.html">← Preparing</a> | <a href="docs.html">Contents</a> | <a href="handbook-hoard.html">Using hoard →</a></p>
+<p><a href="handbook-preparing.html">← Preparing</a> | <a href="docs.html">Contents</a> | <a href="handbook-spas.html">Using SPAS →</a></p>
<h2>3. Installing by hand</h2>
<p>Follow the BIOS or the UEFI variant where they differ. The disk here is <code>/dev/sda</code>; change it to yours. Everything below is run as root on the machine you install from, usually the live ISO, and it erases the disk.</p>
<p>There are two ways through 3.1 and 3.2: <code>chamesle-disk</code> does the partitioning and the file systems and leaves the root on ZFS, or you do both yourself. From 3.3 on the steps are the same, and they are yours: <code>chamesle-disk</code> is only a helper.</p>
@@ -84,7 +84,7 @@ chamesle-chroot /mnt passwd root</pre>
<p>It mounts <code>proc</code>, <code>sys</code>, <code>dev</code>, <code>dev/pts</code> and a tmpfs on <code>run</code> under the directory, copies <code>/etc/resolv.conf</code> into it, runs <code>chroot</code> with an empty environment (<code>HOME=/root</code>, <code>TERM</code>, <code>PATH</code>) and takes the mounts away again when the command ends. Without a command it starts <code>/usr/bin/mksh -l</code>.</p>
<p>Then go on with 3.6 (fstab) and the rest. rifle (3.5) is on the ISO already, skip it. The kernel is in <code>/mnt/boot</code> already.</p>
<h2 id="s3-4">3.4 Building the system from source, instead</h2>
-<p>Have hoard and the tree ready (sections 2.2 to 2.4) and run chamesle-bootstrap:</p>
+<p>Have SPAS and the tree ready (sections 2.2 to 2.4) and run chamesle-bootstrap:</p>
<pre>$HOME/src/system/tools/chamesle-bootstrap -n yourhostname /mnt</pre>
<p>Its usage:</p>
<pre>chamesle-bootstrap [-s PACKAGES] [-n HOSTNAME] TARGET</pre>
@@ -158,7 +158,7 @@ reboot</pre>
<li><code>hoard list</code> shows what the bootstrap put on the machine.</li>
</ol>
<hr>
-<p><a href="handbook-preparing.html">← Preparing</a> | <a href="docs.html">Contents</a> | <a href="handbook-hoard.html">Using hoard →</a></p>
+<p><a href="handbook-preparing.html">← Preparing</a> | <a href="docs.html">Contents</a> | <a href="handbook-spas.html">Using SPAS →</a></p>
</main>
<hr>
diff --git a/docs/handbook-preparing.html b/docs/handbook-preparing.html
@@ -49,10 +49,10 @@
<li><code>blkid</code> to read UUIDs</li>
</ul>
<p>Plan for about 20 GB of free disk space for the sources and build directories of a first install, and a network connection.</p>
-<h2 id="s2-2">2.2 Building hoard and rifle</h2>
+<h2 id="s2-2">2.2 Building SPAS and rifle</h2>
<p>rifle is a single C file with no libc under it:</p>
<pre>cd $HOME/src/rifle && ./build.sh</pre>
-<p><code>rifle/build.sh</code> leaves <code>./rifle</code> and a <code>bin/</code> directory with a link for every tool. hoard is a Rust program. For a system on musl it is built for the musl target, as a static binary:</p>
+<p><code>rifle/build.sh</code> leaves <code>./rifle</code> and a <code>bin/</code> directory with a link for every tool. SPAS is a Rust program, and builds the <code>hoard</code> command. For a system on musl it is built for the musl target, as a static binary:</p>
<pre>cd $HOME/src/SimplePackagemAnagingSystem
cargo build --release --target x86_64-unknown-linux-musl
install -m755 target/x86_64-unknown-linux-musl/release/hoard /usr/local/bin/hoard</pre>
diff --git a/docs/handbook-rifle.html b/docs/handbook-rifle.html
@@ -35,7 +35,7 @@
</div>
<main>
-<p><a href="handbook-hoard.html">← Using hoard</a> | <a href="docs.html">Contents</a> | <a href="handbook-base.html">The base system →</a></p>
+<p><a href="handbook-spas.html">← Using SPAS</a> | <a href="docs.html">Contents</a> | <a href="handbook-base.html">The base system →</a></p>
<h2>5. rifle</h2>
<h2 id="s5-1">5.1 What it is</h2>
<p>rifle is the coreutils of Chamesle in one C file, <code>rifle.c</code>, on <code>c.h</code>, a one-file libc. It has no GNU code in it and no libc under it. It sorts and compares by bytes, always; there are no locales.</p>
@@ -70,9 +70,9 @@ rifle --list the names it knows</pre>
<pre>tests/run.sh all the cases
tests/run.sh sort the cases that have `sort` in them</pre>
<p>Each case in <code>tests/cases</code> runs once under GNU coreutils and once under rifle, and what they print and how they exit are compared. The machine that runs the tests therefore has GNU coreutils for the comparison; the installed system does not. <code>./build.sh</code> has to have run first. A case that starts with <code>@ro</code> runs with the whole file system read-only under <code>bwrap</code>, and is skipped when <code>bwrap</code> is missing.</p>
-<p>hoard has tests of its own, in the SPAS sources (<code>cargo test</code>).</p>
+<p>SPAS has tests of its own, in its sources (<code>cargo test</code>).</p>
<hr>
-<p><a href="handbook-hoard.html">← Using hoard</a> | <a href="docs.html">Contents</a> | <a href="handbook-base.html">The base system →</a></p>
+<p><a href="handbook-spas.html">← Using SPAS</a> | <a href="docs.html">Contents</a> | <a href="handbook-base.html">The base system →</a></p>
</main>
<hr>
diff --git a/docs/handbook-spas.html b/docs/handbook-spas.html
@@ -0,0 +1,136 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Using SPAS - Chamesle</title>
+<meta name="description" content="SPAS is the package manager, and its command is hoard. It is a replacement for Portage written in Rust, and it runs Gentoo's ebuilds. Chamesle">
+<link rel="canonical" href="https://chamesle.org/handbook-spas.html">
+<meta property="og:type" content="website">
+<meta property="og:site_name" content="Chamesle">
+<meta property="og:title" content="Using SPAS - Chamesle">
+<meta property="og:description" content="SPAS is the package manager, and its command is hoard. It is a replacement for Portage written in Rust, and it runs Gentoo's ebuilds. Chamesle">
+<meta property="og:url" content="https://chamesle.org/handbook-spas.html">
+<link rel="stylesheet" href="style.css?16">
+</head>
+<body>
+
+<div id="page">
+
+<div id="top">
+<h1><a href="./">Chamesle</a></h1>
+</div>
+
+<div id="nav">
+<a href="./">Home</a> |
+<a href="download.html">Download</a> |
+<b>Handbook</b> |
+<a href="packages.html">Packages</a> |
+<a href="new.html">News</a> |
+<a href="board.html">Board</a> |
+<a href="chat.html">Chat</a> |
+<a href="source.html">Source</a> |
+<a href="https://x22.chamesle.org/">X22</a> |
+<a href="about.html">About</a>
+</div>
+
+<main>
+<p><a href="handbook-installing.html">← Installing by hand</a> | <a href="docs.html">Contents</a> | <a href="handbook-rifle.html">rifle →</a></p>
+<h2>4. Using SPAS</h2>
+<p>SPAS is the package manager, and its command is <code>hoard</code>. It is a replacement for Portage written in Rust, and it runs Gentoo's ebuilds. Chamesle uses Gentoo's repository on the musl profile, so a package is an ebuild in <code>/var/db/repos/gentoo</code>, and everything is built on the machine that installs it, unless a binary package matches.</p>
+<h2 id="s4-1">4.1 The commands</h2>
+<pre>hoard install PKG... install, dependencies first (-p pretend, -1 do not add to world, -u -D -N, -jN parallel builds)
+hoard upgrade update everything (install -uDN @world)
+hoard remove PKG... uninstall
+hoard autoremove uninstall what @world and @system no longer need
+hoard sync sync the repositories
+hoard search REGEX names (-d: descriptions too)
+hoard info PKG versions, masks, keywords, USE
+hoard list what is installed
+hoard files PKG the files a package put on the system
+hoard owns PATH which package a file came from
+hoard env-update regenerate /etc/profile.env and ld.so.conf
+hoard manifest PKG|DIR write the DIST lines of an overlay package's Manifest
+hoard self-update replace a hand-installed hoard with the newest release</pre>
+<p>A package name works without its category (<code>hoard install tree</code>); hoard asks if two categories have it. <code>hoard --root DIR</code> does any of this in another root, which is how a new system is built (chapter 3).</p>
+<h2 id="s4-2">4.2 Installing and removing</h2>
+<pre>hoard install app-editors/vim
+hoard install -p app-misc/fastfetch what would be built, nothing is done
+hoard remove vim</pre>
+<p><code>install</code> takes the dependencies first, downloads the sources, checks their size, BLAKE2B and SHA512 against the Manifest, builds in a private directory as the <code>portage</code> user without network, and merges the result. Before it touches anything it checks every file against what other packages own, a file under <code>/etc</code> that you changed stays and the new one is written next to it as <code>._cfg0000_name</code>, and each file is replaced atomically, so a running program is never half written.</p>
+<p>If a build fails, hoard keeps the build directory. <code>hoard install --resume</code> goes on from the phase that stopped, <code>--skipfirst</code> leaves the failed package out and <code>--keep-going</code> builds everything that does not depend on it.</p>
+<h2 id="s4-3">4.3 Where it keeps things</h2>
+<table>
+<tr><th>what</th><th>where</th></tr>
+<tr><td>configuration</td><td><code>/etc/spas</code>: <code>make.conf</code>, <code>make.profile</code>, <code>repos.conf/</code>, <code>package.use</code>, <code>package.accept_keywords</code>, <code>package.mask</code>, <code>package.license</code>, <code>package.env</code> and <code>env/</code></td></tr>
+<tr><td>the repositories</td><td><code>/var/db/repos/gentoo</code>, and any overlay you add</td></tr>
+<tr><td>installed packages</td><td><code>/var/db/pkg</code>, one directory per package, with its <code>CONTENTS</code></td></tr>
+<tr><td>the world file</td><td><code>/var/lib/portage/world</code></td></tr>
+<tr><td>downloaded sources</td><td><code>/var/cache/distfiles</code></td></tr>
+<tr><td>binary packages</td><td><code>PKGDIR</code>, from <code>/etc/spas/make.conf</code></td></tr>
+</table>
+<p>If there is no <code>/etc/spas</code>, hoard reads <code>/etc/portage</code> instead, so a machine that has Portage's files is understood as it is.</p>
+<h2 id="s4-4">4.4 make.conf</h2>
+<p><code>/etc/spas/make.conf</code> holds the build settings, in the shell syntax of Portage's:</p>
+<pre>COMMON_FLAGS="-O2 -pipe -std=gnu17"
+CFLAGS="${COMMON_FLAGS}"
+CXXFLAGS="${COMMON_FLAGS}"
+CHOST="x86_64-pc-linux-musl"
+MAKEOPTS="-j8"
+ACCEPT_KEYWORDS="amd64"
+USE="-systemd"</pre>
+<ul>
+<li><code>MAKEOPTS</code> is the number of jobs for <code>make</code>, and <code>-jN</code> on the hoard command line is how many packages build at once</li>
+<li><code>USE</code> turns features on and off for every package; one package gets its own line in <code>package.use</code></li>
+<li><code>ACCEPT_KEYWORDS</code> says how new the packages may be: <code>amd64</code> is stable, <code>~amd64</code> is testing</li>
+<li><code>/etc/spas/make.profile</code> is a link to a profile of the tree. Chamesle uses the musl one: <code>ln -sfn /var/db/repos/gentoo/profiles/default/linux/amd64/23.0/musl /etc/spas/make.profile</code></li>
+</ul>
+<p><code>-std=gnu17</code> matters. clang defaults to C23 now, and a lot of older source does not compile under it (section 9.3).</p>
+<h2 id="s4-5">4.5 Repositories</h2>
+<p><code>/etc/spas/repos.conf/gentoo.conf</code> names the tree and where it comes from:</p>
+<pre>[gentoo]
+location = /var/db/repos/gentoo
+sync-type = git
+sync-uri = https://github.com/gentoo-mirror/gentoo.git</pre>
+<p><code>hoard sync</code> brings every repository up to date. A git repository whose newest commit is not validly signed is rolled back, and a tree from rsync is checked against its signed Manifests.</p>
+<h2 id="s4-6">4.6 USE flags and keywords</h2>
+<p>When nothing satisfies a dependency, hoard works out the smallest change that would (a <code>package.use</code> line, a <code>~amd64</code> keyword or a license), shows it, and writes it to <code>zz-hoard-autounmask</code> in the config directory after you say yes.</p>
+<pre>hoard info net-misc/curl the versions, the USE flags and what they are now
+echo "net-misc/curl http2 -idn" >> /etc/spas/package.use</pre>
+<h2 id="s4-7">4.7 Binary packages</h2>
+<p><code>hoard install -g</code> uses prebuilt packages from Gentoo's binary host when the version, slot and every USE flag match, and otherwise builds the ebuild. They are checked against the index and the release key before they are unpacked. <code>-b</code> (or <code>FEATURES=buildpkg</code>) saves everything you build as a <code>.gpkg.tar</code> in <code>PKGDIR</code>, and hoard installs from those the next time the version and USE match.</p>
+<h2 id="s4-8">4.8 Writing an ebuild</h2>
+<p>If the tree does not have what you want, write an ebuild in an overlay. An overlay is a repository with <code>profiles/repo_name</code>, <code>metadata/layout.conf</code> and <code>category/name/name-VERSION.ebuild</code>:</p>
+<pre>EAPI=8
+DESCRIPTION="nl80211 wireless configuration tool"
+HOMEPAGE="https://wireless.docs.kernel.org/en/latest/en/users/documentation/iw.html"
+SRC_URI="https://cdn.kernel.org/pub/software/network/iw/${P}.tar.xz"
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="amd64"
+DEPEND="dev-libs/libnl"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_install() {
+ emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install
+}</pre>
+<p><code>hoard manifest net-wireless/iw</code> writes the checksums of the sources into the package's <code>Manifest</code>. Add the overlay to <code>/etc/spas/repos.conf/</code>, run <code>hoard sync</code>, and <code>hoard install net-wireless/iw</code> builds it.</p>
+<hr>
+<p><a href="handbook-installing.html">← Installing by hand</a> | <a href="docs.html">Contents</a> | <a href="handbook-rifle.html">rifle →</a></p>
+</main>
+
+<hr>
+<div id="foot">
+Something wrong on this page? Tell us on the <a href="board.html">board</a>.<br>
+Chamesle is installed by hand, from the <a href="docs.html">handbook</a>.<br>
+<a href="https://ko-fi.com/L6N725GI1V">Ko-fi</a><br>
+<a href="#" id="edit-link">Edit text</a><br>
+$Date: 2026-11-16 $
+</div>
+
+</div>
+
+<script src="edit.js"></script>
+</body>
+</html>
diff --git a/docs/index.html b/docs/index.html
@@ -49,7 +49,7 @@ Scratch. The kernel is Linux. Nothing else in it is GNU. It is text mode: there
<tr><td>kernel</td><td>Linux 6.18 LTS, a prebuilt distribution kernel, boots on BIOS and UEFI</td></tr>
<tr><td>musl</td><td>the C library</td></tr>
<tr><td>rifle</td><td>the coreutils, one C file. 113 tools, more than 1700 test cases against GNU's</td></tr>
-<tr><td>hoard</td><td>the package manager, from SPAS. Builds from source, runs Gentoo's ebuilds</td></tr>
+<tr><td>SPAS</td><td>the package manager, its command is <code>hoard</code>. Builds from source, runs Gentoo's ebuilds</td></tr>
<tr><td>ebuilds</td><td>the package repo, Gentoo's, on the musl profile</td></tr>
<tr><td>mksh</td><td>the shell, also <code>/bin/sh</code></td></tr>
<tr><td>Winchester</td><td>the init, a shell script in the FreeBSD style, set up in <code>/etc/init.conf</code></td></tr>
@@ -85,8 +85,8 @@ own. The <a href="new.html">news page</a> has the history of the old releases.</
<ol>
<li>rifle, the coreutils. Done.</li>
-<li>Packages: hoard running Gentoo's ebuilds on musl. Under way.</li>
-<li>The full image, a root built entirely with hoard.</li>
+<li>Packages: SPAS running Gentoo's ebuilds on musl. Under way.</li>
+<li>The full image, a root built entirely with SPAS.</li>
<li>The handbook: every step of installing by hand, on BIOS and on UEFI.</li>
<li>Publish the source.</li>
</ol>
@@ -105,7 +105,7 @@ not this system.</dd>
<a href="https://github.com/tortr-rs/chamesle">GitHub</a>, and none of it is in the new system.
<a href="source.html">Chamesle Source</a> is a side project with its own repo.</dd>
<dt>What license?</dt>
-<dd>Not decided. The packages hoard builds keep their own licenses.</dd>
+<dd>Not decided. The packages SPAS builds keep their own licenses.</dd>
<dt>No GNU at all?</dt>
<dd>Nothing GNU is installed. A few GNU build tools (gmake, bison, flex, m4) are used while some packages are
built, and they are not part of the system.</dd>
diff --git a/docs/new.html b/docs/new.html
@@ -39,9 +39,9 @@
<p><i>Newest first. The home page has the latest.</i></p>
<h2 id="2026-11-16">November 16, 2026: ebuilds, and a name for the init</h2>
-<p>Packages will come from Gentoo's ebuilds, run by hoard from SPAS, instead of pkgsrc and mag. mag could read pkgsrc, but
-every package that built needed another fix, and we'd rather stand on something that already builds. hoard now runs on
-Chamesle and reads the Gentoo tree.</p>
+<p>Packages will come from Gentoo's ebuilds, run by SPAS, instead of pkgsrc and mag. mag could read pkgsrc, but
+every package that built needed another fix, and we'd rather stand on something that already builds. SPAS now runs on
+Chamesle, as the <code>hoard</code> command, and reads the Gentoo tree.</p>
<p>rifle has 113 tools now, and more than 1700 test cases against GNU's. It added <code>diff</code>, <code>cmp</code>,
<code>pr</code>, <code>fmt</code>, <code>stty</code>, <code>shred</code>, <code>numfmt</code> and the rest of what ebuilds and configure scripts call.</p>
<p>The init is called Winchester.</p>
diff --git a/docs/packages.html b/docs/packages.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Packages - Chamesle</title>
-<meta name="description" content="Chamesle packages are Gentoo ebuilds, built from source with hoard.">
+<meta name="description" content="Chamesle packages are Gentoo ebuilds, built from source with SPAS.">
<link rel="canonical" href="https://chamesle.org/packages.html">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Chamesle">
@@ -36,9 +36,9 @@
<main>
<h2>Packages</h2>
-<p><i>Packages are Gentoo's ebuilds, built from source with hoard.</i></p>
+<p><i>Packages are Gentoo's ebuilds, built from source with SPAS.</i></p>
-<p>The repo is Gentoo's, on the musl profile. hoard is the package manager from SPAS: it reads the ebuilds,
+<p>The repo is Gentoo's, on the musl profile. SPAS is the package manager, and <code>hoard</code> is its command: it reads the ebuilds,
resolves the dependencies, runs them in bash and merges the result. There are no binary packages yet.</p>
<pre>hoard sync
hoard install app-misc/fastfetch
@@ -51,7 +51,7 @@ another, so we're moving to ebuilds. This is still being set up: a first dry run
dependencies, and the builds are what's being worked on.</p>
<h2>Missing something?</h2>
-<p>If Gentoo has it, hoard can usually build it. If it doesn't build, tell us on the <a href="board.html">board</a>.</p>
+<p>If Gentoo has it, SPAS can usually build it. If it doesn't build, tell us on the <a href="board.html">board</a>.</p>
</main>
<hr>