www-apps/beszel-hub - 0.18.4 (fritteli)

Search

Package Information

Description:
Beszel Hub - Simple, lightweight server monitoring
Homepage:
https://www.beszel.dev/
License:
AGPL-3+ AGPL-3 Apache-2.0 BSD GPL-3+ ISC MIT MPL-2.0 public-domain

Ebuild Details

Version EAPI Keywords Slot
0.18.4 8 ~amd64 0
View Raw Ebuild
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module systemd

MY_P="beszel-${PV}"
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 into the dir ${MY_P}
# cd ${MY_P}/internal/site
# npm install
# npm run build
# 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 -> ${MY_P}.tar.gz
	https://gentoo-overlay.friedli.info/${MY_P}-vendor.tar.xz
	https://gentoo-overlay.friedli.info/${P}-site.tar.xz"

S="${WORKDIR}/${MY_P}"

LICENSE="AGPL-3+"
# Go dependency licenses
LICENSE+=" AGPL-3 Apache-2.0 BSD GPL-3+ ISC MIT MPL-2.0 public-domain"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="acct-user/beszel-hub
	acct-group/beszel"

BDEPEND=">=dev-lang/go-1.26.0"

src_compile() {
	cd internal/cmd/hub
	ego build -ldflags "-w -s"
}

src_install() {
	newbin "${S}"/internal/cmd/hub/hub beszel-hub

	dodir /etc/beszel-hub
	keepdir /var/lib/beszel-hub

	insinto /etc/beszel-hub
	doins "${FILESDIR}"/beszel-hub.env

	fowners -R beszel-hub:beszel /etc/beszel-hub /var/lib/beszel-hub
	fperms 0750 /etc/beszel-hub /var/lib/beszel-hub
	fperms 0600 /etc/beszel-hub/beszel-hub.env

	systemd_dounit "${FILESDIR}"/beszel-hub.service
}

Dependencies

DEPEND

acct-user/beszel-hub
	acct-group/beszel

BDEPEND

>=dev-lang/go-1.26.0

Manifest for 0.18.4

Type File Size Source URLs
DIST beszel-0.18.4-vendor.tar.xz 28488972 bytes https://gentoo-overlay.friedli.info/beszel-0.18.4-vendor.tar.xz
DIST beszel-0.18.4.tar.gz 1212786 bytes https://github.com/henrygd/beszel/archive/refs/tags/v0.18.4.tar.gz
DIST beszel-hub-0.18.4-site.tar.xz 955592 bytes https://gentoo-overlay.friedli.info/beszel-hub-0.18.4-site.tar.xz