Add ebuild for beszel-hub 0.18.3
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing

Signed-off-by: Manuel Friedli <manuel@fritteli.ch>
This commit is contained in:
Manuel Friedli 2026-02-06 19:22:11 +01:00
parent 603403e52f
commit eb0b67a7b7
8 changed files with 89 additions and 11 deletions

View file

@ -10,15 +10,16 @@ DESCRIPTION="Beszel Hub - Simple, lightweight server monitoring"
HOMEPAGE="https://www.beszel.dev/"
# How to create the site tarball:
# - Checkout the repo at the correct tag
# cd internal/site
# - Checkout the repo at the correct tag into the dir ${MY_P}
# cd ${MY_P}/internal/site
# npm install
# npm build
# cd ../..
# tar --auto-compress -cf ${MY_P}-site.tar.xz internal/site/dist
# cd ../../..
# tar --auto-compress -cf ${MY_P}-site.tar.xz ${MY_P}/internal/site/dist
# Upload to mirror
SRC_URI="https://github.com/henrygd/beszel/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://gentoo-overlay.friedli.info/${MY_P}-vendor.tar.xz"
https://gentoo-overlay.friedli.info/${MY_P}-vendor.tar.xz
https://gentoo-overlay.friedli.info/${P}-site.tar.xz"
S="${WORKDIR}/${MY_P}"
@ -29,7 +30,21 @@ SLOT="0"
KEYWORDS="~amd64"
src_compile() {
cd internal/hub
cd internal/cmd/hub
ego build -ldflags "-w -s"
}
src_install() {
newbin "${S}"/internal/cmd/hub/hub beszel-hub
dodir /etc/beszel-hub
insinto /etc/beszel-hub
doins "${FILESDIR}"/beszel-hub.env
fowners -R beszel-hub:beszel /etc/beszel-hub
fperms 0750 /etc/beszel-hub
fperms 0600 /etc/beszel-hub/beszel-hub.env
systemd_dounit "${FILESDIR}"/beszel-hub.service
}