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,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