summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua>2022-09-01 22:47:41 +0300
committerJoonas Niilola <juippis@gentoo.org>2022-09-27 15:12:31 +0300
commit5c820de80e5ca8b469794221f2eac9fe2ea48aad (patch)
treec470e8f9b683e410d7d670dde4f93d084d6b1485 /net-analyzer/goaccess
parentnet-analyzer/goaccess: drop old ebuild (diff)
downloadgentoo-5c820de80e5ca8b469794221f2eac9fe2ea48aad.tar.gz
gentoo-5c820de80e5ca8b469794221f2eac9fe2ea48aad.tar.bz2
gentoo-5c820de80e5ca8b469794221f2eac9fe2ea48aad.zip
net-analyzer/goaccess: version bump to 1.6.3
Changes from the last review in https://github.com/gentoo/gentoo/pull/26693 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-analyzer/goaccess')
-rw-r--r--net-analyzer/goaccess/Manifest1
-rw-r--r--net-analyzer/goaccess/goaccess-1.6.3.ebuild70
2 files changed, 71 insertions, 0 deletions
diff --git a/net-analyzer/goaccess/Manifest b/net-analyzer/goaccess/Manifest
index 0ebf2e48b126..b0c9c3f7aa23 100644
--- a/net-analyzer/goaccess/Manifest
+++ b/net-analyzer/goaccess/Manifest
@@ -1 +1,2 @@
DIST goaccess-1.6.2.tar.gz 658679 BLAKE2B 93aea3e4142ec2fa8ea4b1600bac4bcdf28f845904935c1b2e88e720e3ba342fd07f7f22ac05b8010932263e708ecdf6c516f901b690532a395e337494a69486 SHA512 5299df01fd06777bf85da12e4d4ec3b9eca866bbab6cac64f3d674b0b3ecc90dc4c28f5bc2c94064b7654d381aa873626e98ec9f26fc2b546380bb9e40077a85
+DIST goaccess-1.6.3.tar.gz 658827 BLAKE2B 48378235a75c11e7392bcaca98c64689032e74377696cf6fd3e0e230dd35a2e0f78e5f4283da2c4693ec072942ae6be4d3dc27f91f23d8390f81a330d9955c93 SHA512 7890fc35700db9ce1d3c720607cce6008a3140a14d143fcdd02f11a79f5344a26c648c9b7e6316a21d3ff07f588815bcdfb33072b5e0a18c429e9bfdb8bf99f4
diff --git a/net-analyzer/goaccess/goaccess-1.6.3.ebuild b/net-analyzer/goaccess/goaccess-1.6.3.ebuild
new file mode 100644
index 000000000000..52788637826a
--- /dev/null
+++ b/net-analyzer/goaccess/goaccess-1.6.3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools optfeature systemd tmpfiles
+
+DESCRIPTION="A real-time web log analyzer and interactive viewer in a terminal"
+HOMEPAGE="https://goaccess.io"
+SRC_URI="https://tar.goaccess.io/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug geoip geoipv2 getline ssl unicode"
+REQUIRED_USE="geoipv2? ( geoip )"
+
+RDEPEND="acct-group/goaccess
+ acct-user/goaccess
+ sys-libs/ncurses:=[unicode(+)?]
+ geoip? (
+ !geoipv2? ( dev-libs/geoip )
+ geoipv2? ( dev-libs/libmaxminddb:0= )
+ )
+ ssl? ( dev-libs/openssl:0= )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+
+ # Enable log-format, define log file and db path,
+ # change path to GeoIP bases in config
+ sed -i -e '/log-format COMBINED/s/#//' \
+ -e '/log-file/s/#//' \
+ -e '/db-path/s|tmp|var/lib/goaccess|' \
+ -e '/geoip-database/s|local/||' config/goaccess.conf \
+ || die "sed failed for goaccess.conf"
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=()
+ readarray -t myeconfargs < <(
+ use_enable debug
+ use_enable geoip geoip "$(usex geoipv2 mmdb legacy)"
+ use_enable unicode utf8
+ use_with getline
+ use_with ssl openssl
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/goaccess.initd goaccess
+ newconfd "${FILESDIR}"/goaccess.confd goaccess
+ systemd_dounit "${FILESDIR}"/goaccess.service
+ newtmpfiles "${FILESDIR}"/goaccess.tmpfile goaccess.conf
+
+ diropts -o goaccess -g goaccess -m 0700
+ keepdir /var/lib/goaccess/db /var/log/goaccess
+}
+
+pkg_postinst() {
+ optfeature "update GeoIP databases" net-misc/geoipupdate
+ tmpfiles_process goaccess.conf
+}