1 |
commit: 9d8358f52e1923d57e7809ea628f3fa373e1f921 |
2 |
Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua> |
3 |
AuthorDate: Sun Dec 2 11:07:00 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 4 22:52:57 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d8358f5 |
7 |
|
8 |
net-analyzer/goaccess: version bump to 1.3, moved to EAPI 7, live ebuild. |
9 |
|
10 |
Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
13 |
|
14 |
net-analyzer/goaccess/Manifest | 1 + |
15 |
net-analyzer/goaccess/goaccess-1.3.ebuild | 55 ++++++++++++++++++++++++++++ |
16 |
net-analyzer/goaccess/goaccess-9999.ebuild | 59 ++++++++++++++++++++++++++++++ |
17 |
3 files changed, 115 insertions(+) |
18 |
|
19 |
diff --git a/net-analyzer/goaccess/Manifest b/net-analyzer/goaccess/Manifest |
20 |
index d0134881f40..39e75605233 100644 |
21 |
--- a/net-analyzer/goaccess/Manifest |
22 |
+++ b/net-analyzer/goaccess/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST goaccess-1.2.tar.gz 423103 BLAKE2B 87c527a52db9fa69d6e6a02ffbda64a6a32e6214ca6bc1f2654e1451fe5d73e7caa02cf1416c93c511bee329b7885e4914fb7dfd37562ef5347ea3912d030c14 SHA512 bc31ef1e4c92608635856fa73e69b58267c161a7e3c6f2e3ca8860b862ed1c47575b93943dd975a5f8503774ee90ee0649d380563639e30908d876416638f889 |
25 |
+DIST goaccess-1.3.tar.gz 541374 BLAKE2B 55942e35d06f1467df9b80a3fc42211e867b08963a7334783c0279ba7b9e0fd8d6e197277bee780547a9b8f6264ae15844374604f6d7c1b3b57f57768c2b2019 SHA512 7ab8a42670c2009459eee6979cb14e32e7e776e89912077882652631d0ce6ff801fba46d91ab5c23af1229f000e220863e9b70336fcd9fe11521d0ae1fd3bde1 |
26 |
|
27 |
diff --git a/net-analyzer/goaccess/goaccess-1.3.ebuild b/net-analyzer/goaccess/goaccess-1.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..a38a46ce6f7 |
30 |
--- /dev/null |
31 |
+++ b/net-analyzer/goaccess/goaccess-1.3.ebuild |
32 |
@@ -0,0 +1,55 @@ |
33 |
+# Copyright 1999-2018 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+DESCRIPTION="A real-time web log analyzer and interactive viewer that runs in a terminal" |
39 |
+HOMEPAGE="https://goaccess.io" |
40 |
+SRC_URI="https://tar.goaccess.io/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux" |
45 |
+IUSE="btree bzip2 debug geoip geoipv2 getline libressl tokyocabinet ssl unicode zlib" |
46 |
+REQUIRED_USE="btree? ( tokyocabinet ) bzip2? ( btree ) geoipv2? ( geoip ) zlib? ( btree )" |
47 |
+ |
48 |
+BDEPEND="virtual/pkgconfig" |
49 |
+RDEPEND="sys-libs/ncurses:0=[unicode?] |
50 |
+ geoip? ( |
51 |
+ !geoipv2? ( dev-libs/geoip ) |
52 |
+ geoipv2? ( dev-libs/libmaxminddb:0= ) |
53 |
+ ) |
54 |
+ !tokyocabinet? ( dev-libs/glib:2 ) |
55 |
+ tokyocabinet? ( |
56 |
+ dev-db/tokyocabinet[bzip2?,zlib?] |
57 |
+ btree? ( |
58 |
+ bzip2? ( app-arch/bzip2 ) |
59 |
+ zlib? ( sys-libs/zlib ) |
60 |
+ ) |
61 |
+ ) |
62 |
+ ssl? ( |
63 |
+ !libressl? ( dev-libs/openssl:0= ) |
64 |
+ libressl? ( dev-libs/libressl:0= ) |
65 |
+ )" |
66 |
+DEPEND="${RDEPEND}" |
67 |
+ |
68 |
+src_configure() { |
69 |
+ econf \ |
70 |
+ "$(use_enable bzip2 bzip)" \ |
71 |
+ "$(use_enable zlib)" \ |
72 |
+ "$(use_enable debug)" \ |
73 |
+ "$(use_enable geoip geoip "$(usex geoipv2 mmdb legacy)")" \ |
74 |
+ "$(use_enable tokyocabinet tcb "$(usex btree btree memhash)")" \ |
75 |
+ "$(use_enable unicode utf8)" \ |
76 |
+ "$(use_with getline)" \ |
77 |
+ "$(use_with ssl openssl)" |
78 |
+} |
79 |
+ |
80 |
+pkg_preinst() { |
81 |
+ # Change path to GeoIP bases in config |
82 |
+ sed -e s':/usr/local:/usr:' -i "${ED%/}"/etc/goaccess/goaccess.conf || die "sed failed for goaccess.conf" |
83 |
+} |
84 |
+ |
85 |
+pkg_postinst() { |
86 |
+ ewarn "Upstream moved config to /etc/goaccess/goaccess.conf" |
87 |
+} |
88 |
|
89 |
diff --git a/net-analyzer/goaccess/goaccess-9999.ebuild b/net-analyzer/goaccess/goaccess-9999.ebuild |
90 |
new file mode 100644 |
91 |
index 00000000000..a5512dc51d4 |
92 |
--- /dev/null |
93 |
+++ b/net-analyzer/goaccess/goaccess-9999.ebuild |
94 |
@@ -0,0 +1,59 @@ |
95 |
+# Copyright 1999-2018 Gentoo Authors |
96 |
+# Distributed under the terms of the GNU General Public License v2 |
97 |
+ |
98 |
+EAPI=7 |
99 |
+ |
100 |
+EGIT_REPO_URI="https://github.com/allinurl/${PN}.git" |
101 |
+ |
102 |
+inherit autotools git-r3 |
103 |
+ |
104 |
+DESCRIPTION="A real-time web log analyzer and interactive viewer that runs in a terminal" |
105 |
+HOMEPAGE="https://goaccess.io" |
106 |
+SRC_URI="" |
107 |
+ |
108 |
+LICENSE="MIT" |
109 |
+SLOT="0" |
110 |
+KEYWORDS="" |
111 |
+IUSE="btree bzip2 debug geoip geoipv2 getline libressl tokyocabinet ssl unicode zlib" |
112 |
+REQUIRED_USE="btree? ( tokyocabinet ) bzip2? ( btree ) geoipv2? ( geoip ) zlib? ( btree )" |
113 |
+ |
114 |
+BDEPEND="virtual/pkgconfig" |
115 |
+RDEPEND="sys-libs/ncurses:0=[unicode?] |
116 |
+ geoip? ( |
117 |
+ !geoipv2? ( dev-libs/geoip ) |
118 |
+ geoipv2? ( dev-libs/libmaxminddb:0= ) |
119 |
+ ) |
120 |
+ !tokyocabinet? ( dev-libs/glib:2 ) |
121 |
+ tokyocabinet? ( |
122 |
+ dev-db/tokyocabinet[bzip2?,zlib?] |
123 |
+ btree? ( |
124 |
+ bzip2? ( app-arch/bzip2 ) |
125 |
+ zlib? ( sys-libs/zlib ) |
126 |
+ ) |
127 |
+ ) |
128 |
+ ssl? ( |
129 |
+ !libressl? ( dev-libs/openssl:0= ) |
130 |
+ libressl? ( dev-libs/libressl:0= ) |
131 |
+ )" |
132 |
+DEPEND="${RDEPEND}" |
133 |
+ |
134 |
+src_prepare() { |
135 |
+ default |
136 |
+ |
137 |
+ # Change path to GeoIP bases in config |
138 |
+ sed -i -e s':/usr/local:/usr:' config/goaccess.conf || die "sed failed for goaccess.conf" |
139 |
+ |
140 |
+ eautoreconf |
141 |
+} |
142 |
+ |
143 |
+src_configure() { |
144 |
+ econf \ |
145 |
+ "$(use_enable bzip2 bzip)" \ |
146 |
+ "$(use_enable zlib)" \ |
147 |
+ "$(use_enable debug)" \ |
148 |
+ "$(use_enable geoip geoip "$(usex geoipv2 mmdb legacy)")" \ |
149 |
+ "$(use_enable tokyocabinet tcb "$(usex btree btree memhash)")" \ |
150 |
+ "$(use_enable unicode utf8)" \ |
151 |
+ "$(use_with getline)" \ |
152 |
+ "$(use_with ssl openssl)" |
153 |
+} |