Add ebuild for beszel-hub 0.18.3
Signed-off-by: Manuel Friedli <manuel@fritteli.ch>
This commit is contained in:
parent
603403e52f
commit
eb0b67a7b7
8 changed files with 89 additions and 11 deletions
1
acct-user/beszel-hub/Manifest
Normal file
1
acct-user/beszel-hub/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
EBUILD beszel-hub-0.ebuild 264 BLAKE2B 452d10d678514cdf1445894ed484c9a109c4cd85d29c8a94b9c4880a72a72f798d13b5e24370604e30a0d9a83023343b49f96ad09283ce262a78229ff2e1cbd6 SHA512 485c7093a8a1e2424e77b2e137bc9397ce2a172501a8e6208efc00b60c851d06abef8458c315c2ac24d389450b87ef05a717ea761c5e1c93882152875de506b3
|
||||
14
acct-user/beszel-hub/beszel-hub-0.ebuild
Normal file
14
acct-user/beszel-hub/beszel-hub-0.ebuild
Normal 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
|
||||
9
metadata/md5-cache/acct-user/beszel-hub-0
Normal file
9
metadata/md5-cache/acct-user/beszel-hub-0
Normal 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
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
BDEPEND=>=dev-lang/go-1.20:= app-arch/unzip virtual/pkgconfig
|
||||
DEFINED_PHASES=compile unpack
|
||||
DEFINED_PHASES=compile install unpack
|
||||
DESCRIPTION=Beszel Hub - Simple, lightweight server monitoring
|
||||
EAPI=8
|
||||
HOMEPAGE=https://www.beszel.dev/
|
||||
|
|
@ -7,6 +7,6 @@ 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
|
||||
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_=75b7c6991f6b5618d163e53101970b53
|
||||
_md5_=bba9292ddada15e17cf90a5f34e2443b
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
AUX beszel-hub.env 293 BLAKE2B 2b2927cd26d779696e252d43c9dc66cf6e522e8e922a841af7968263a488b391a387f7765d1c8ef5072ef3693cb2fc7db074a8331bda12012f0130e2842d5c1f SHA512 22f3870c3e3a2a62aed206c3331f11c001e0a3b06d3d83352c23ba86a6ae6f6d14e84b7b6cbace0116e5be986383715eedfb9f8f3c7a2bd5812ec319f80a2b16
|
||||
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 873 BLAKE2B 8511c4a6cd9e037b9277cfe0b91be1899d8aaa21eb79e098feffc7864a9beb943912c267f137f9419e1acb49afb4ba6b93f613b18e50b94c6e5104dfd7ae553e SHA512 e3d4c24fd5dfb62fc5e271b30c05c0b68ed1a47bccf7daa9a65bbba38fe05193ab382bee3573bf470f6b2de0628757327c74698ab5e70fdeb9f16eaa2d561c1d
|
||||
EBUILD beszel-hub-0.18.3.ebuild 1348 BLAKE2B 055b3c8dadf1960f00d238fea9e5034e6dc8859b5bc2ebd1a2054315498b3f21648ebb8db9374bc4bf649f3b2e31ee617763fad11c889470f9057aa64842c081 SHA512 adc5b4ce367c3e57159b0d67b50bd10f16c2a6d5faebd37330bd23b06194ef07af2c0ffd5a4f55733a77b18becc6872de60c58c7064b0ad678a748e0150de036
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
7
www-apps/beszel-hub/files/beszel-hub.env
Normal file
7
www-apps/beszel-hub/files/beszel-hub.env
Normal 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
|
||||
29
www-apps/beszel-hub/files/beszel-hub.service
Normal file
29
www-apps/beszel-hub/files/beszel-hub.service
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue