hping/hping.spec

60 lines
1.4 KiB
RPMSpec
Raw Normal View History

2020-05-14 23:55:11 +08:00
Name: hping
Version: 20200503
2021-09-10 16:18:58 +08:00
Release: 4
2020-05-14 23:55:11 +08:00
Summary: hping is a command-line oriented TCP/IP packet assembler/analyzer
License: GPLv2
URL: http://www.hping.org/
2020-10-12 16:20:37 +08:00
Source0: %{name}-%{version}.zip
2020-05-14 23:55:11 +08:00
Patch0: hping-fix-netbpf-header.patch
2021-08-03 20:36:50 +08:00
Patch1: hping-multiple-definition-of-delaytable.patch
2020-05-14 23:55:11 +08:00
BuildRequires: gcc tcl-devel libpcap-devel
%description
hping is a command-line oriented TCP/IP packet assembler/analyzer. The interface is inspired to the ping(8) unix command, but hping isn't only able to send ICMP echo requests. It supports TCP, UDP, ICMP and RAW-IP protocols, has a traceroute mode, the ability to send files between a covered channel, and many other features
%prep
%setup -q -n %{name}-master/
%patch0 -p1
2021-08-03 20:36:50 +08:00
%patch1 -p1
2020-05-14 23:55:11 +08:00
%build
%configure
%make_build
%install
install -d %{buildroot}/%{_bindir}
install -m0755 hping3 %{buildroot}/%{_bindir}
install -d %{buildroot}/%{_mandir}/man8
install -m0644 docs/hping3.8 %{buildroot}/%{_mandir}/man8
%pre
%preun
%post
%postun
%check
%files
%license COPYING
%doc INSTALL README KNOWN-BUGS CHANGES
%{_bindir}/*
%{_mandir}/*
%changelog
2021-09-10 16:18:58 +08:00
* Thu Sep 9 2021 Pengju Jiang <jiangpengju2@huawei.com>
- solve the problem of safe compilation strip
2021-08-03 20:36:50 +08:00
* Mon Aug 2 2021 liushaofei <liushaofei5@huawei.com>
- fix multiple definition
2020-10-12 16:20:37 +08:00
* Mon Oct 12 2020 liqingqing_1229 <liqingqing3@huawei.com>
- update source0's url
2020-05-14 23:55:11 +08:00
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init