The HxS PackageTracker
Programs & Packages:
ebs(5)andebs(1)fromxpt
The HxS PackageTracker is a growing tree of over 120 ebs(5) formula, describing how to build packages using the ebs(1) build system.
PackageTracker is inspired by void-packages, the FreeBSD ports tree, and, loosely, the Arch User Repository,
Important
Most formulae assume the presence of a native compilation toolchain, which is not included in the binary repositories, the user is expected to bootstrap their own, using the
x86_64-hxs-linux-musltriple.
1. Getting the PackageTracker Tree
Programs & Packages:
git(1)fromgit
Note
Most HxS systems are expected to have a copy of PackageTracker available in
/usr/tracker
As root, use git(1) to clone the PackageTracker tree into /usr/tracker:
git clone https://github.com/juanvel4000/HxS-PackageTracker.git /usr/tracker
2. Working with PackageTracker
2.1 Search for a Formula
Programs & Packages:
find(1)fromfindutilsgrep(1)fromgrep
Use find(1) and grep(1) to look up formulae in the tree:
find /usr/tracker -type f -name "*.ebs" | grep -F -e "<name>"
Tip
The following shell script creates a wrapper around the command above, under a command named
qtracker:cat << 'EOF' > /usr/local/bin/qtracker #!/bin/sh set -eu if test "$#" -ne 1; then echo "usage: qtracker query" exit 1 fi results=$(find /usr/tracker -type f -name "*.ebs" | grep -F -e "$1" || :) if test -z "$results"; then echo "! nothing found" exit 1 fi printf '%s\n' "$results" EOF chmod 755 /usr/local/bin/qtracker
2.2 Building a formula
Programs & Packages:
ebs(1)fromxpt
Tip
Prefer not to build packages as the
rootuser
Use the ebs(1) build system to build a formula:
ebs build /usr/tracker/hello/hello-0.1.3.ebs
If a second argument is not provided, ebs(1) produces an .xpt package under the filename <name>-<version>.xpt.
Install the built package using xpt(8):
xpt -if hello-0.1.3.xpt
3. Writing ebs(5) formulae
Programs & Packages:
ebs(5)fromxpt
View the ebs(5) manual page and use /usr/share/xpt/examples/ebs.formula as a reference for building ebs(5) formula.