[packages/goaccess] Initial
arekm
arekm at pld-linux.org
Mon Oct 12 13:17:37 CEST 2026
commit d5e685c1d2e6b887fc048564c8515a8235e5a138
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Oct 12 13:13:59 2026 +0200
Initial
goaccess-conf.patch | 23 ++++++++++++++++
goaccess-rdynamic.patch | 15 +++++++++++
goaccess.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 110 insertions(+)
---
diff --git a/goaccess.spec b/goaccess.spec
new file mode 100644
index 0000000..15f2fc3
--- /dev/null
+++ b/goaccess.spec
@@ -0,0 +1,72 @@
+Summary: Real-time web log analyzer and interactive viewer
+Summary(pl.UTF-8): Analizator logów serwera WWW działający w czasie rzeczywistym
+Name: goaccess
+Version: 1.12
+Release: 1
+License: MIT, Apache v2.0 (hogan.js), ISC (d3.js, topojson)
+Group: Networking/Utilities
+Source0: https://tar.goaccess.io/%{name}-%{version}.tar.gz
+# Source0-md5: cab0547c687eee584d83c1cce9b7989c
+Patch0: %{name}-conf.patch
+Patch1: %{name}-rdynamic.patch
+URL: https://goaccess.io/
+BuildRequires: autoconf >= 2.69
+BuildRequires: automake
+BuildRequires: libmaxminddb-devel
+BuildRequires: ncurses-devel
+BuildRequires: openssl-devel
+BuildRequires: zlib-devel
+Suggests: dbip-city-lite-GeoLite2-compat
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+GoAccess is a real-time web log analyzer and interactive viewer that
+runs in a terminal or through a browser. It provides fast and
+valuable HTTP statistics for system administrators that require a
+visual server report on the fly.
+
+%description -l pl.UTF-8
+GoAccess to działający w czasie rzeczywistym analizator logów serwera
+WWW. Wyniki można przeglądać interaktywnie w terminalu albo jako
+raport HTML w przeglądarce WWW. Program szybko dostarcza statystyki
+HTTP administratorom, którzy potrzebują na bieżąco czytelnego raportu
+o pracy serwera.
+
+%prep
+%setup -q
+%patch -P0 -p1
+%patch -P1 -p1
+
+%build
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --enable-geoip=mmdb \
+ --enable-utf8 \
+ --with-getline \
+ --with-openssl \
+ --with-zlib
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README.md TODO
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/browsers.list
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/goaccess.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/podcast.list
+%attr(755,root,root) %{_bindir}/goaccess
+%{_mandir}/man1/goaccess.1*
diff --git a/goaccess-conf.patch b/goaccess-conf.patch
new file mode 100644
index 0000000..be36d46
--- /dev/null
+++ b/goaccess-conf.patch
@@ -0,0 +1,23 @@
+# PLD paths in the commented examples: httpd log dir, system GeoIP databases
+--- goaccess-1.12.orig/config/goaccess.conf 2026-09-16 03:12:21.000000000 +0200
++++ goaccess-1.12/config/goaccess.conf 2026-10-12 12:52:44.150659859 +0200
+@@ -395,7 +395,7 @@
+ # Specify the path to the input log file. If set, it will take
+ # priority over -f from the command line.
+ #
+-#log-file /var/log/apache2/access.log
++#log-file /var/log/httpd/access_log
+
+ # Send all debug messages to the specified file.
+ #
+@@ -786,8 +786,8 @@
+ # Download the GeoLite2-ASN.mmdb.gz
+ # gunzip GeoLite2-ASN.mmdb.gz
+ #
+-#geoip-database /usr/local/share/GeoIP/GeoLite2-City.mmdb
+-#geoip-database /usr/local/share/GeoIP/GeoLite2-ASN.mmdb
++#geoip-database /usr/share/GeoIP/GeoLite2-City.mmdb
++#geoip-database /usr/share/GeoIP/GeoLite2-ASN.mmdb
+
+ # Exclude requests whose client address resolves to an ASN. This option can be
+ # repeated and accepts either 8075 or AS8075. It requires a GeoIP2 ASN database
diff --git a/goaccess-rdynamic.patch b/goaccess-rdynamic.patch
new file mode 100644
index 0000000..6996222
--- /dev/null
+++ b/goaccess-rdynamic.patch
@@ -0,0 +1,15 @@
+# AM_LDFLAGS = -lz drops -rdynamic, losing symbol names in the crash backtrace;
+# AC_CHECK_LIB already puts -lz in LIBS
+--- goaccess-1.12.orig/Makefile.am 2026-08-30 03:37:41.000000000 +0200
++++ goaccess-1.12/Makefile.am 2026-10-12 12:55:41.292971482 +0200
+@@ -269,10 +269,6 @@
+ AM_LDFLAGS = -rdynamic
+ endif
+
+-if WITH_ZLIB
+-AM_LDFLAGS = -lz
+-endif
+-
+ goaccess_LDADD = -lm
+
+ AM_CFLAGS += -Wall -Wextra -Wnested-externs -Wformat=2 -g
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/goaccess.git/commitdiff/d5e685c1d2e6b887fc048564c8515a8235e5a138
More information about the pld-cvs-commit
mailing list