changeset 522:db6a2c47df08

add a more recent ebuild for goaccess
author Dirk Olmes <dirk.olmes@codedo.de>
date Fri, 12 Jun 2020 03:07:23 +0200
parents 96aa41aff28e
children a3240846c9cd
files net-analyzer/goaccess/Manifest net-analyzer/goaccess/goaccess-1.4.ebuild
diffstat 2 files changed, 57 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-analyzer/goaccess/Manifest	Fri Jun 12 03:07:23 2020 +0200
@@ -0,0 +1,2 @@
+DIST goaccess-1.4.tar.gz 595264 BLAKE2B ca1a337db34e2a09a87a5e89dbb31f85b9caac634b0aa1ab5e6ce917c71163c8f83e145e650b42aa762029411eb008f22200312e68f07c89e746f842beb91ce3 SHA512 de5f6759a10193a625efb1f70a7aeed68f6bac3c6977f8a34f67c0320eeb995c2e063df9e6f5196de2dd5aaf42b7a90f3e9599a20ecdbc67d0f89c87f1ba852c
+EBUILD goaccess-1.4.ebuild 1513 BLAKE2B dfe88edce80e9ce29fe32028e74b97531260684f844b86a5da7666fbf4436220349d8fd9308938fd2203a70aaddcb8aafdda4b0faf9064563f02ab865981ef6b SHA512 91d59593f9b3c3825425347327c4712422b53eb43e53205c20af55deb776fb628980115632b2168d9cd2acce16359f519c434916089767d860ea471e4ffb59de
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-analyzer/goaccess/goaccess-1.4.ebuild	Fri Jun 12 03:07:23 2020 +0200
@@ -0,0 +1,55 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A real-time web log analyzer and interactive viewer that runs in a terminal"
+HOMEPAGE="https://goaccess.io"
+SRC_URI="https://tar.goaccess.io/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~x86 ~amd64-linux"
+IUSE="+btree bzip2 debug geoip geoipv2 getline libressl +tokyocabinet ssl unicode zlib"
+REQUIRED_USE="btree? ( tokyocabinet ) bzip2? ( btree ) geoipv2? ( geoip ) zlib? ( btree )"
+
+BDEPEND="virtual/pkgconfig"
+RDEPEND="sys-libs/ncurses:0=[unicode?]
+	geoip? (
+		!geoipv2? ( dev-libs/geoip )
+		geoipv2? ( dev-libs/libmaxminddb:0= )
+	)
+	!tokyocabinet? ( dev-libs/glib:2 )
+	tokyocabinet? (
+		dev-db/tokyocabinet[bzip2?,zlib?]
+		btree? (
+			bzip2? ( app-arch/bzip2 )
+			zlib? ( sys-libs/zlib )
+		)
+	)
+	ssl? (
+		!libressl? ( dev-libs/openssl:0= )
+		libressl? ( dev-libs/libressl:0= )
+	)"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+	econf \
+		"$(use_enable bzip2 bzip)" \
+		"$(use_enable zlib)" \
+		"$(use_enable debug)" \
+		"$(use_enable geoip geoip "$(usex geoipv2 mmdb legacy)")" \
+		"$(use_enable tokyocabinet tcb "$(usex btree btree memhash)")" \
+		"$(use_enable unicode utf8)" \
+		"$(use_with getline)" \
+		"$(use_with ssl openssl)"
+}
+
+pkg_preinst() {
+	# Change path to GeoIP bases in config
+	sed -e s':/usr/local:/usr:' -i "${ED}"/etc/goaccess/goaccess.conf || die "sed failed for goaccess.conf"
+}
+
+pkg_postinst() {
+	ewarn "Upstream moved config to /etc/goaccess/goaccess.conf"
+}