Some fixes and systemd service added.
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
Name: goaccess
|
Name: goaccess
|
||||||
Version: 1.2
|
Version: 1.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?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: http://tar.goaccess.io/%{name}-%{version}.tar.gz
|
||||||
|
Source1: %{name}.service
|
||||||
|
Source2: %{name}-get-logs.pl
|
||||||
|
Source3: %{name}-sysconfig
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@@ -14,6 +17,12 @@ BuildRequires: tokyocabinet-devel
|
|||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: bzip2-devel
|
BuildRequires: bzip2-devel
|
||||||
|
|
||||||
|
%if 0%{?using_systemd}
|
||||||
|
Requires(post): systemd-units
|
||||||
|
Requires(preun): systemd-units
|
||||||
|
Requires(postun): systemd-units
|
||||||
|
%endif
|
||||||
|
|
||||||
%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
|
||||||
terminal in *nix systems. It provides fast and valuable HTTP statistics for
|
terminal in *nix systems. It provides fast and valuable HTTP statistics for
|
||||||
@@ -63,7 +72,7 @@ sed -i '/-pthread/d' configure.ac
|
|||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
%configure \
|
%configure \
|
||||||
--enable-debug \
|
--enable-debug \
|
||||||
--enable-geoip \
|
--enable-geoip=legacy \
|
||||||
--enable-utf8 \
|
--enable-utf8 \
|
||||||
--enable-tcb=btree \
|
--enable-tcb=btree \
|
||||||
--with-getline \
|
--with-getline \
|
||||||
@@ -75,6 +84,25 @@ autoreconf -fiv
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
# 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}
|
||||||
|
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
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@@ -82,8 +110,15 @@ autoreconf -fiv
|
|||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_mandir}/man1/%{name}.1*
|
%{_mandir}/man1/%{name}.1*
|
||||||
%{_pkgdocdir}
|
%{_pkgdocdir}
|
||||||
|
%{_unitdir}/%{name}.service
|
||||||
|
%dir %{_var}/www/html/%{name}
|
||||||
|
%attr(755,-,-) %{_libexecdir}/%{name}-get-logs.pl
|
||||||
|
%config() %{_sysconfdir}/sysconfig/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jul 16 2017 Daniel Steiner <dsteiner@redhat.com> - 1.2-2
|
||||||
|
- Legacy GeoIP enabled.
|
||||||
|
|
||||||
* Sun Jul 16 2017 Daniel Steiner <dsteiner@redhat.com> - 1.2-1
|
* Sun Jul 16 2017 Daniel Steiner <dsteiner@redhat.com> - 1.2-1
|
||||||
- Initial release for Fedora 25.
|
- Initial release for Fedora 25.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user