Add www-apps/gatus
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
parent
1b4a22d21e
commit
8f39eb4d6b
6 changed files with 87 additions and 0 deletions
6
acct-group/gatus/gatus-0.ebuild
Normal file
6
acct-group/gatus/gatus-0.ebuild
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Copyright 2026 Shin'ya Minazuki
|
||||
EAPI=8
|
||||
|
||||
inherit acct-group
|
||||
|
||||
ACCT_GROUP_ID=-1
|
||||
10
acct-user/gatus/gatus-0.ebuild
Normal file
10
acct-user/gatus/gatus-0.ebuild
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Copyright 2026 Shin'ya Minazuki
|
||||
EAPI=8
|
||||
|
||||
inherit acct-user
|
||||
|
||||
DESCRIPTION="Unprivileged system user for Gatus"
|
||||
ACCT_USER_ID=-1
|
||||
ACCT_USER_GROUPS=( gatus )
|
||||
|
||||
acct-user_add_deps
|
||||
2
www-apps/gatus/Manifest
Normal file
2
www-apps/gatus/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST gatus-5.33.1.11-deps.tar.gz 50967594 BLAKE2B dbc692975dd9244ed79f0c039b8a5738ebf9c6067f787fd1b7a4ef54dcecdccb252897aa785886a3f91c92aebae095706a4c63dbe3d8b71795831e3c8697d1d6 SHA512 df1c6e4ddeda447ae341f7b6b11d607babfb67400324908fd267542e0478ebcb8fa8ae881dca9ead56cbf3edefaaae3ffa2d9d77824e740d48440a16e33eb244
|
||||
DIST gatus-5.33.1.11.tar.gz 2967920 BLAKE2B 88e9421bd312eb8f3314bc7df353dab1b11f6d50eeb4f3353147f06326098b0d8e352be458f9a8f85909dc6aaa9fba090d0fcf79843d1e740381df3e155e7e89 SHA512 f450b9bfc9cb30b58adba1792e744382ab81f9651b3b6a733a3bdd155212694243d9582ab532cf084a42b4e55c5aa32adf321d152cf45a4e2aeae8bc168a8a50
|
||||
17
www-apps/gatus/files/gatus.initd-r0
Normal file
17
www-apps/gatus/files/gatus.initd-r0
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 2026 Shin'ya Minazuki
|
||||
|
||||
supervisor="supervise-daemon"
|
||||
command="/usr/bin/${RC_SVCNAME}"
|
||||
command_args="-config /etc/${RC_SVCNAME}/config.yaml"
|
||||
command_background="true"
|
||||
command_user="${RC_SVCNAME}"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
|
||||
start_pre() {
|
||||
ebegin "Checking for the existence of /etc/${RC_SVCNAME}/config.yaml ..."
|
||||
if ! checkpath --file /etc/${RC_SVCNAME}/config.yaml; then
|
||||
eerror "Configuration file not found"
|
||||
eerror "Bailing out."
|
||||
fi
|
||||
}
|
||||
41
www-apps/gatus/gatus-5.33.1.11.ebuild
Normal file
41
www-apps/gatus/gatus-5.33.1.11.ebuild
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# Copyright 2026 Shin'ya Minazuki
|
||||
EAPI=8
|
||||
|
||||
inherit go-module optfeature
|
||||
|
||||
DESCRIPTION="Developer-oriented health dashboard for monitoring services (modified)"
|
||||
HOMEPAGE="https://github.com/TWiN/gatus"
|
||||
SRC_URI="
|
||||
https://distfiles.chaotic.ninja/pub/${PN}/${P}.tar.gz
|
||||
https://distfiles.chaotic.ninja/pub/${PN}/${P}-deps.tar.gz
|
||||
"
|
||||
# Per licensing terms, modified copies should not have the same name
|
||||
# as the upstream project, but it is not like I can do anything
|
||||
# about it, this isn't a fork.
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
RDEPEND="
|
||||
acct-group/gatus
|
||||
acct-user/gatus
|
||||
"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
src_compile() {
|
||||
ego build -v -o "${PN}" -x
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newinitd "${FILESDIR}/gatus.initd-r0" "${PN}"
|
||||
dobin "${PN}"
|
||||
insinto "/etc/gatus"
|
||||
doins config.yaml
|
||||
fowners -R gatus:gatus "/etc/gatus"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Alternative to SQLite" "dev-db/postgresql"
|
||||
}
|
||||
11
www-apps/gatus/metadata.xml
Normal file
11
www-apps/gatus/metadata.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>shinyoukai@laidback.moe</email>
|
||||
<name>Shin'ya Minazuki</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">TWiN/gatus</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Loading…
Add table
Add a link
Reference in a new issue