iptraf-ng/iptraf-ng.spec

117 lines
3.3 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:53:25 -04:00
Name: iptraf-ng
Summary: A console-based network monitoring utility
2021-01-26 14:53:55 +08:00
Version: 1.2.1
Release: 5
2024-08-01 03:59:32 +00:00
License: GPL-2.0-or-later
2019-09-30 10:53:25 -04:00
URL: https://github.com/%{name}/%{name}/
Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz
Source1: %{name}-logrotate.conf
Source2: %{name}-tmpfiles.conf
Patch0: backport-use-correct-format-specifier-for-time_t-type.patch
Patch1: backport-use-correct-format-specifier-when-printing-packet-count.patch
Patch2: backport-use-correct-format-specifier-for-table-entcount-variable.patch
Patch3: iptraf-ng-Add-sw64-architecture.patch
Patch4: backport-CVE-2024-52949.patch
2019-09-30 10:53:25 -04:00
BuildRequires: gcc ncurses-devel
Obsoletes: iptraf < 3.1
Provides: iptraf = 3.1
%description
IPTraf is a console-based network monitoring program for Linux that
displays information about IP traffic. It returns such information as:
* Current TCP connections
* UDP, ICMP, OSPF, and other types of IP packets
* Packet and byte counts on TCP connections
* IP, TCP, UDP, ICMP, non-IP, and other packet and byte counts
* TCP/UDP counts by ports
* Packet counts by packet sizes
* Packet and byte counts by IP address
* Interface activity
* Flag statuses on TCP packets
* LAN station statistics
If the iptraf command is issued without any command-line options,
the program comes up in interactive mode, with the various facilities
accessed through the main menu.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
CFLAGS="-g -O2 -Wall -W -std=gnu99 -Werror=format-security %{optflags}" \
LDFLAGS="$RPM_LD_FLAGS"
%make_build V=1
%install
%make_install prefix=%{_prefix}
# Delete files that are not in HTML or PNG format in Documentation.
find Documentation -type f ! -name "*.html" \
-type f ! -name "*.png" \
2019-12-25 15:50:14 +08:00
-type f ! -name "." \
2019-09-30 10:53:25 -04:00
| xargs rm -f
install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -D -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
install -d -m 0755 %{buildroot}%{_localstatedir}/{log,lib}/%{name}
install -d -m 0755 %{buildroot}/run/%{name}/
%files
%defattr(-,root,root)
%license LICENSE
%{_prefix}/lib/tmpfiles.d/%{name}.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_sbindir}/*ng
%{_localstatedir}/{log,lib}/%{name}
%dir /run/%{name}/
%files help
%defattr(-,root,root)
2020-07-23 11:00:24 +08:00
%doc Documentation FAQ CHANGES README*
2019-09-30 10:53:25 -04:00
%{_mandir}/man8/*.8.gz
%changelog
* Wed Nov 27 2024 liningjie<liningjie@xfusion.com> - 1.2.1-5
- Type:CVE
- CVE:CVE-2024-52949
- SUG:NA
- DESC:fix CVE-2024-52949
2024-08-01 03:59:32 +00:00
* Thu Aug 01 2024 yanglu<yanglu72@h-partners.com> - 1.2.1-4
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix license
* Fri Oct 21 2022 wuzx<wuzx1226@qq.com> - 1.2.1-3
- Type:feature
- CVE:NA
- SUG:NA
- DESC:Add sw64 architecture
* Thu Oct 20 2022 yanglu <yanglu72@h-partners.com> - 1.2.1-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix some compilation warnings
2021-01-26 14:53:55 +08:00
* Tue Jan 26 2021 xihaochen <xihaochen@huawei.com> - 1.2.1-1
- Type:requirements
- Id:NA
- SUG:NA
- DESC:update iptraf-ng to 1.2.1
2020-07-23 11:00:24 +08:00
* Wed Jul 22 2020 lunankun <lunankun@huawei.com> - 1.2.0-1
- Type:update
- Id:NA
- SUG:NA
- DESC:update to 1.2.0
2019-09-30 10:53:25 -04:00
* Fri Aug 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.4-21
- Package init