diff options
author | Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> | 2017-10-29 15:47:52 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-11-05 16:37:44 +0100 |
commit | 270b12c04e03b62b10656b50cf857901ca47f4d1 (patch) | |
tree | e7db107b01fe27ef222966ee299642e6bcaf0f2f /net-analyzer/goaccess/goaccess-1.2.ebuild | |
parent | net-misc/streamlink: version bump to 0.8.1. (diff) | |
download | gentoo-270b12c04e03b62b10656b50cf857901ca47f4d1.tar.gz gentoo-270b12c04e03b62b10656b50cf857901ca47f4d1.tar.bz2 gentoo-270b12c04e03b62b10656b50cf857901ca47f4d1.zip |
net-analyzer/goaccess: version bump to 1.2.
1. Added geoipv2 USE-flag to support MaxMind's GeoIP.
2. Updated REQUIRED_USE.
Package-Manager: Portage-2.3.8, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/6064
Diffstat (limited to 'net-analyzer/goaccess/goaccess-1.2.ebuild')
-rw-r--r-- | net-analyzer/goaccess/goaccess-1.2.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/net-analyzer/goaccess/goaccess-1.2.ebuild b/net-analyzer/goaccess/goaccess-1.2.ebuild new file mode 100644 index 000000000000..fc4075601073 --- /dev/null +++ b/net-analyzer/goaccess/goaccess-1.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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" + +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} + virtual/pkgconfig" + +REQUIRED_USE="btree? ( tokyocabinet ) bzip2? ( btree ) geoipv2? ( geoip ) zlib? ( btree )" + +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.conf || die "sed failed for goaccess.conf" +} |