net-analyzer/caddy-analyzer - 0.7.4 (mndz)

Search

Install

Install this version:

emerge -a =net-analyzer/caddy-analyzer-0.7.4

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

autounmask =net-analyzer/caddy-analyzer-0.7.4

Or alternatively:

emerge --autounmask-write -a =net-analyzer/caddy-analyzer-0.7.4

Package Information

Description:
Caddy access log analyzer, security inspector, and TUI dashboard
Homepage:
https://github.com/lenny-ts/caddy-analyzer
License:
Apache-2.0 BSD ISC MIT

Ebuild Details

Version EAPI Keywords Slot
0.7.4 8 -* ~amd64 ~arm ~arm64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module optfeature shell-completion

DESCRIPTION="Caddy access log analyzer, security inspector, and TUI dashboard"
HOMEPAGE="https://github.com/lenny-ts/caddy-analyzer"
SRC_URI="
	https://github.com/lenny-ts/caddy-analyzer/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/0x6d6e647a/mndz-overlay-assets/releases/download/caddy-analyzer-${PV}/caddy-analyzer-${PV}-vendor.tar.xz
"

LICENSE="Apache-2.0 BSD ISC MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm ~arm64"
IUSE="bash-completion fish-completion test zsh-completion"
RESTRICT="!test? ( test )"

BDEPEND=">=dev-lang/go-1.25.13:="

PATCHES=( "${FILESDIR}/caddy-analyzer-0.7.4-offline-geoip.patch" )

src_compile() {
	export CGO_ENABLED=0
	ego build -buildvcs=false \
		-ldflags "-X github.com/lenny-ts/caddy-analyzer/cmd.Version=${PV}" \
		-o "${T}/caddy-analyze" ./cmd/caddy-analyze
}

src_test() {
	export XDG_CONFIG_HOME="${T}/config"
	ego test ./...
}

src_install() {
	einstalldocs
	dobin "${T}/caddy-analyze"

	if use bash-completion; then
		"${T}/caddy-analyze" completion bash > "${T}/caddy-analyze.bash" \
			|| die "failed to generate bash completion"
		newbashcomp "${T}/caddy-analyze.bash" caddy-analyze
	fi
	if use fish-completion; then
		"${T}/caddy-analyze" completion fish > "${T}/caddy-analyze.fish" \
			|| die "failed to generate fish completion"
		newfishcomp "${T}/caddy-analyze.fish" caddy-analyze.fish
	fi
	if use zsh-completion; then
		"${T}/caddy-analyze" completion zsh > "${T}/_caddy-analyze" \
			|| die "failed to generate zsh completion"
		newzshcomp "${T}/_caddy-analyze" _caddy-analyze
	fi
}

pkg_postinst() {
	optfeature "iptables firewall backend for guard, block, and unban" net-firewall/iptables
	optfeature "nftables firewall backend for guard" net-firewall/nftables
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-analyzer/caddy-analyzer | euse -E <flag> -p net-analyzer/caddy-analyzer | euse -D <flag> -p net-analyzer/caddy-analyzer

Inherited Eclasses

Dependencies

BDEPEND

>=dev-lang/go-1.25.13:=

Manifest for 0.7.4

Type File Size Source URLs
DIST caddy-analyzer-0.7.4.tar.gz 5486413 bytes https://github.com/lenny-ts/caddy-analyzer/archive/refs/tags/v0.7.4.tar.gz
DIST caddy-analyzer-0.7.4-vendor.tar.xz 23036444 bytes https://github.com/0x6d6e647a/mndz-overlay-assets/releases/download/caddy-analyzer-0.7.4/caddy-analyzer-0.7.4-vendor.tar.xz