Better systemd integration with new config file

This commit is contained in:
2017-07-16 23:18:19 +02:00
parent d64543ff42
commit 33f23cdd9e

View File

@@ -1,6 +1,6 @@
Name: goaccess
Version: 1.2
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Real-time web log analyzer and interactive viewer
License: GPLv2+
URL: https://goaccess.io/
@@ -8,6 +8,7 @@ Source0: http://tar.goaccess.io/%{name}-%{version}.tar.gz
Source1: %{name}.service
Source2: %{name}-get-logs.pl
Source3: %{name}-sysconfig
Source4: %{name}-systemd.conf
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
@@ -88,6 +89,7 @@ autoreconf -fiv
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 %{S:4} %{buildroot}%{_sysconfdir}/%{name}-systemd.conf
install -d %{buildroot}%{_var}/www/html/%{name}
%post
@@ -114,8 +116,12 @@ install -d %{buildroot}%{_var}/www/html/%{name}
%dir %{_var}/www/html/%{name}
%attr(755,-,-) %{_libexecdir}/%{name}-get-logs.pl
%config() %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/%{name}-systemd.conf
%changelog
* Sun Jul 16 2017 Daniel Steiner <dsteiner@redhat.com> - 1.2-3
- Live status enable with systemd
* Sun Jul 16 2017 Daniel Steiner <dsteiner@redhat.com> - 1.2-2
- Legacy GeoIP enabled.