From ec7709e792693c9c98c6e4eb19dd80ff3599ec8b Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Wed, 2 Aug 2023 06:42:55 +0200 Subject: [PATCH] Gitea, Zabbix and GoAccess updates --- fedora/SPECS/goaccess.spec | 110 +++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 fedora/SPECS/goaccess.spec diff --git a/fedora/SPECS/goaccess.spec b/fedora/SPECS/goaccess.spec new file mode 100644 index 0000000..c140e4b --- /dev/null +++ b/fedora/SPECS/goaccess.spec @@ -0,0 +1,110 @@ +%bcond_without lto +%bcond_without openssl + +%if %{with lto} +%global optflags %{optflags} -flto +%global build_ldflags %{build_ldflags} -flto +%endif + +Name: goaccess +Version: 1.7.2 +Release: 99%{?dist} +Summary: Real-time web log analyzer and interactive viewer +License: GPLv2+ +URL: https://goaccess.io/ +Source0: https://tar.goaccess.io/%{name}-%{version}.tar.gz +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc +BuildRequires: GeoIP-devel +BuildRequires: ncurses-devel +BuildRequires: gettext-devel +%if %{with openssl} +BuildRequires: openssl-devel +%endif +BuildRequires: make + +%description +GoAccess is a real-time web log analyzer and interactive viewer that runs in a +terminal in *nix systems. It provides fast and valuable HTTP statistics for +system administrators that require a visual server report on the fly. + +Features: +GoAccess parses the specified web log file and outputs the data to terminal. + +* General statistics, bandwidth, etc. +* Time taken to serve the request (useful to track pages that are slowing down +your site). +* Metrics for cumulative, average and slowest running requests. +* Top visitors. +* Requested files & static files. +* 404 or Not Found. +* Hosts, Reverse DNS, IP Location. +* Operating Systems. +* Browsers and Spiders. +* Referring Sites & URLs. +* Keyphrases. +* Geo Location - Continent/Country/City. +* Visitors Time Distribution. +* HTTP Status Codes. +* Ability to output JSON and CSV. +* Tailor GoAccess to suit your own color taste/schemes. +* Support for large datasets + data persistence. +* Support for IPv6. +* Output statistics to HTML. +and more... + +GoAccess allows any custom log format string. Predefined options include, but +not limited to: + +* Amazon CloudFront (Download Distribution). +* AWS Elastic Load Balancing. +* Apache/Nginx Common/Combined + VHosts. +* Google Cloud Storage. +* W3C format (IIS). + +%prep +%autosetup +# Prevent flags being overridden again and again. +#sed -i 's|-pthread|$CFLAGS \0|' configure.ac +sed -i '/-pthread/d' configure.ac + +%build +# autoreconf -fiv +# %%configure --enable-debug --enable-geoip --enable-utf8 --enable-tcb=btree --with-getline +%configure \ + --enable-debug \ + --enable-geoip=mmdb \ + --enable-utf8 \ + --with-getline \ + %{?with_openssl: --with-openssl} +%make_build + +%install +%make_install +%find_lang %{name} + +%files -f %{name}.lang +%license COPYING +%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf +%config(noreplace) %{_sysconfdir}/%{name}/browsers.list +%config(noreplace) %{_sysconfdir}/%{name}/podcast.list +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* + +%changelog +* Fri Jun 24 2022 Daniel Steiner +- Update to 1.6. + +* Fri Feb 18 2022 Daniel Steiner +- Update to 1.5.5. + +* Mon Dec 27 2021 Daniel Steiner +- Update to 1.5.4. + +* Fri Sep 10 2021 Daniel Steiner +- Update to 1.5.1. + +* Thu Jun 3 2021 Daniel Steiner +- New build for Fedora 34 (1.5) +