Mercurial > hg > portage
annotate net-analyzer/goaccess/goaccess-1.4.ebuild @ 565:fb3b4edf20c9 default tip
openjdk is in portage now
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Tue, 23 Jul 2024 15:55:19 +0200 |
parents | db6a2c47df08 |
children |
rev | line source |
---|---|
522
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
1 # Copyright 1999-2020 Gentoo Authors |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
3 |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
4 EAPI=7 |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
5 |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
6 DESCRIPTION="A real-time web log analyzer and interactive viewer that runs in a terminal" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
7 HOMEPAGE="https://goaccess.io" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
8 SRC_URI="https://tar.goaccess.io/${P}.tar.gz" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
9 |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
10 LICENSE="MIT" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
11 SLOT="0" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
12 KEYWORDS="amd64 ~x86 ~amd64-linux" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
13 IUSE="+btree bzip2 debug geoip geoipv2 getline libressl +tokyocabinet ssl unicode zlib" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
14 REQUIRED_USE="btree? ( tokyocabinet ) bzip2? ( btree ) geoipv2? ( geoip ) zlib? ( btree )" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
15 |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
16 BDEPEND="virtual/pkgconfig" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
17 RDEPEND="sys-libs/ncurses:0=[unicode?] |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
18 geoip? ( |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
19 !geoipv2? ( dev-libs/geoip ) |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
20 geoipv2? ( dev-libs/libmaxminddb:0= ) |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
21 ) |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
22 !tokyocabinet? ( dev-libs/glib:2 ) |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
23 tokyocabinet? ( |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
24 dev-db/tokyocabinet[bzip2?,zlib?] |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
25 btree? ( |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
26 bzip2? ( app-arch/bzip2 ) |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
27 zlib? ( sys-libs/zlib ) |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
28 ) |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
29 ) |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
30 ssl? ( |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
31 !libressl? ( dev-libs/openssl:0= ) |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
32 libressl? ( dev-libs/libressl:0= ) |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
33 )" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
34 DEPEND="${RDEPEND}" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
35 |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
36 src_configure() { |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
37 econf \ |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
38 "$(use_enable bzip2 bzip)" \ |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
39 "$(use_enable zlib)" \ |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
40 "$(use_enable debug)" \ |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
41 "$(use_enable geoip geoip "$(usex geoipv2 mmdb legacy)")" \ |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
42 "$(use_enable tokyocabinet tcb "$(usex btree btree memhash)")" \ |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
43 "$(use_enable unicode utf8)" \ |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
44 "$(use_with getline)" \ |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
45 "$(use_with ssl openssl)" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
46 } |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
47 |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
48 pkg_preinst() { |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
49 # Change path to GeoIP bases in config |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
50 sed -e s':/usr/local:/usr:' -i "${ED}"/etc/goaccess/goaccess.conf || die "sed failed for goaccess.conf" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
51 } |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
52 |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
53 pkg_postinst() { |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
54 ewarn "Upstream moved config to /etc/goaccess/goaccess.conf" |
db6a2c47df08
add a more recent ebuild for goaccess
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff
changeset
|
55 } |