www-apps/goatcounter - 2.7.0 (guru)

Search

Install

Install this version:

emerge -a =www-apps/goatcounter-2.7.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =www-apps/goatcounter-2.7.0

Or alternatively:

emerge --autounmask-write -a =www-apps/goatcounter-2.7.0

Package Information

Description:
Easy web analytics without tracking of personal data
Homepage:
https://www.goatcounter.com https://github.com/arp242/goatcounter
License:
EUPL-1.2 ISC MIT OFL-1.1 Apache-2.0 BSD BSD-2 MIT public-domain

Ebuild Details

Version EAPI Keywords Slot
2.7.0 8 ~amd64 0
View Raw Ebuild
# 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
}

Inherited Eclasses

Dependencies

RDEPEND

acct-user/goatcounter

BDEPEND

>=dev-lang/go-1.25.5

Manifest for 2.7.0

Type File Size Source URLs
DIST goatcounter-2.7.0-vendor.tar.xz 3701608 bytes https://github.com/gentoo-golang-dist/goatcounter/releases/download/v2.7.0/goatcounter-2.7.0-vendor.tar.xz
DIST goatcounter-2.7.0.tar.gz 5528702 bytes https://github.com/arp242/goatcounter/archive/refs/tags/v2.7.0.tar.gz