1 Star 0 Fork 1

冯玮耀/iptraf-ng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
iptraf-ng.spec 3.41 KB
一键复制 编辑 原始数据 按行查看 历史
冯玮耀 提交于 2024-12-19 11:21 . fix CVE-2024-52949
Summary: A console-based network monitoring utility
Name: iptraf-ng
Version: 1.2.1
Release: 7%{?dist}
License: GPLv2+
URL: https://github.com/iptraf-ng/iptraf-ng/
Source0: https://github.com/iptraf-ng/iptraf-ng/archive/v%{version}.tar.gz
Source1: %{name}-logrotate.conf
Source2: %{name}-tmpfiles.conf
BuildRequires: gcc ncurses-devel make
Provides: iptraf = 3.1
Obsoletes: iptraf < 3.1
#https://github.com/iptraf-ng/iptraf-ng/commit/2b623e991115358a57275af8a53feb5ae707b3ae
Patch0001: fix-CVE-2024-52949.patch
%description
IPTraf-ng is a console-based network monitoring utility. IPTraf gathers
data like TCP connection packet and byte counts, interface statistics
and activity indicators, TCP/UDP traffic breakdowns, and LAN station
packet and byte counts. IPTraf-ng features include an IP traffic monitor
which shows TCP flag information, packet and byte counts, ICMP
details, OSPF packet types, and oversize IP packet warnings;
interface statistics showing IP, TCP, UDP, ICMP, non-IP and other IP
packet counts, IP check sum errors, interface activity and packet size
counts; a TCP and UDP service monitor showing counts of incoming and
outgoing packets for common TCP and UDP application ports, a LAN
statistics module that discovers active hosts and displays statistics
about their activity; TCP, UDP and other protocol display filters so
you can view just the traffic you want; logging; support for Ethernet,
FDDI, ISDN, SLIP, PPP, and loop back interfaces; and utilization of the
built-in raw socket interface of the Linux kernel, so it can be used
on a wide variety of supported network cards.
%prep
%autosetup -p1
%build
make %{?_smp_mflags} V=1 \
CFLAGS="-W -std=gnu99 %{optflags}" LDFLAGS="$RPM_LD_FLAGS"
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} prefix=%{_prefix}
find Documentation -type f | grep -v '\.html$\|\.png$\|/stylesheet' | \
xargs rm -f
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 %{SOURCE2} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
mkdir -p %{buildroot}/run
install -d -m 0755 %{buildroot}/run/%{name}/
%files
%license LICENSE
%doc AUTHORS CHANGES FAQ README* Documentation
%config(noreplace) %{_sysconfdir}/logrotate.d/iptraf-ng
%{_sbindir}/iptraf-ng
%{_localstatedir}/log/iptraf-ng
%{_localstatedir}/lib/iptraf-ng
%{_mandir}/man8/iptraf-ng.8*
%dir /run/%{name}/
%{_prefix}/lib/tmpfiles.d/%{name}.conf
%changelog
* Thu Dec 19 2024 wynnfeng<wynnfeng@tencent.com> - 1.2.1-7
- [type] security
- [desc] fix CVE-2024-52949
* Thu Sep 26 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.2.1-6
- Rebuilt for clarifying the packages requirement in BaseOS and AppStream
* Fri Aug 16 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.2.1-5
- Rebuilt for loongarch release
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.2.1-4
- Rebuilt for OpenCloudOS Stream 23.09
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.2.1-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.2.1-2
- Rebuilt for OpenCloudOS Stream 23
* Tue Jul 05 2022 Wang Zhe <bessiewang@tencent.com> - 1.2.1-1
- initial build
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/feng-weiyao/iptraf-ng.git
git@gitee.com:feng-weiyao/iptraf-ng.git
feng-weiyao
iptraf-ng
iptraf-ng
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385