Files
guru/www-apps/goatcounter/goatcounter-2.7.0.ebuild
Anna (cybertailor) Vyalkova b002e1e4f9 www-apps/goatcounter: fix openrc service
The relevant change is:
> command_args="serve"

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2026-03-01 01:10:13 +05:00

49 lines
1.2 KiB
Bash

# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd
DESCRIPTION="Easy web analytics without tracking of personal data"
HOMEPAGE="
https://www.goatcounter.com
https://github.com/arp242/goatcounter
"
SRC_URI="https://github.com/arp242/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz
"
LICENSE="EUPL-1.2 ISC MIT OFL-1.1"
LICENSE+=" Apache-2.0 BSD BSD-2 MIT public-domain"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="acct-user/goatcounter"
BDEPEND=">=dev-lang/go-1.25.5"
DOCS=( CHANGELOG.md README.md docs/. )
src_compile() {
ego build -ldflags="-X zgo.at/goatcounter/v2.Version=${PV}" ./cmd/goatcounter
}
src_test() {
# skip TestMetrics (benchmarks)
ego test -vet=off ./... -skip TestMetrics
}
src_install() {
dobin goatcounter
einstalldocs
keepdir /var/db/goatcounter
fowners goatcounter:goatcounter /var/db/goatcounter
fperms 750 /var/db/goatcounter
newinitd "${FILESDIR}"/goatcounter.initd-r1 goatcounter
newconfd "${FILESDIR}"/goatcounter.confd goatcounter
systemd_dounit "${FILESDIR}"/goatcounter.service
}