diff options
author | Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> | 2018-12-02 13:07:00 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2018-12-04 23:52:57 +0100 |
commit | 9d8358f52e1923d57e7809ea628f3fa373e1f921 (patch) | |
tree | e270a5ab64d0e7213249bc193743e5aa0c57b79e /net-analyzer/goaccess | |
parent | net-analyzer/goaccess: drop old ebuilds. (diff) | |
download | gentoo-9d8358f52e1923d57e7809ea628f3fa373e1f921.tar.gz gentoo-9d8358f52e1923d57e7809ea628f3fa373e1f921.tar.bz2 gentoo-9d8358f52e1923d57e7809ea628f3fa373e1f921.zip |
net-analyzer/goaccess: version bump to 1.3, moved to EAPI 7, live ebuild.
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'net-analyzer/goaccess')
-rw-r--r-- | net-analyzer/goaccess/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/goaccess/goaccess-1.3.ebuild | 55 | ||||
-rw-r--r-- | net-analyzer/goaccess/goaccess-9999.ebuild | 59 |
3 files changed, 115 insertions, 0 deletions
diff --git a/net-analyzer/goaccess/Manifest b/net-analyzer/goaccess/Manifest index d0134881f40f..39e756052332 100644 --- a/net-analyzer/goaccess/Manifest +++ b/net-analyzer/goaccess/Manifest @@ -1 +1,2 @@ DIST goaccess-1.2.tar.gz 423103 BLAKE2B 87c527a52db9fa69d6e6a02ffbda64a6a32e6214ca6bc1f2654e1451fe5d73e7caa02cf1416c93c511bee329b7885e4914fb7dfd37562ef5347ea3912d030c14 SHA512 bc31ef1e4c92608635856fa73e69b58267c161a7e3c6f2e3ca8860b862ed1c47575b93943dd975a5f8503774ee90ee0649d380563639e30908d876416638f889 +DIST goaccess-1.3.tar.gz 541374 BLAKE2B 55942e35d06f1467df9b80a3fc42211e867b08963a7334783c0279ba7b9e0fd8d6e197277bee780547a9b8f6264ae15844374604f6d7c1b3b57f57768c2b2019 SHA512 7ab8a42670c2009459eee6979cb14e32e7e776e89912077882652631d0ce6ff801fba46d91ab5c23af1229f000e220863e9b70336fcd9fe11521d0ae1fd3bde1 diff --git a/net-analyzer/goaccess/goaccess-1.3.ebuild b/net-analyzer/goaccess/goaccess-1.3.ebuild new file mode 100644 index 000000000000..a38a46ce6f72 --- /dev/null +++ b/net-analyzer/goaccess/goaccess-1.3.ebuild @@ -0,0 +1,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" +} diff --git a/net-analyzer/goaccess/goaccess-9999.ebuild b/net-analyzer/goaccess/goaccess-9999.ebuild new file mode 100644 index 000000000000..a5512dc51d48 --- /dev/null +++ b/net-analyzer/goaccess/goaccess-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +EGIT_REPO_URI="https://github.com/allinurl/${PN}.git" + +inherit autotools git-r3 + +DESCRIPTION="A real-time web log analyzer and interactive viewer that runs in a terminal" +HOMEPAGE="https://goaccess.io" +SRC_URI="" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +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_prepare() { + default + + # Change path to GeoIP bases in config + sed -i -e s':/usr/local:/usr:' config/goaccess.conf || die "sed failed for goaccess.conf" + + eautoreconf +} + +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)" +} |