diff --git a/acct-group/gatus/gatus-0.ebuild b/acct-group/gatus/gatus-0.ebuild new file mode 100644 index 0000000..6d47c62 --- /dev/null +++ b/acct-group/gatus/gatus-0.ebuild @@ -0,0 +1,6 @@ +# Copyright 2026 Shin'ya Minazuki +EAPI=8 + +inherit acct-group + +ACCT_GROUP_ID=-1 diff --git a/acct-user/gatus/gatus-0.ebuild b/acct-user/gatus/gatus-0.ebuild new file mode 100644 index 0000000..fe2b46c --- /dev/null +++ b/acct-user/gatus/gatus-0.ebuild @@ -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 diff --git a/www-apps/gatus/Manifest b/www-apps/gatus/Manifest new file mode 100644 index 0000000..3baf381 --- /dev/null +++ b/www-apps/gatus/Manifest @@ -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 diff --git a/www-apps/gatus/files/gatus.initd-r0 b/www-apps/gatus/files/gatus.initd-r0 new file mode 100644 index 0000000..4ac19a1 --- /dev/null +++ b/www-apps/gatus/files/gatus.initd-r0 @@ -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 +} diff --git a/www-apps/gatus/gatus-5.33.1.11.ebuild b/www-apps/gatus/gatus-5.33.1.11.ebuild new file mode 100644 index 0000000..c1dac01 --- /dev/null +++ b/www-apps/gatus/gatus-5.33.1.11.ebuild @@ -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" +} diff --git a/www-apps/gatus/metadata.xml b/www-apps/gatus/metadata.xml new file mode 100644 index 0000000..dfd1f28 --- /dev/null +++ b/www-apps/gatus/metadata.xml @@ -0,0 +1,11 @@ + + + + + shinyoukai@laidback.moe + Shin'ya Minazuki + + + TWiN/gatus + +