2017-07-16 11:58:24 +02:00
|
|
|
Name: goaccess
|
|
|
|
|
Version: 1.2
|
2017-07-16 23:18:19 +02:00
|
|
|
Release: 3%{?dist}
|
2017-07-16 11:58:24 +02:00
|
|
|
Summary: Real-time web log analyzer and interactive viewer
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: https://goaccess.io/
|
|
|
|
|
Source0: http://tar.goaccess.io/%{name}-%{version}.tar.gz
|
2017-07-16 16:20:37 +02:00
|
|
|
Source1: %{name}.service
|
|
|
|
|
Source2: %{name}-get-logs.pl
|
|
|
|
|
Source3: %{name}-sysconfig
|
2017-07-16 23:18:19 +02:00
|
|
|
Source4: %{name}-systemd.conf
|
2017-07-16 11:58:24 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: GeoIP-devel
|
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
|
BuildRequires: tokyocabinet-devel
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
|
|
2017-07-16 16:20:37 +02:00
|
|
|
%if 0%{?using_systemd}
|
|
|
|
|
Requires(post): systemd-units
|
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
%endif
|
|
|
|
|
|
2017-07-16 11:58:24 +02:00
|
|
|
%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
|
|
|
|
|
%setup -q
|
|
|
|
|
# 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 \
|
2017-07-16 16:20:37 +02:00
|
|
|
--enable-geoip=legacy \
|
2017-07-16 11:58:24 +02:00
|
|
|
--enable-utf8 \
|
|
|
|
|
--enable-tcb=btree \
|
|
|
|
|
--with-getline \
|
|
|
|
|
--with-openssl \
|
|
|
|
|
--enable-bzip \
|
|
|
|
|
--enable-zlib
|
|
|
|
|
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
2017-07-16 16:20:37 +02:00
|
|
|
# install additional systemd service
|
|
|
|
|
install -D %{S:2} %{buildroot}%{_libexecdir}/%{name}-get-logs.pl
|
|
|
|
|
install -D %{S:1} %{buildroot}%{_unitdir}/%{name}.service
|
|
|
|
|
install -D %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
2017-07-16 23:18:19 +02:00
|
|
|
install -D %{S:4} %{buildroot}%{_sysconfdir}/%{name}-systemd.conf
|
2017-07-16 16:20:37 +02:00
|
|
|
install -d %{buildroot}%{_var}/www/html/%{name}
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%if 0%{?using_systemd}
|
|
|
|
|
%if 0%{?systemd_macro_scriptlet}
|
|
|
|
|
%systemd_post %{name}.service
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%if 0%{?using_systemd}
|
|
|
|
|
%if 0%{?systemd_macro_scriptlet}
|
|
|
|
|
%systemd_preun %{name}.service
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
2017-07-16 11:58:24 +02:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
|
%{_pkgdocdir}
|
2017-07-16 16:20:37 +02:00
|
|
|
%{_unitdir}/%{name}.service
|
|
|
|
|
%dir %{_var}/www/html/%{name}
|
|
|
|
|
%attr(755,-,-) %{_libexecdir}/%{name}-get-logs.pl
|
|
|
|
|
%config() %{_sysconfdir}/sysconfig/%{name}
|
2017-07-16 23:18:19 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}-systemd.conf
|
2017-07-16 11:58:24 +02:00
|
|
|
|
|
|
|
|
%changelog
|
2017-07-16 23:18:19 +02:00
|
|
|
* Sun Jul 16 2017 Daniel Steiner <dsteiner@redhat.com> - 1.2-3
|
|
|
|
|
- Live status enable with systemd
|
|
|
|
|
|
2017-07-16 16:20:37 +02:00
|
|
|
* Sun Jul 16 2017 Daniel Steiner <dsteiner@redhat.com> - 1.2-2
|
|
|
|
|
- Legacy GeoIP enabled.
|
|
|
|
|
|
2017-07-16 11:58:24 +02:00
|
|
|
* Sun Jul 16 2017 Daniel Steiner <dsteiner@redhat.com> - 1.2-1
|
|
|
|
|
- Initial release for Fedora 25.
|
|
|
|
|
|