- versions.env pins podman, conmon, crun, netavark, aardvark-dns, passt, and fuse-overlayfs to verified upstream source checksums; SlackBuild recipes, scripts/build-packages.sh, checksums.sh, release.sh, and update-versions.sh implement the reproducible pipeline; GitHub Actions workflows build in a Slackware container and publish releases without committing any binaries. - plugin/podman.plg installs/updates/removes all eight packages (the seven components plus the plugin's own unraid-podman scaffolding package) via upgradepkg, using the official Unraid array-event hook mechanism (event/disks_mounted, event/stopping) instead of editing /boot/config/go. rc.podman and the sbin/ helper scripts implement storage creation, config seeding/sync, preflight checks, autostart with per-container Safe-Mode, and package verify/update/rollback. - webui/plugins/podman implements the Dashboard, Containers, Pods, Images, Volumes, Networks, Logs, Terminal, Compose, and Settings panels against the approved mockup (webui/mockups/prototype.html), talking to podman system service exclusively via PodmanClient.php (libpod REST API over the Unix socket), with two documented exceptions: Terminal's one-shot exec model and Compose's use of the podman compose CLI, since libpod has no REST equivalent for either. - docs/ARCHITECTURE.md and docs/ROADMAP.md record the design decisions and honest current status (syntax-checked, unit- and integration-tested against fake sockets/servers; not yet run against a real Unraid/Podman/Slackware system). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
60 lines
1.8 KiB
Bash
Executable File
60 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
# =============================================================================
|
|
# packages/crun/crun.SlackBuild
|
|
#
|
|
# Builds the crun .txz package from upstream source (C, autotools). crun is
|
|
# the OCI runtime this project uses (preferred over runc — lighter, cgroup
|
|
# v2-friendly, see docs/ARCHITECTURE.md section 5.1).
|
|
#
|
|
# Requires (in the build environment): gcc, make, autoconf, automake,
|
|
# libtool, pkg-config, libcap-dev, libseccomp-dev, libyajl-dev, python3
|
|
# (used by crun's build-time code generator).
|
|
# =============================================================================
|
|
|
|
set -eu
|
|
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
# shellcheck source=/dev/null
|
|
. "$REPO_ROOT/scripts/lib/slackbuild-common.sh"
|
|
# shellcheck source=/dev/null
|
|
. "$REPO_ROOT/versions.env"
|
|
|
|
VERSION="$CRUN_VERSION"
|
|
ARCH="$PKG_ARCH"
|
|
BUILD="$PKG_BUILD"
|
|
TAG="$PKG_TAG"
|
|
|
|
sb_init "crun"
|
|
|
|
tarball=$(sb_fetch_and_verify "$CRUN_SRC_URL" "$CRUN_SRC_SHA256" "crun-$VERSION.tar.gz")
|
|
srcdir=$(sb_extract "$tarball")
|
|
|
|
for patch in "$CWD"/patches/*.patch; do
|
|
[ -e "$patch" ] || continue
|
|
echo "==> [crun] applying $(basename "$patch")"
|
|
patch -d "$srcdir" -p1 < "$patch"
|
|
done
|
|
|
|
cd "$srcdir"
|
|
|
|
# GitHub's source archive does not include vendored git submodules
|
|
# (libocispec) that crun's release tarballs normally bundle; init/update
|
|
# them explicitly.
|
|
if [ -f .gitmodules ]; then
|
|
echo "==> [crun] fetching submodules"
|
|
git -c protocol.file.allow=always submodule update --init --recursive || true
|
|
fi
|
|
|
|
echo "==> [crun] autogen + configure"
|
|
./autogen.sh
|
|
./configure --prefix=/usr --disable-systemd
|
|
|
|
echo "==> [crun] make"
|
|
make
|
|
|
|
echo "==> [crun] make install into \$PKG"
|
|
make install DESTDIR="$PKG"
|
|
|
|
sb_install_docs "$srcdir/COPYING" "$srcdir/README.md"
|
|
sb_make_package "$VERSION" "$ARCH" "$BUILD" "$TAG"
|