aboutsummaryrefslogblamecommitdiffstats
path: root/net-analyzer/goaccess/goaccess-1.5.1.ebuild
blob: 78f945728265d7cf340ca9866379f690100bf054 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                  
                                        





































                                                                                                 
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

if [[ ${PV} = *9999* ]] ; then
	EGIT_REPO_URI="https://github.com/allinurl/${PN}.git"
	inherit git-r3
else
	SRC_URI="https://tar.goaccess.io/${P}.tar.gz"
	KEYWORDS="amd64 x86 amd64-linux"
fi

DESCRIPTION="A real-time web log analyzer and interactive viewer that runs in a terminal"
HOMEPAGE="https://goaccess.io"

LICENSE="MIT"
SLOT="0"
IUSE="debug geoip geoipv2 getline ssl unicode"
REQUIRED_USE="geoipv2? ( geoip )"

BDEPEND="virtual/pkgconfig"
RDEPEND="sys-libs/ncurses:=[unicode(+)?]
	geoip? (
		!geoipv2? ( dev-libs/geoip )
		geoipv2? ( dev-libs/libmaxminddb:0= )
	)
	ssl? (
		dev-libs/openssl:0=
	)"
DEPEND="${RDEPEND}"

src_prepare() {
	default

	# Change path to GeoIP bases in config
	sed -i -e s':/usr/local:/usr:' config/goaccess.conf || die "sed failed for goaccess.conf"

	eautoreconf
}

src_configure() {
	econf \
		"$(use_enable debug)" \
		"$(use_enable geoip geoip "$(usex geoipv2 mmdb legacy)")" \
		"$(use_enable unicode utf8)" \
		"$(use_with getline)" \
		"$(use_with ssl openssl)"
}