public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/goaccess/, net-analyzer/goaccess/files/
@ 2018-12-04 22:53 Patrice Clement
  0 siblings, 0 replies; 2+ messages in thread
From: Patrice Clement @ 2018-12-04 22:53 UTC (permalink / raw
  To: gentoo-commits

commit:     be89232ad6c497237520fd9f386344641ace8535
Author:     Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
AuthorDate: Sun Dec  2 11:05:06 2018 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Dec  4 22:52:56 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be89232a

net-analyzer/goaccess: drop old ebuilds.

Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/10538
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 net-analyzer/goaccess/Manifest                     |  5 ---
 .../goaccess/files/goaccess-0.6.1-CFLAGS.patch     | 10 -----
 .../goaccess/files/goaccess-0.6.1-tinfo.patch      | 32 -------------
 net-analyzer/goaccess/goaccess-0.5-r1.ebuild       | 44 ------------------
 net-analyzer/goaccess/goaccess-0.6.1.ebuild        | 43 ------------------
 net-analyzer/goaccess/goaccess-0.8.5.ebuild        | 47 -------------------
 net-analyzer/goaccess/goaccess-0.9.ebuild          | 52 ----------------------
 net-analyzer/goaccess/goaccess-1.1.1.ebuild        | 50 ---------------------
 net-analyzer/goaccess/metadata.xml                 |  3 --
 9 files changed, 286 deletions(-)

diff --git a/net-analyzer/goaccess/Manifest b/net-analyzer/goaccess/Manifest
index 8085c37d3ab..d0134881f40 100644
--- a/net-analyzer/goaccess/Manifest
+++ b/net-analyzer/goaccess/Manifest
@@ -1,6 +1 @@
-DIST goaccess-0.5.tar.gz 127068 BLAKE2B 0c06668b5be47920273126f47645000d4ea87f7af7946d7e6b3302e609309e534f40195239d7205486840c28e268306a77eeec53884325777999ef70cfcd5a2b SHA512 24c59efca896e24f89aae5f12391398b8649822a5e07ee035a1c265a8987d1ba493155db12b7189c9d637891c81da6414919c9f9f6795831234810f021bb3999
-DIST goaccess-0.6.1.tar.gz 150264 BLAKE2B 9d3d3db8d58e1060d53a5ac2a2e577c24e91640508086622e7c20c88524370308d84b5f4bc21101999fe38a036a990c9712dc74e4ded41410f295881ae0ddde9 SHA512 67712e4af16c6e039ca46f6f8d8302a58be1e0cfd0c76930068c03a9989c35b58b61f7b1e6a9e79cbb978c8f492b80782b8c7b894abc2e067f0a520e2981f98b
-DIST goaccess-0.8.5.tar.gz 189006 BLAKE2B 85faefd62a87a10c703c3bc287e97ba34fcc58b3ff0ea2aa8ad8b92cbf9f968b91d2261b3702efb16aa8344f53f550f5c4c2a7e29edf8f66a10fd5ff3f2c1471 SHA512 736ae69d0c3bbbaf1d06b287c2d600aae1a72255361c9bb40d1c74986932a771c2b401126e75f22ad4be72f6dc053efd262c40ad40cd62efc57c4461d5481c63
-DIST goaccess-0.9.tar.gz 213119 BLAKE2B 447b0301921b069a1234aa7fb69b2bf1b9f5e8974657796b45c202bcc378d8fee07b3e46e5d1bf7f5f5ca6ba8031b27f670360b67d94e2cb5018a05ad71d3156 SHA512 c25703fa31dd673bdb3463e3c5055ba3452f1fdb452c63114663d9dfb28b95ddb4cd89b03fd4a9fdbabd0efebc2e3ab35238fd15bc46727f794d04ba77fc072c
-DIST goaccess-1.1.1.tar.gz 412635 BLAKE2B 947ecd91d74216de61aadadd2317b9bf4b32eab96181e79eb21844e5cd0887f005f139d5fafd4e59c9a18b2faa0c13f40d267f4b2b174a3bc57c7280d892f7d2 SHA512 5ceb21754721603fa6422436fcac158bf3ea0ec54680851ceb6616a3385a2ad1ce38670b3cea62e14178e71c32999260fefbc29a82b115b1a1a30010879184d2
 DIST goaccess-1.2.tar.gz 423103 BLAKE2B 87c527a52db9fa69d6e6a02ffbda64a6a32e6214ca6bc1f2654e1451fe5d73e7caa02cf1416c93c511bee329b7885e4914fb7dfd37562ef5347ea3912d030c14 SHA512 bc31ef1e4c92608635856fa73e69b58267c161a7e3c6f2e3ca8860b862ed1c47575b93943dd975a5f8503774ee90ee0649d380563639e30908d876416638f889

diff --git a/net-analyzer/goaccess/files/goaccess-0.6.1-CFLAGS.patch b/net-analyzer/goaccess/files/goaccess-0.6.1-CFLAGS.patch
deleted file mode 100644
index 909b38f5730..00000000000
--- a/net-analyzer/goaccess/files/goaccess-0.6.1-CFLAGS.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -2,6 +2,6 @@
- bin_PROGRAMS = goaccess
- goaccess_SOURCES = output.c output.h settings.c settings.h error.c error.h xmalloc.c xmalloc.h commons.c commons.h goaccess.c parser.c parser.h ui.c ui.h util.c util.h gdashboard.c gdashboard.h gdns.c gdns.h gmenu.c gmenu.h goaccess.h
- 
--AM_CFLAGS = -g -Wall @GLIB2_CFLAGS@
-+AM_CFLAGS = -Wall @GLIB2_CFLAGS@
- goaccess_LDADD = -lm
- dist_man_MANS = goaccess.1

diff --git a/net-analyzer/goaccess/files/goaccess-0.6.1-tinfo.patch b/net-analyzer/goaccess/files/goaccess-0.6.1-tinfo.patch
deleted file mode 100644
index 76d6cbcbcf7..00000000000
--- a/net-analyzer/goaccess/files/goaccess-0.6.1-tinfo.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -19,22 +19,20 @@
- AC_ARG_ENABLE(geoip,--enable-geoip Enable GeoIP country lookup, USE_GEOIP="yes")
- AC_ARG_ENABLE(utf8,--enable-utf8 Enable UTF-8 support for wide characters, USE_UTF8="yes")
- 
--if test "$USE_GEOIP" = "yes"; then
--   AC_CHECK_LIB([GeoIP], [GeoIP_new], [], [AC_MSG_ERROR([libgeoip-dev is missing])])
--   CFLAGS="-lGeoIP"
-+if test x"$USE_GEOIP" = "xyes"; then
-+   AC_CHECK_LIB([GeoIP], [GeoIP_new], , [AC_MSG_ERROR([libgeoip-dev is missing])])
- fi
- 
--if test "$USE_UTF8" = "yes"; then
--   AC_CHECK_LIB([ncursesw], [mvaddwstr], [], [AC_MSG_ERROR([libncursesw5-dev is missing])])
--   CFLAGS="-lncursesw"
-+if test x"$USE_UTF8" = "xyes"; then
-+   AC_CHECK_LIB([ncursesw], [mvaddwstr], , [AC_MSG_ERROR([libncursesw5-dev is missing])])
-+   AC_SEARCH_LIBS([stdscr], [tinfow], ,[AC_MSG_ERROR([Cannot find a library providing stdscr])])
- else
--   AC_CHECK_LIB([ncurses], [refresh], [], [AC_MSG_ERROR([libncurses5-dev is missing])])
--   CFLAGS="-lncurses"
-+   AC_CHECK_LIB([ncurses], [refresh], , [AC_MSG_ERROR([libncurses5-dev is missing])])
-+   AC_SEARCH_LIBS([stdscr], [tinfo], ,[AC_MSG_ERROR([Cannot find a library providing stdscr])])
- fi
- 
- # pthread
- AC_CHECK_LIB([pthread], [pthread_create], [], [AC_MSG_ERROR([pthread is missing])])
--CFLAGS="-pthread"
- 
- # Checks for libraries.
- AC_CHECK_LIB([glib-2.0], [g_free], [], [AC_MSG_ERROR([glib-2.x is missing])])

diff --git a/net-analyzer/goaccess/goaccess-0.5-r1.ebuild b/net-analyzer/goaccess/goaccess-0.5-r1.ebuild
deleted file mode 100644
index efe48d4f17d..00000000000
--- a/net-analyzer/goaccess/goaccess-0.5-r1.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-AUTOTOOLS_AUTORECONF=1
-inherit autotools-utils
-
-DESCRIPTION="A real-time Apache log analyzer and interactive viewer that runs in a terminal"
-HOMEPAGE="http://goaccess.prosoftcorp.com"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux"
-IUSE="geoip unicode"
-
-RDEPEND="
-	dev-libs/glib:2
-	sys-libs/ncurses:0=[unicode?]
-	geoip? ( dev-libs/geoip )
-"
-DEPEND="${RDEPEND}
-	virtual/pkgconfig
-"
-
-src_prepare() {
-	# respect CFLAGS, bug #451806
-	sed -i -e '/AM_CFLAGS/s/-g//' Makefile.am || die 'sed failed'
-	autotools-utils_src_prepare
-}
-
-src_configure() {
-	# configure does not properly recognise '--disable-something'
-	local myeconfargs=(
-		$(usex geoip '--enable-geoip' '' '' '')
-		$(usex unicode '--enable-utf8' '' '' '')
-	)
-	autotools-utils_src_configure
-}
-
-src_compile() {
-	autotools-utils_src_compile CFLAGS="${CFLAGS}"
-}

diff --git a/net-analyzer/goaccess/goaccess-0.6.1.ebuild b/net-analyzer/goaccess/goaccess-0.6.1.ebuild
deleted file mode 100644
index 76e6117c2e5..00000000000
--- a/net-analyzer/goaccess/goaccess-0.6.1.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-AUTOTOOLS_AUTORECONF=1
-inherit autotools-utils
-
-DESCRIPTION="A real-time Apache log analyzer and interactive viewer that runs in a terminal"
-HOMEPAGE="http://goaccess.prosoftcorp.com"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux"
-IUSE="geoip unicode"
-
-RDEPEND="
-	dev-libs/glib:2
-	sys-libs/ncurses:0=[unicode?]
-	geoip? ( dev-libs/geoip )
-"
-DEPEND="${RDEPEND}
-	virtual/pkgconfig
-"
-
-PATCHES=(
-	"${FILESDIR}"/${P}-CFLAGS.patch
-	"${FILESDIR}"/${P}-tinfo.patch
-)
-
-src_configure() {
-	# configure does not properly recognise '--disable-something'
-	local myeconfargs=(
-		$(usex geoip '--enable-geoip' '' '' '')
-		$(usex unicode '--enable-utf8' '' '' '')
-	)
-	autotools-utils_src_configure
-}
-
-src_compile() {
-	autotools-utils_src_compile CFLAGS="${CFLAGS}"
-}

diff --git a/net-analyzer/goaccess/goaccess-0.8.5.ebuild b/net-analyzer/goaccess/goaccess-0.8.5.ebuild
deleted file mode 100644
index 6e14a77788e..00000000000
--- a/net-analyzer/goaccess/goaccess-0.8.5.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils
-
-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="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux"
-
-IUSE="btree debug geoip bzip2 memhash unicode zlib"
-
-REQUIRED_USE="btree? ( !memhash )"
-
-RDEPEND="
-	dev-libs/glib:2
-	sys-libs/ncurses:0=[unicode?]
-	geoip? ( dev-libs/geoip )
-	btree? ( dev-db/tokyocabinet )
-	memhash? ( dev-db/tokyocabinet )
-	zlib? ( sys-libs/zlib )
-	bzip2? ( app-arch/bzip2 )"
-DEPEND="${RDEPEND}
-	virtual/pkgconfig"
-
-src_prepare() {
-	# Fix path to GeoIP bases in config
-	sed -e s':/usr/local:/usr:' -i config/goaccess.conf || die
-}
-
-src_configure() {
-	econf \
-		$(use_enable debug) \
-		$(use_enable geoip) \
-		$(use_enable bzip2 bzip) \
-		$(use_enable unicode utf8) \
-		$(use_enable zlib) \
-		$(use memhash && echo "--enable-tcb=memhash") \
-		$(use btree && echo "--enable-tcb=btree")
-
-	epatch_user
-}

diff --git a/net-analyzer/goaccess/goaccess-0.9.ebuild b/net-analyzer/goaccess/goaccess-0.9.ebuild
deleted file mode 100644
index 06d537e9023..00000000000
--- a/net-analyzer/goaccess/goaccess-0.9.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils
-
-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="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux"
-
-IUSE="btree debug geoip tokyocabinet unicode"
-
-REQUIRED_USE="btree? ( tokyocabinet )"
-
-RDEPEND="
-	sys-libs/ncurses:0=[unicode?]
-	geoip? ( dev-libs/geoip )
-	!tokyocabinet? ( dev-libs/glib:2 )
-	tokyocabinet? (
-		dev-db/tokyocabinet
-		btree? (
-			app-arch/bzip2
-			sys-libs/zlib
-		)
-	)
-"
-DEPEND="${RDEPEND}
-	virtual/pkgconfig
-"
-
-src_prepare() {
-	epatch_user
-
-	# Fix path to GeoIP bases in config
-	sed -e s':/usr/local:/usr:' -i config/goaccess.conf || die
-}
-
-src_configure() {
-	econf \
-		$(use_enable debug) \
-		$(use_enable geoip) \
-		$(use_enable unicode utf8) \
-		$(use_enable tokyocabinet tcb) \
-		$(use_enable btree bzip) \
-		$(use_enable btree zlib) \
-		$(usex tokyocabinet "--enable-tcb=$(usex btree btree memhash)" '')
-}

diff --git a/net-analyzer/goaccess/goaccess-1.1.1.ebuild b/net-analyzer/goaccess/goaccess-1.1.1.ebuild
deleted file mode 100644
index a1184f2bb1a..00000000000
--- a/net-analyzer/goaccess/goaccess-1.1.1.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# 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"
-}

