blob: a38a46ce6f723bf5d18088923c66fc65a2a5db4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2018 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"
}
|