Merge pull request 'feature/beszel' (#177) from feature/beszel into main
Some checks failed
continuous-integration/drone/push Build is failing

Reviewed-on: #177
This commit is contained in:
Manuel Friedli 2026-02-06 19:23:14 +01:00
commit b195cbaf52
9 changed files with 128 additions and 25 deletions

View file

@ -0,0 +1 @@
EBUILD beszel-hub-0.ebuild 264 BLAKE2B 452d10d678514cdf1445894ed484c9a109c4cd85d29c8a94b9c4880a72a72f798d13b5e24370604e30a0d9a83023343b49f96ad09283ce262a78229ff2e1cbd6 SHA512 485c7093a8a1e2424e77b2e137bc9397ce2a172501a8e6208efc00b60c851d06abef8458c315c2ac24d389450b87ef05a717ea761c5e1c93882152875de506b3

View file

@ -0,0 +1,14 @@
# Copyright 2019-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit acct-user
DESCRIPTION="User for the Beszel monitoring hub"
KEYWORDS="~amd64"
ACCT_USER_ID=-1
ACCT_USER_GROUPS=( beszel )
acct-user_add_deps

View file

@ -0,0 +1,9 @@
DEFINED_PHASES=install postinst preinst prerm pretend
DESCRIPTION=User for the Beszel monitoring hub
EAPI=8
INHERIT=acct-user
KEYWORDS=~amd64
RDEPEND=acct-group/beszel
SLOT=0
_eclasses_=user-info d7c261c6f7c2392145e8789913f1bf7e acct-user 8c5f04cd2cfafc30ffb9bae9cf5f5605
_md5_=6a03acc20812cf3b41bfab4aebc71e36

View file

@ -0,0 +1,12 @@
BDEPEND=>=dev-lang/go-1.20:= app-arch/unzip virtual/pkgconfig
DEFINED_PHASES=compile install unpack
DESCRIPTION=Beszel Hub - Simple, lightweight server monitoring
EAPI=8
HOMEPAGE=https://www.beszel.dev/
INHERIT=go-module systemd toolchain-funcs
KEYWORDS=~amd64
LICENSE=AGPL-3+ AGPL-3 Apache-2.0 BSD GPL-3+ ISC MIT MPL-2.0 public-domain
SLOT=0
SRC_URI=https://github.com/henrygd/beszel/archive/refs/tags/v0.18.3.tar.gz -> beszel-hub-0.18.3.tar.gz https://gentoo-overlay.friedli.info/beszel-0.18.3-vendor.tar.xz https://gentoo-overlay.friedli.info/beszel-hub-0.18.3-site.tar.xz
_eclasses_=multiprocessing 1e32df7deee68372153dca65f4a7c21f toolchain-funcs 30214924c0c3b92ec7dbf24fc70d60d3 flag-o-matic a7afe42e95fb46ce9691605acfb24672 go-env 0e2babf96e7d0b045fc07ad199eb2399 go-module d96f2a2fd6d8fbad6d94516bf238f885 systemd a964c0cbe818b5729da1dbfcee5be861
_md5_=bba9292ddada15e17cf90a5f34e2443b

View file

@ -1,2 +1,6 @@
DIST beszel-hub-0.18.2.tar.gz 1147048 BLAKE2B 342b75f4c5badb115d3ec06f9a680ae2b9719e487ce4f11fee4af7ccc2342a197b63bce683d9ece37fa65e13328ae4ea5bc562de4a5059656b32d5110760e28e SHA512 1c4d4c1d1a6e5a0cf07cffaef5a7fa44c4cf97d0b5befe6cca1f21d25b1e5228b3e4c455719a709da882fde3c88529693f16ed7ebc9cd463e7f8ab00265b4d8f AUX beszel-hub.env 293 BLAKE2B 2b2927cd26d779696e252d43c9dc66cf6e522e8e922a841af7968263a488b391a387f7765d1c8ef5072ef3693cb2fc7db074a8331bda12012f0130e2842d5c1f SHA512 22f3870c3e3a2a62aed206c3331f11c001e0a3b06d3d83352c23ba86a6ae6f6d14e84b7b6cbace0116e5be986383715eedfb9f8f3c7a2bd5812ec319f80a2b16
EBUILD beszel-hub-0.18.2.ebuild 561 BLAKE2B f57480d791fe83187f40d3287bdb1e1d5190aa9e608211050ab84d762dddd8dbd01757d7e47ed8ba49bd19fa273588fbcdc67a2f5a7d8f35831dc443d9bb6c9c SHA512 2fdd378326d9273e2fb8d96dc4bc669a198192c77ea6071d96df01a86d8be4b045804879fbe8d99d77396cd23f6eadf3f6ba3b0be5e6b0df210e856a4c36aec5 AUX beszel-hub.service 538 BLAKE2B 4646062f7dd97961f92c0cbf07e1f2305b1f959966b63dee8638a277b6f2cc2dfcef27d2356206fe80a75d95cc01e6e0e911f4a58e3f69f512a97d9a852b706b SHA512 d44d701f87ddc572652091966c13658e7d274680f2f0d3b856283d87dbefd2ee26608a86e0d5391663bc8a4904a9db858fb8ed9c91e81a768af2f9e5e9819500
DIST beszel-0.18.3-vendor.tar.xz 29845172 BLAKE2B 7c1e7e40c60614553dfa312d1891a677a987be5191447670d14f07b0a95933d2b9884b11b6914e74d20166a9be20bf6e3a86f1d6f296cd953d049ed17bc4631a SHA512 b959211fcd7e3a8c5abb3d46dedca883fbd85493f502d716538d0c76bfa08796e40dd8000306f8f9dcfb20e3886847d272a695553e669910168a059ecd31b461
DIST beszel-hub-0.18.3-site.tar.xz 942380 BLAKE2B 44ccfc53c50cd5ea13adb0ebb96bdffa1283c1bd19600e4735296bfd9d3f6b77b4a5c0654aa20d6475969a45a26c112813b1fa29041fddc366f6e26ebc5d1476 SHA512 3b4ccb343c64523e1e4066d0b207b66ef8a0012f3af3e8bdc23d11af4fdc7c36e97868ee6b6997a07537df765fd465e12a5132f81d4fdda18a57b5841290b7df
DIST beszel-hub-0.18.3.tar.gz 1153782 BLAKE2B 13458446ed3d80c9409161bc17b54fbde6dc5da6cbf9d65c42a65c5ec236e34dcc7fe131173cb08cc9b5df30b435952bd36c643a87a29fd8a65d5b844de62aa5 SHA512 c4abbe9b28b79ec3206b401b29fcc6c49531c9b2e946909df11d3ac8430099d455d391e49d67503f8fa831b6c514d5efb7f67845f1ab4788e81ff80a9a4521cf
EBUILD beszel-hub-0.18.3.ebuild 1348 BLAKE2B 055b3c8dadf1960f00d238fea9e5034e6dc8859b5bc2ebd1a2054315498b3f21648ebb8db9374bc4bf649f3b2e31ee617763fad11c889470f9057aa64842c081 SHA512 adc5b4ce367c3e57159b0d67b50bd10f16c2a6d5faebd37330bd23b06194ef07af2c0ffd5a4f55733a77b18becc6872de60c58c7064b0ad678a748e0150de036

View file

@ -1,23 +0,0 @@
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd toolchain-funcs
DESCRIPTION="Simple, lightweight server monitoring"
HOMEPAGE="https://www.beszel.dev/"
SRC_URI="https://github.com/henrygd/beszel/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/beszel-${PV}"
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"
src_compile() {
# emake build-hub
emake build-agent
}

View file

@ -0,0 +1,50 @@
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd toolchain-funcs
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 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 -> ${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"
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
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
}

View file

@ -0,0 +1,7 @@
# This is a sample config file. Adjust to your needs.
# See https://beszel.dev/guide/environment-variables#hub for all available
# variables.
# The application URL. Used for links in emails and notigications. Must set
# if serving at a subpath.
#BESZEL_HUB_APP_URL=https://beszel.example.com

View file

@ -0,0 +1,29 @@
[Unit]
Description=Beszel Hub Service
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/bin/beszel-hub
EnvironmentFile=/etc/beszel-hub/beszel-hub.env
Restart=on-failure
RestartSec=5
StateDirectory=beszel-hub
User=beszel-hub
Group=beszel
# Security/sandboxing settings
KeyringMode=private
LockPersonality=yes
NoNewPrivileges=yes
ProtectClock=yes
ProtectHome=read-only
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectSystem=strict
RemoveIPC=yes
RestrictSUIDSGID=true
[Install]
WantedBy=multi-user.target