import iptraf-ng-1.2.1-2.el8
This commit is contained in:
parent
6281825560
commit
74a673cdee
9
SOURCES/iptraf-ng-logrotate.conf
Normal file
9
SOURCES/iptraf-ng-logrotate.conf
Normal file
@ -0,0 +1,9 @@
|
||||
# Logrotate file for iptraf
|
||||
/var/log/iptraf-ng/*.log {
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
rotate 4
|
||||
create 0600 root root
|
||||
}
|
@ -1,9 +1,10 @@
|
||||
Summary: A console-based network monitoring utility
|
||||
Name: iptraf-ng
|
||||
Version: 1.2.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Source0: https://github.com/iptraf-ng/iptraf-ng/archive/v%{version}.tar.gz
|
||||
Source1: %{name}-tmpfiles.conf
|
||||
Source1: %{name}-logrotate.conf
|
||||
Source2: %{name}-tmpfiles.conf
|
||||
URL: https://github.com/iptraf-ng/iptraf-ng/
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
@ -46,12 +47,12 @@ make install DESTDIR=%{buildroot} prefix=%{_prefix}
|
||||
find Documentation -type f | grep -v '\.html$\|\.png$\|/stylesheet' | \
|
||||
xargs rm -f
|
||||
|
||||
install -D -m 0644 iptraf-ng-logrotate.conf %{buildroot}%{_sysconfdir}/logrotate.d/iptraf-ng
|
||||
install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/iptraf-ng
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_localstatedir}/{log,lib}/iptraf-ng
|
||||
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
|
||||
install -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
|
||||
install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
|
||||
|
||||
mkdir -p %{buildroot}/run
|
||||
install -d -m 0755 %{buildroot}/run/%{name}/
|
||||
@ -72,6 +73,9 @@ rm -rf %{buildroot}
|
||||
%{_prefix}/lib/tmpfiles.d/%{name}.conf
|
||||
|
||||
%changelog
|
||||
* Thu Jan 28 2021 Andrea Claudi <aclaudi@redhat.com>
|
||||
- Make sure logrotate use iptraf-ng directory.
|
||||
|
||||
* Wed Dec 09 2020 Andrea Claudi <aclaudi@redhat.com>
|
||||
- New version 1.2.1 (Andrea Claudi) [1906097]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user