You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/goaccess/goaccess-1.1.1.ebuild

51 lines
1.3 KiB

# 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="http://goaccess.io"
SRC_URI="http://tar.goaccess.io/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux"
IUSE="btree bzip2 debug geoip getline libressl ssl tokyocabinet unicode zlib"
RDEPEND="
sys-libs/ncurses:0=[unicode?]
geoip? ( dev-libs/geoip )
!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 ) zlib? ( btree )"
src_configure() {
econf \
$(use_enable bzip2 bzip) \
$(use_enable zlib) \
$(use_enable debug) \
$(use_enable geoip) \
$(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"
}