forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: gentoo#6064
- Loading branch information
Showing
3 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="person"> | ||
|
@@ -17,6 +17,7 @@ | |
</longdescription> | ||
<use> | ||
<flag name="btree">Enable Tokyo Cabinet's on-disk B+ Tree database backend</flag> | ||
<flag name="geoipv2">Enable support for GeoIP2 through <pkg>dev-libs/libmaxminddb</pkg></flag> | ||
<flag name="getline">Use GNU getline() to parse full line requests</flag> | ||
<flag name="memhash">Enable Tokyo Cabinet's on-memory hash database backend</flag> | ||
<flag name="tokyocabinet">Enable Tokyo Cabinet's on-memory hash database backend</flag> | ||
|
@@ -25,6 +26,5 @@ | |
<doc>http://goaccess.io/faq</doc> | ||
<bugs-to>mailto:[email protected]</bugs-to> | ||
<remote-id type="github">allinurl/goaccess</remote-id> | ||
<remote-id type="sourceforge">goaccess</remote-id> | ||
</upstream> | ||
</pkgmetadata> |