diff --git a/net-analyzer/goaccess/metadata.xml b/net-analyzer/goaccess/metadata.xml
index f0fb091e2b5..708d4dfe667 100644
--- a/net-analyzer/goaccess/metadata.xml
+++ b/net-analyzer/goaccess/metadata.xml
@@ -19,12 +19,9 @@
 		<flag name="btree">Enable Tokyo Cabinet's on-disk B+ Tree database backend</flag>
 		<flag name="geoipv2">Enable support for GeoIP2 through <pkg>dev-libs/libmaxminddb</pkg></flag>
 		<flag name="getline">Use GNU getline() to parse full line requests</flag>
-		<flag name="memhash">Enable Tokyo Cabinet's on-memory hash database backend</flag>
 		<flag name="tokyocabinet">Enable Tokyo Cabinet's on-memory hash database backend</flag>
 	</use>
 	<upstream>
-		<doc>http://goaccess.io/faq</doc>
-		<bugs-to>mailto:goaccess@prosoftcorp.com</bugs-to>
 		<remote-id type="github">allinurl/goaccess</remote-id>
 	</upstream>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/goaccess/, net-analyzer/goaccess/files/
@ 2022-08-17 16:43 Joonas Niilola
  0 siblings, 0 replies; 2+ messages in thread
From: Joonas Niilola @ 2022-08-17 16:43 UTC (permalink / raw
  To: gentoo-commits

commit:     0140b6a984244cf0ca79878be814e8c7811ae059
Author:     Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
AuthorDate: Mon Aug  1 07:23:06 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Aug 17 16:43:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0140b6a9

net-analyzer/goaccess: version bump to 1.6.2

Closes: https://bugs.gentoo.org/842240

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua>
Closes: https://github.com/gentoo/gentoo/pull/26693
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-analyzer/goaccess/Manifest               |  1 +
 net-analyzer/goaccess/files/goaccess.confd   |  8 ++++
 net-analyzer/goaccess/files/goaccess.initd   | 14 ++++++
 net-analyzer/goaccess/files/goaccess.service | 15 ++++++
 net-analyzer/goaccess/files/goaccess.tmpfile |  1 +
 net-analyzer/goaccess/goaccess-1.6.2.ebuild  | 70 ++++++++++++++++++++++++++++
 6 files changed, 109 insertions(+)

diff --git a/net-analyzer/goaccess/Manifest b/net-analyzer/goaccess/Manifest
index 8449602d0ea3..66d5ef3979d3 100644
--- a/net-analyzer/goaccess/Manifest
+++ b/net-analyzer/goaccess/Manifest
@@ -1 +1,2 @@
 DIST goaccess-1.4.2.tar.gz 633162 BLAKE2B 4da268bb051114893b480e4eef18e007ccffb9b61ae49cc9a96622864716a44793f0895b5d27685e1b5e22c33f1bdd256dc148d26c7b6fefbd982a3f8fdf1960 SHA512 14bc5a08c2e6bb1db8d664a224b778603a358cf3a52a341a3a3e04e84337d0bb574892cb5005dc62098a8a6f0a834d1014479c29593714fdd6a87cedb3f3fb38
+DIST goaccess-1.6.2.tar.gz 658679 BLAKE2B 93aea3e4142ec2fa8ea4b1600bac4bcdf28f845904935c1b2e88e720e3ba342fd07f7f22ac05b8010932263e708ecdf6c516f901b690532a395e337494a69486 SHA512 5299df01fd06777bf85da12e4d4ec3b9eca866bbab6cac64f3d674b0b3ecc90dc4c28f5bc2c94064b7654d381aa873626e98ec9f26fc2b546380bb9e40077a85

diff --git a/net-analyzer/goaccess/files/goaccess.confd b/net-analyzer/goaccess/files/goaccess.confd
new file mode 100644
index 000000000000..4ff75a1a4ff6
--- /dev/null
+++ b/net-analyzer/goaccess/files/goaccess.confd
@@ -0,0 +1,8 @@
+# Config file for /etc/init.d/goaccess
+
+# Various options.
+# run `goaccess --help` for valid cmdline options
+OPTS="--user-name=goaccess --pid-file=/run/goaccess/goaccess.pid -o /var/lib/goaccess/goaccess.html -l /var/log/goaccess/goaccess.log"
+
+# GoAccess config file
+#CONFIG="/etc/goaccess/goaccess.conf"

diff --git a/net-analyzer/goaccess/files/goaccess.initd b/net-analyzer/goaccess/files/goaccess.initd
new file mode 100644
index 000000000000..be0059588396
--- /dev/null
+++ b/net-analyzer/goaccess/files/goaccess.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/goaccess"
+name="GoAccess"
+description="Real-time web log analyzer"
+config="${CONFIG:-/etc/goaccess/goaccess.conf}"
+command_args="--real-time-html --daemonize -p $config ${OPTS}"
+start_stop_daemon_args="-q"
+
+depend() {
+	need net
+}

diff --git a/net-analyzer/goaccess/files/goaccess.service b/net-analyzer/goaccess/files/goaccess.service
new file mode 100644
index 000000000000..8fab5f9b7c56
--- /dev/null
+++ b/net-analyzer/goaccess/files/goaccess.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Real-time web log analyzer
+After=network.target
+
+[Service]
+Type=simple
+User=root
+Group=root
+Restart=always
+ExecStart=/usr/bin/goaccess --real-time-html --daemonize -p /etc/goaccess/goaccess.conf --user-name=goaccess -o /var/lib/goaccess/goaccess.html -l /var/log/goaccess/goaccess.log
+StandardOutput=null
+StandardError=null
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-analyzer/goaccess/files/goaccess.tmpfile b/net-analyzer/goaccess/files/goaccess.tmpfile
new file mode 100644
index 000000000000..caee9ffff853
--- /dev/null
+++ b/net-analyzer/goaccess/files/goaccess.tmpfile
@@ -0,0 +1 @@
+d	/run/goaccess		0755	goaccess	goaccess

diff --git a/net-analyzer/goaccess/goaccess-1.6.2.ebuild b/net-analyzer/goaccess/goaccess-1.6.2.ebuild
new file mode 100644
index 000000000000..036459cecdb8
--- /dev/null
+++ b/net-analyzer/goaccess/goaccess-1.6.2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools systemd tmpfiles
+
+DESCRIPTION="A real-time web log analyzer and interactive viewer 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="debug geoip geoipv2 getline ssl unicode"
+REQUIRED_USE="geoipv2? ( geoip )"
+
+RDEPEND="acct-user/goaccess
+	sys-libs/ncurses:=[unicode(+)?]
+	geoip? (
+		!geoipv2? ( dev-libs/geoip )
+		geoipv2? ( dev-libs/libmaxminddb:0= )
+	)
+	ssl? ( dev-libs/openssl:0= )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+	default
+
+	# Enable log-format, define log file and db path,
+	# change path to GeoIP bases in config
+	sed -i  -e '/log-format COMBINED/s/#//' \
+		-e '/log-file/s/#//' \
+		-e '/db-path/s|tmp|var/lib/goaccess|' \
+		-e '/geoip-database/s|local/||' config/goaccess.conf \
+		|| die "sed failed for goaccess.conf"
+
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+		"$(use_enable debug)" \
+		"$(use_enable geoip geoip "$(usex geoipv2 mmdb legacy)")" \
+		"$(use_enable unicode utf8)" \
+		"$(use_with getline)" \
+		"$(use_with ssl openssl)"
+}
+
+src_install() {
+	default
+
+	newinitd "${FILESDIR}"/goaccess.initd goaccess
+	newconfd "${FILESDIR}"/goaccess.confd goaccess
+	systemd_dounit "${FILESDIR}"/goaccess.service
+	newtmpfiles "${FILESDIR}"/goaccess.tmpfile goaccess.conf
+
+	diropts -o goaccess -g goaccess -m 0700
+	keepdir /var/lib/goaccess/db /var/log/goaccess
+}
+
+pkg_postinst() {
+	if ! has_version net-misc/geoipupdate ; then
+		einfo "You should consider to install net-misc/geoipupdate"
+		einfo "to be able to use GeoIP databases"
+	fi
+
+	tmpfiles_process goaccess.conf
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-17 16:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-04 22:53 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/goaccess/, net-analyzer/goaccess/files/ Patrice Clement
  -- strict thread matches above, loose matches on Subject: below --
2022-08-17 16:43 Joonas Niilola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox