#!/bin/bash # ============================================================================= # packages/fuse-overlayfs/fuse-overlayfs.SlackBuild # # Builds the fuse-overlayfs .txz package from upstream source (C, autotools). # Not used by the rootful storage path in Phase 1 (which uses the native # overlay driver on the podman.img loopback filesystem — see # docs/ARCHITECTURE.md section 10), but required ahead of time for the # rootless Podman phase, where unprivileged overlay mounts generally aren't # available (see docs/ARCHITECTURE.md section 0, "Nicht-Ziele" / ROADMAP.md # Phase 3). # # Requires (in the build environment): gcc, make, autoconf, automake, # libtool, pkg-config, libfuse3-dev. # ============================================================================= 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="$FUSE_OVERLAYFS_VERSION" ARCH="$PKG_ARCH" BUILD="$PKG_BUILD" TAG="$PKG_TAG" sb_init "fuse-overlayfs" tarball=$(sb_fetch_and_verify "$FUSE_OVERLAYFS_SRC_URL" "$FUSE_OVERLAYFS_SRC_SHA256" "fuse-overlayfs-$VERSION.tar.gz") srcdir=$(sb_extract "$tarball") for patch in "$CWD"/patches/*.patch; do [ -e "$patch" ] || continue echo "==> [fuse-overlayfs] applying $(basename "$patch")" patch -d "$srcdir" -p1 < "$patch" done cd "$srcdir" echo "==> [fuse-overlayfs] autogen + configure" ./autogen.sh ./configure --prefix=/usr echo "==> [fuse-overlayfs] make" make echo "==> [fuse-overlayfs] make install into \$PKG" make install DESTDIR="$PKG" sb_install_docs "$srcdir/COPYING" "$srcdir/README.md" sb_make_package "$VERSION" "$ARCH" "$BUILD" "$TAG"