2019-09-30 11:09:56 -04:00
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
2020-06-28 16:33:37 +08:00
|
|
|
Name: nmap
|
|
|
|
|
Epoch: 2
|
2021-12-09 15:52:24 +08:00
|
|
|
Version: 7.92
|
2020-06-28 16:33:37 +08:00
|
|
|
Release: 1
|
|
|
|
|
License: Nmap
|
|
|
|
|
Summary: A tool for network discovery and security auditing.
|
|
|
|
|
Requires: %{name}-ncat = %{epoch}:%{version}-%{release}
|
|
|
|
|
URL: https://nmap.org/
|
2021-12-09 15:52:24 +08:00
|
|
|
Source0: https://nmap.org/dist/%{name}-%{version}.tar.bz2
|
2020-06-28 16:33:37 +08:00
|
|
|
BuildRequires: automake autoconf gcc-c++ gettext-devel libpcap-devel libssh2-devel
|
|
|
|
|
BuildRequires: libtool lua-devel openssl-devel pcre-devel
|
|
|
|
|
|
|
|
|
|
Obsoletes: nmap-frontend nmap-ndiff nmap-ncat nc < 1.109.20120711-2
|
|
|
|
|
Obsoletes: nc6 < 1.00-22
|
|
|
|
|
Provides: nmap-frontend nmap-ndiff nmap-ncat nc nc6
|
2019-09-30 11:09:56 -04:00
|
|
|
|
2021-12-09 15:52:24 +08:00
|
|
|
Patch0001: backport-nmap-4.03-mktemp.patch
|
|
|
|
|
Patch0002: backport-nmap_resolve_config.patch
|
|
|
|
|
|
2019-09-30 11:09:56 -04:00
|
|
|
%define pixmap_srcdir zenmap/share/pixmaps
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Nmap ("Network Mapper") is a free and open source (license) utility for network discovery and security \
|
|
|
|
|
auditing. It was designed to rapidly scan large networks, but works fine against single hosts.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
rm -rf libpcap libpcre macosx mswin32 libssh2 libz
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2020-06-28 16:33:37 +08:00
|
|
|
%configure --with-libpcap=yes --with-liblua=included --without-zenmap --without-ndiff --enable-dbus --with-libssh2=yes
|
2019-09-30 11:09:56 -04:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
sed -i 's/-md/-mf/' nping/docs/nping.1
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make DESTDIR=%{buildroot} STRIP=true install
|
|
|
|
|
|
2020-06-28 16:33:37 +08:00
|
|
|
rm -f %{buildroot}%{_datadir}/ncat/ca-bundle.crt
|
|
|
|
|
rmdir %{buildroot}%{_datadir}/ncat
|
|
|
|
|
|
2021-12-09 15:52:24 +08:00
|
|
|
touch %{buildroot}%{_mandir}/man1/nc.1.gz
|
|
|
|
|
touch %{buildroot}%{_bindir}/nc
|
2019-09-30 11:09:56 -04:00
|
|
|
|
|
|
|
|
%find_lang nmap --with-man
|
|
|
|
|
|
|
|
|
|
%files -f nmap.lang
|
|
|
|
|
%defattr(-,root,root)
|
2021-12-09 15:52:24 +08:00
|
|
|
%doc ncat/docs/AUTHORS ncat/docs/README
|
|
|
|
|
%license LICENSE
|
2019-09-30 11:09:56 -04:00
|
|
|
%{_bindir}/n*
|
|
|
|
|
%{_datadir}/nmap
|
2020-06-28 16:33:37 +08:00
|
|
|
%exclude %{_datadir}/ncat
|
2019-09-30 11:09:56 -04:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc docs/README docs/nmap.usage.txt ncat/docs/THANKS ncat/docs/examples
|
|
|
|
|
%{_mandir}/man1/*.1.gz
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-12-09 15:52:24 +08:00
|
|
|
* Thu Dec 09 2021 quanhongfei <quanhongfei@huawei.com> - 2:7.92-1
|
|
|
|
|
- Type:requirement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update nmap to 7.92
|
|
|
|
|
|
2020-06-28 16:33:37 +08:00
|
|
|
* Sun Jun 28 2020 gaihuiying <gaihuiying@huawei.com> - 2:7.80-1
|
|
|
|
|
- Type:requirement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:sync LTS branch to update nmap to 7.80
|
|
|
|
|
|
2020-06-24 16:55:15 +08:00
|
|
|
* Wed Jun 24 2020 gaihuiying <gaihuiying1@huawei.com> - 2:7.70-12
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:delete make check
|
|
|
|
|
|
2020-02-22 15:44:11 +08:00
|
|
|
* Sat Feb 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:7.70-11
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add make check
|
|
|
|
|
|
2020-01-11 21:37:27 +08:00
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:7.70-10
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:delete unused patches
|
|
|
|
|
|
2019-12-25 15:59:16 +08:00
|
|
|
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:7.70-9
|
|
|
|
|
- Type:cves
|
|
|
|
|
- ID:CVE-2018-15173
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:fix CVE-2018-15173
|
|
|
|
|
|
2019-11-06 19:44:09 +08:00
|
|
|
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:7.70-8
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add 3rd-party licenses
|
|
|
|
|
|
|
|
|
|
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:7.70-7
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:modify the location of COPYING
|
|
|
|
|
|
2019-09-30 11:09:56 -04:00
|
|
|
* Wed Sep 25 2019 Li Wang<wangli221@huawei.com> - 2:7.70-6
|
|
|
|
|
- Type:cves
|
|
|
|
|
- ID:CVE-2017-18594
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:fix CVE-2017-18594
|
|
|
|
|
|
|
|
|
|
* Wed Sep 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:7.70-5
|
2019-11-06 19:44:09 +08:00
|
|
|
- Package init
|