Now, goaccess support mmdb not legacy geoip database

This commit is contained in:
2021-06-03 10:21:11 +02:00
parent d0ad37fed1
commit c7ec8e48ad
2 changed files with 88 additions and 25 deletions

View File

@@ -0,0 +1,62 @@
# binlog funtion will be deprecated in future:
%define mysqlbinlog 0
%define pxc_cluster 0
Name: mydumper
Summary: mydumper and myloader MySQL backup tools for PXC cluster 8.0
Version: 0.10.5
Release: 1%{?dist}
Group: Applications/Databases
License: GPL
Vendor: Max Bubenick
URL: https://github.com/maxbube/mydumper
Source: mydumper-%{version}.tar.gz
BuildRequires: glib2-devel openssl-devel pcre-devel zlib-devel
%if %pxc_cluster == 1
BuildRequires: percona-xtradb-cluster-devel
%else
BuildRequires: percona-server-devel
%endif
BuildRequires: mysql-devel >= 8.0
AutoReq: no
%description
This package provides mydumper and myloader MySQL backup tools.
mydumper is a tool used for backing up MySQL database servers much
faster than the mysqldump tool distributed with MySQL. It also has the
capability to retrieve the binary logs from the remote server at the same time
as the dump itself. The advantages of mydumper are: parallelism,
easier to manage output, consistency, manageability.
myloader is a tool used for multi-threaded restoration of mydumper backups.
%prep
%setup -q
%build
%define debug_package %{nil}
%if %mysqlbinlog == 1
cmake . -DWITH_BINLOG=ON -DWITH_SSL=ON -DCMAKE_INSTALL_PREFIX=%{_prefix}
%else
cmake . -DWITH_BINLOG=OFF -DWITH_SSL=ON -DCMAKE_INSTALL_PREFIX=%{_prefix}
%endif
make
%install
install -m 0755 -d ${RPM_BUILD_ROOT}%{_bindir}
install -m 0555 mydumper ${RPM_BUILD_ROOT}%{_bindir}
install -m 0555 myloader ${RPM_BUILD_ROOT}%{_bindir}
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root,-)
%{_bindir}/*
%changelog
* Wed May 26 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Initial build for CentOS 8.

View File

@@ -1,23 +1,28 @@
%bcond_without lto
%bcond_without openssl
%if %{with lto}
%global optflags %{optflags} -flto
%global build_ldflags %{build_ldflags} -flto
%endif
Name: goaccess Name: goaccess
Version: 1.4.1 Version: 1.5
Release: 2%{?dist} Release: 99%{?dist}
Summary: Real-time web log analyzer and interactive viewer Summary: Real-time web log analyzer and interactive viewer
License: GPLv2+ License: GPLv2+
URL: https://goaccess.io/ URL: https://goaccess.io/
Source0: http://tar.goaccess.io/%{name}-%{version}.tar.gz Source0: https://tar.goaccess.io/%{name}-%{version}.tar.gz
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: gcc BuildRequires: gcc
BuildRequires: GeoIP-devel BuildRequires: GeoIP-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: tokyocabinet-devel BuildRequires: gettext-devel
BuildRequires: zlib-devel
BuildRequires: bzip2-devel
BuildRequires: gettext-devel
BuildRequires: libmaxminddb-devel
%if %{with openssl} %if %{with openssl}
BuildRequires: openssl-devel BuildRequires: openssl-devel
%endif %endif
BuildRequires: make
%description %description
GoAccess is a real-time web log analyzer and interactive viewer that runs in a GoAccess is a real-time web log analyzer and interactive viewer that runs in a
@@ -28,7 +33,7 @@ Features:
GoAccess parses the specified web log file and outputs the data to terminal. GoAccess parses the specified web log file and outputs the data to terminal.
* General statistics, bandwidth, etc. * General statistics, bandwidth, etc.
* Time taken to serve the request (useful to track pages that are slowing down. * Time taken to serve the request (useful to track pages that are slowing down
your site). your site).
* Metrics for cumulative, average and slowest running requests. * Metrics for cumulative, average and slowest running requests.
* Top visitors. * Top visitors.
@@ -59,20 +64,20 @@ not limited to:
* W3C format (IIS). * W3C format (IIS).
%prep %prep
%setup -q %autosetup
# Prevent flags being overridden again and again. # Prevent flags being overridden again and again.
#sed -i 's|-pthread|$CFLAGS \0|' configure.ac #sed -i 's|-pthread|$CFLAGS \0|' configure.ac
sed -i '/-pthread/d' configure.ac sed -i '/-pthread/d' configure.ac
%build %build
autoreconf -fiv # autoreconf -fiv
# %%configure --enable-debug --enable-geoip --enable-utf8 --enable-tcb=btree --with-getline
%configure \ %configure \
--enable-debug \ --enable-debug \
--enable-geoip=legacy \ --enable-geoip=mmdb \
--enable-geoip=mmdb \ --enable-utf8 \
--enable-utf8 \ --with-getline \
--with-getline \ %{?with_openssl: --with-openssl}
--with-openssl
%make_build %make_build
%install %install
@@ -88,10 +93,6 @@ autoreconf -fiv
%{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}.1*
%changelog %changelog
* Sat Oct 31 2020 Daniel Steiner <daniel.steiner@dsteiner.ch> * Thu Jun 3 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
- First build for Fedora 33. - New build for Fedora 34 (1.5)
* Fri Aug 28 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- mmdb enabled for new GeoLite2 dBs.
- First, initial version for Fedora 32 (1.4.1)