39 lines
801 B
Bash
39 lines
801 B
Bash
# Copyright 2026 Shin'ya Minazuki
|
|
EAPI=8
|
|
|
|
inherit go-module optfeature
|
|
|
|
DESCRIPTION="Developer-oriented health dashboard for monitoring services"
|
|
HOMEPAGE="https://github.com/TWiN/gatus"
|
|
SRC_URI="
|
|
https://github.com/TwiN/gatus/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
|
https://distfiles.chaotic.ninja/pub/${PN}/${P}-deps.tar.xz
|
|
"
|
|
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}"
|
|
newconfd "${FILESDIR}/gatus.confd-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"
|
|
}
|