summaryrefslogtreecommitdiff
path: root/emerge
diff options
context:
space:
mode:
authorFranoosh <uinarf@autistici.org>2025-11-17 17:16:48 +0100
committerFranoosh <uinarf@autistici.org>2025-11-17 17:16:48 +0100
commit7d68eb43cfc9bd57768031d6e81192911dc09439 (patch)
tree0ab189fc27a83b6d4669293f96bf983f17a5cc19 /emerge
parentd2f80432c8798afd3b8a2e471efb28316e163325 (diff)
downloadBash-7d68eb43cfc9bd57768031d6e81192911dc09439.tar.gz
Bash-7d68eb43cfc9bd57768031d6e81192911dc09439.tar.bz2
Bash-7d68eb43cfc9bd57768031d6e81192911dc09439.zip
Polished emerge script for the server and added script for a client
Diffstat (limited to 'emerge')
-rwxr-xr-x[-rw-r--r--]emerge9
1 files changed, 7 insertions, 2 deletions
diff --git a/emerge b/emerge
index 24d11f9..79ff633 100644..100755
--- a/emerge
+++ b/emerge
@@ -1,12 +1,17 @@
#!/usr/bin/env bash
+# This script is for a binhost server.
# Script creating new binhost directories if they don't exist
# after changing profile/gcc versions.
# To be placed in $PATH before /usr/bin/emerge, for instance /usr/bin/local
+# For a binhost client you need this defined:
+# PORTAGE_BINHOST="ssh://user@binhost_server/path/to/binary/host/$PKGDIR"
+# There is an accompanying script emerge-client in the repo.
+# One needs to put it on $PATH before /usr/bin/emerge, for instance /usr/bin/local on the binhost user host.
PROFILE=$(eselect profile show|sed -n 2p|cut -d '/' -f4)
GCC_VERSION=$(eselect gcc show|cut -d '-' -f5)
-BINHOST_DIR="/var/cache/binpkgs/${PROFILE}/gcc-${GCC_VERSION}.x/armv8a"
+PKGDIR="/var/cache/binhost/rpi3/binpgs/$PKGDIR${PROFILE}/gcc-${GCC_VERSION}.x/armv8a"
export BINHOST_DIR=${BINHOST_DIR}
@@ -16,4 +21,4 @@ if [ ! -d "${BINHOST_DIR}" ]; then
else echo "Binhost directory ${BINHOST_DIR} exists, proceeding"
fi
-PKGDIR="${BINHOST_DIR}" /usr/bin/emerge "$@"
+PKGDIR="${PKGDIR}" /usr/bin/emerge "$@"