Compare commits
No commits in common. "c8s" and "c9-beta" have entirely different histories.
@ -1 +0,0 @@
|
|||||||
1
|
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1 @@
|
|||||||
SOURCES/nmap-7.70.tar.bz2
|
SOURCES/nmap-7.92.tar.bz2
|
||||||
/nmap-7.70.tar.bz2
|
|
||||||
/nmap-7.92.tar.bz2
|
|
||||||
|
1
.nmap.metadata
Normal file
1
.nmap.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
62342a9a6641833c5c16b7a24ced4bace68c60fb SOURCES/nmap-7.92.tar.bz2
|
6
SOURCES/nmap-7.92.tar.bz2.asc
Normal file
6
SOURCES/nmap-7.92.tar.bz2.asc
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iF0EABECAB0WIQRDbWarmnmEJf2g4/gBr58Da5NV0AUCYQ8ebgAKCRABr58Da5NV
|
||||||
|
0CueAJ4qDsTIi6sJ521jJutUvrAsqoaSaACfX8sECeGHSnV3VPsTzvj7QxoqiAA=
|
||||||
|
=TLt7
|
||||||
|
-----END PGP SIGNATURE-----
|
40
SOURCES/nmap-ems-ssl-enum-ciphers.patch
Normal file
40
SOURCES/nmap-ems-ssl-enum-ciphers.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
commit fc5fc2a26877e241bf9f175832cc89f5ec1e6925
|
||||||
|
Author: Clemens Lang <cllang@redhat.com>
|
||||||
|
Date: Mon Oct 16 13:44:40 2023 +0200
|
||||||
|
|
||||||
|
Support EMS in ssl-enum-ciphers
|
||||||
|
|
||||||
|
The FIPS 140-3 Implementation Guidelines in section D.Q require
|
||||||
|
FIPS-certified cryptographic modules to use the RFC 7627 Extended Master
|
||||||
|
Secret for modules submitted after May 16th, 2023:
|
||||||
|
|
||||||
|
> [a] new validation, […] submitted more than one year after [May 2022]
|
||||||
|
> shall use the extended master secret in the TLS 1.2 KDF.
|
||||||
|
|
||||||
|
ssl-enum-ciphers was not sending this extension, causing some servers to
|
||||||
|
abort the handshake. This lead to no support for TLS 1.2 being reported,
|
||||||
|
even though support was available with the extended master secret. Add
|
||||||
|
the EMS extension to the set of base extensions that are always sent to
|
||||||
|
avoid this situation.
|
||||||
|
|
||||||
|
Servers that do not support EMS should just ignore this extension
|
||||||
|
silently.
|
||||||
|
|
||||||
|
Signed-off-by: Clemens Lang <cllang@redhat.com>
|
||||||
|
|
||||||
|
diff --git a/scripts/ssl-enum-ciphers.nse b/scripts/ssl-enum-ciphers.nse
|
||||||
|
index 881b6bdcb..bd441120c 100644
|
||||||
|
--- a/scripts/ssl-enum-ciphers.nse
|
||||||
|
+++ b/scripts/ssl-enum-ciphers.nse
|
||||||
|
@@ -528,6 +528,11 @@ local function base_extensions(host)
|
||||||
|
["ec_point_formats"] = tls.EXTENSION_HELPERS["ec_point_formats"]({"uncompressed"}),
|
||||||
|
-- Enable SNI if a server name is available
|
||||||
|
["server_name"] = tlsname and tls.EXTENSION_HELPERS["server_name"](tlsname),
|
||||||
|
+ -- Enable the Extended Master Secret extension, since FIPS 140-3 IG section
|
||||||
|
+ -- D.Q now requires it for servers in FIPS mode and some vendors may reject
|
||||||
|
+ -- handshakes without it. Not sending the extension would show those
|
||||||
|
+ -- servers as not supporting TLS 1.2 at all.
|
||||||
|
+ ["extended_master_secret"] = "",
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
95
SOURCES/nmap_gpgkeys.txt
Normal file
95
SOURCES/nmap_gpgkeys.txt
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
GPG detached signatures and MD5/SHA-1 hashes for each Nmap release are
|
||||||
|
available from https://nmap.org/dist/sigs/?C=M;O=D . The
|
||||||
|
releases are signed by the Nmap project GPG key (KeyId 6B9355D0).
|
||||||
|
Some messages to Nmap mailing lists may be signed by Nmap author and
|
||||||
|
maintainer Fyodor. Fyodor's KeyID is 33599B5F. Those two keys and
|
||||||
|
their fingerprints are reproduced below. The latest version of this
|
||||||
|
file is always available at
|
||||||
|
https://nmap.org/data/nmap_gpgkeys.txt .
|
||||||
|
|
||||||
|
To verify a file with GPG, obtain and import the keys with a command
|
||||||
|
such as "gpg --import nmap_gpgkeys.txt" and then verify the obtained
|
||||||
|
files as shown in this example:
|
||||||
|
|
||||||
|
> gpg --verify nmap-3.81.tar.bz2.gpg.txt nmap-3.81.tar.bz2
|
||||||
|
gpg: Signature made Sat 23 Apr 2005 11:34:32 PM PDT using DSA key ID 6B9355D0
|
||||||
|
gpg: Good signature from "Nmap Project Signing Key (http://www.insecure.org/)"
|
||||||
|
|
||||||
|
Here are the GPG keys for the Nmap Project and Fyodor:
|
||||||
|
|
||||||
|
pub 1024D/6B9355D0 2005-04-24
|
||||||
|
Key fingerprint = 436D 66AB 9A79 8425 FDA0 E3F8 01AF 9F03 6B93 55D0
|
||||||
|
uid Nmap Project Signing Key (http://www.insecure.org/)
|
||||||
|
sub 2048g/A50A6A94 2005-04-24
|
||||||
|
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
Version: GnuPG v1.4.1 (GNU/Linux)
|
||||||
|
|
||||||
|
mQGiBEJrBfgRBADogo5DEoGsm2C3OC3NoKBQ0J7Ixp/cymuMeGQmDhqP6Vfmxmso
|
||||||
|
BGln4nhDr3WMDW76Q2p6dHTZEbWx3NAna8q3wa3PrPTVRcmEgEgUd8y086I33NqW
|
||||||
|
BV5Fz4bvPWtSGc/4MxXwac+XqrGY+iTkaO3sd4/eEKa/KkJlXpIGAbGbZwCgq9HS
|
||||||
|
bHctYmUWmvz1YXJmFlQvnTsD/RRyTlnQ/AOpq2XPYy5AlUzHMWAef2Dt+wXYKSjp
|
||||||
|
zvqVWtl8QigrWSOP3ia39v+rDUF/CHb1U8mmx9XzRpy9KgS99Wi4IUnBCYM/e/IP
|
||||||
|
K5ReAoNoPMjLmLU4cxYzOxF1yzuSFvhXiKVy/QW6Qo9AP9YdlhlxxXrJA+HrAcXb
|
||||||
|
UE/SBACsoJRsIEyzcfm7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3V7yneiDQXBUBMr4WwjfOxX7m/+Io7RSLQaWNq82C2fSukqpootVgLV7CaVJMHvZ
|
||||||
|
iA+3AL32N1d6O6h8bUqEyfOw3kIr19e0OhqWSpQrZs3tkUpwH7/vn/4NkAxjodkP
|
||||||
|
JChf1Y89pU98GBC9JxF+mc2mnDVUnUs31S8kQ/6PhZP8ldn47W2CakHSA3S/M99A
|
||||||
|
gltKiG6MR2z018fqD8FJC3tLiEkEGBECAAkFAkJrBfoCGwwACgkQAa+fA2uTVdBM
|
||||||
|
QgCfciVPJeohzn5mJ4WGE/6B1CyCOIYAn2ghTW1IKTP+tfOgxVg/p8HJOoiz
|
||||||
|
=18Dk
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
|
||||||
|
pub 1024D/33599B5F 2005-04-24
|
||||||
|
Key fingerprint = BB61 D057 C0D7 DCEF E730 996C 1AF6 EC50 3359 9B5F
|
||||||
|
uid Fyodor <fyodor@insecure.org>
|
||||||
|
sub 2048g/D3C2241C 2005-04-24
|
||||||
|
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
Version: GnuPG v1.4.1 (GNU/Linux)
|
||||||
|
|
||||||
|
mQGiBEJrBG4RBADfjVQenTh2v1NK2N0Wi83pGMm0u/IDDX8eT8lxSR+XdevdcK+F
|
||||||
|
bRhVh+tMhTo1T2OoZkBfYj+OVCWsBZlIxZtGycWaGAwn3MbUEiUJD0YVv4pm4KVk
|
||||||
|
HEZSOYEkzUFIw3IP03Cv6wBDrhk5lAu99+sK0iQGeHGw+gBhIuA3axSeBwCgn86p
|
||||||
|
r+C4P3w61musiflp1SosfSsEALwyE7o60S105UTijAn5tswqecZlumQAxQ+DIeC+
|
||||||
|
9F8mSujIZn8xb1wJtaZb2F0HU0vd67BaOIDXqO7KVe6Tx6JKf5zup2vaGRvUspNv
|
||||||
|
V8CLuSbT7WnnvTBM5dfBMTJw6xLjOsSTk65Q24xcTJ3f2efnYy9imAM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QbmTIyQGJb/OcWa7Dc9WA6DnaE58
|
||||||
|
1BeZgYrKFQMdVpAhUMTxeqPIL4EVc6N+BkSk7JHf5+6DoK8KDJ1RJCCgYmdx7zdT
|
||||||
|
/GAZlUFDiYOs4sx75UZZGFcEEDmIHFC4s7B2HPuSfMoq5vBr0qi6pD1HCgyJV0aG
|
||||||
|
jhQdmfkp+fYEibPWrIGTsayQnYiCrVo3W7C7ZplekoAJkcN0rnfJeV1+kj694XSe
|
||||||
|
U6oYj9RaNoTV1xt1lx5Rwl00HwEYHWAsGmT6+pWmbXo5PT7N7OfcmtclICBsrcjC
|
||||||
|
hKcn6WdTitUR+uOXgL+86Th4W/FYdIXAyyC9KTXhMDmfiEkEGBECAAkFAkJrBHIC
|
||||||
|
GwwACgkQGvbsUDNZm19xAgCeNmaeak8iviUmHje1YAePwEFGleEAn26n8sNrVole
|
||||||
|
NtNX5k7XyTWBQUdG
|
||||||
|
=cBzb
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
@ -1,8 +1,8 @@
|
|||||||
diff --git a/ncat/ncat_core.c b/ncat/ncat_core.c
|
diff --git a/ncat/ncat_core.c b/ncat/ncat_core.c
|
||||||
index 21eca9e..c45a04e 100644
|
index b76d5ea..9f0b0cf 100644
|
||||||
--- a/ncat/ncat_core.c
|
--- a/ncat/ncat_core.c
|
||||||
+++ b/ncat/ncat_core.c
|
+++ b/ncat/ncat_core.c
|
||||||
@@ -287,6 +287,7 @@ int resolve(const char *hostname, unsigned short port,
|
@@ -289,6 +289,7 @@ int resolve(const char *hostname, unsigned short port,
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
flags = 0;
|
flags = 0;
|
@ -2,29 +2,22 @@
|
|||||||
#supports sctp (grep sctp /usr/include/dnet.h)
|
#supports sctp (grep sctp /usr/include/dnet.h)
|
||||||
|
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
%if 0%{?fedora} && 0%{?fedora} <= 28
|
|
||||||
%global with_frontend 1
|
|
||||||
%else
|
|
||||||
%global with_frontend 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Summary: Network exploration tool and security scanner
|
|
||||||
Name: nmap
|
Name: nmap
|
||||||
Epoch: 2
|
Epoch: 3
|
||||||
Version: 7.92
|
Version: 7.92
|
||||||
#global prerelease TEST5
|
#global prerelease TEST5
|
||||||
Release: 1%{?dist}
|
Release: 3%{?dist}
|
||||||
|
Summary: Network exploration tool and security scanner
|
||||||
|
URL: http://nmap.org/
|
||||||
# Uses combination of licenses based on GPL license, but with extra modification
|
# Uses combination of licenses based on GPL license, but with extra modification
|
||||||
# so it got its own license tag rhbz#1055861
|
# so it got its own license tag rhbz#1055861
|
||||||
License: Nmap
|
License: Nmap
|
||||||
Group: Applications/System
|
|
||||||
Requires: %{name}-ncat = %{epoch}:%{version}-%{release}
|
|
||||||
Source0: http://nmap.org/dist/%{name}-%{version}%{?prerelease}.tar.bz2
|
Source0: http://nmap.org/dist/%{name}-%{version}%{?prerelease}.tar.bz2
|
||||||
%if %{with_frontend}
|
Source1: https://nmap.org/dist/sigs/%{name}-%{version}.tar.bz2.asc
|
||||||
Source1: zenmap.desktop
|
Source2: https://svn.nmap.org/nmap/docs/nmap_gpgkeys.txt
|
||||||
Source2: zenmap-root.pamd
|
|
||||||
Source3: zenmap.appdata.xml
|
|
||||||
%endif
|
|
||||||
|
|
||||||
#prevent possible race condition for shtool, rhbz#158996
|
#prevent possible race condition for shtool, rhbz#158996
|
||||||
Patch1: nmap-4.03-mktemp.patch
|
Patch1: nmap-4.03-mktemp.patch
|
||||||
@ -35,22 +28,29 @@ Patch2: nmap-4.52-noms.patch
|
|||||||
# upstream provided patch for rhbz#845005, not yet in upstream repository
|
# upstream provided patch for rhbz#845005, not yet in upstream repository
|
||||||
Patch3: ncat_reg_stdin.diff
|
Patch3: ncat_reg_stdin.diff
|
||||||
Patch4: nmap-6.25-displayerror.patch
|
Patch4: nmap-6.25-displayerror.patch
|
||||||
|
|
||||||
# https://github.com/nmap/nmap/pull/2247
|
# https://github.com/nmap/nmap/pull/2247
|
||||||
Patch5: nmap_resolve_config.patch
|
Patch5: nmap_resolve_config.patch
|
||||||
|
# https://github.com/nmap/nmap/pull/2724
|
||||||
|
Patch6: nmap-ems-ssl-enum-ciphers.patch
|
||||||
|
|
||||||
URL: http://nmap.org/
|
BuildRequires: automake make
|
||||||
|
BuildRequires: autoconf
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: openssl-devel, gtk2-devel, lua-devel, libpcap-devel, pcre-devel
|
BuildRequires: gettext-devel
|
||||||
BuildRequires: desktop-file-utils, dos2unix
|
BuildRequires: libpcap-devel
|
||||||
BuildRequires: libtool, automake, autoconf, gettext-devel
|
%if 0%{?fedora}
|
||||||
|
BuildRequires: libssh2-devel
|
||||||
%if ! %{with_frontend}
|
|
||||||
Obsoletes: nmap-frontend
|
|
||||||
Obsoletes: nmap-ndiff
|
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: lua-devel
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
BuildRequires: pcre-devel
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
BuildRequires: gnupg2
|
||||||
|
Requires: %{name}-ncat = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
|
Obsoletes: nmap-frontend < 7.70-1
|
||||||
|
Obsoletes: nmap-ndiff < 7.70-1
|
||||||
|
|
||||||
%define pixmap_srcdir zenmap/share/pixmaps
|
%define pixmap_srcdir zenmap/share/pixmaps
|
||||||
|
|
||||||
@ -66,33 +66,10 @@ data transfer, redirection, and debugging tool (netcat utility ncat), a utility
|
|||||||
for comparing scan results (ndiff), and a packet generation and response
|
for comparing scan results (ndiff), and a packet generation and response
|
||||||
analysis tool (nping).
|
analysis tool (nping).
|
||||||
|
|
||||||
%if %{with_frontend}
|
|
||||||
%package frontend
|
|
||||||
Summary: The GTK+ front end for nmap
|
|
||||||
Group: Applications/System
|
|
||||||
Requires: nmap = %{epoch}:%{version} gtk2 python2 >= 2.5 pygtk2 usermode
|
|
||||||
Requires: nmap-ndiff = %{epoch}:%{version}
|
|
||||||
BuildRequires: python2-devel pygtk2-devel libpng-devel
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description frontend
|
|
||||||
This package includes zenmap, a GTK+ front end for nmap. The nmap package must
|
|
||||||
be installed before installing nmap front end.
|
|
||||||
|
|
||||||
%package ndiff
|
|
||||||
Summary: Ndiff is a tool to aid in the comparison of Nmap scans
|
|
||||||
Group: Applications/System
|
|
||||||
BuildRequires: python2 >= 2.5
|
|
||||||
Requires: nmap = %{epoch}:%{version}
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description ndiff
|
|
||||||
%{summary}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%package ncat
|
%package ncat
|
||||||
Group: Applications/System
|
|
||||||
Summary: Nmap's Netcat replacement
|
Summary: Nmap's Netcat replacement
|
||||||
|
Requires(post): %{_sbindir}/alternatives
|
||||||
|
Requires(preun): %{_sbindir}/alternatives
|
||||||
Obsoletes: nc < 1.109.20120711-2
|
Obsoletes: nc < 1.109.20120711-2
|
||||||
Obsoletes: nc6 < 1.00-22
|
Obsoletes: nc6 < 1.00-22
|
||||||
Provides: nc nc6
|
Provides: nc nc6
|
||||||
@ -106,48 +83,31 @@ applications and users. Ncat will not only work with IPv4 and IPv6
|
|||||||
but provides the user with a virtually limitless number of potential
|
but provides the user with a virtually limitless number of potential
|
||||||
uses.
|
uses.
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} >= 0
|
|
||||||
Requires(post): %{_sbindir}/update-alternatives
|
|
||||||
Requires(postun): %{_sbindir}/update-alternatives
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{name}-%{version}%{?prerelease}
|
%{gpgverify} --keyring=%{SOURCE2} --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
|
||||||
#be sure we're not using tarballed copies of some libraries
|
#be sure we're not using tarballed copies of some libraries
|
||||||
#rm -rf liblua libpcap libpcre macosx mswin32 ###TODO###
|
#rm -rf liblua libpcap libpcre macosx mswin32 ###TODO###
|
||||||
|
|
||||||
rm -rf libpcap libpcre macosx mswin32 libssh2 libz
|
rm -rf libpcap libpcre macosx mswin32 libssh2 libz
|
||||||
|
|
||||||
# for aarch64 support, not needed with autotools 2.69+
|
|
||||||
for f in acinclude.m4 configure.ac nping/configure.ac
|
|
||||||
do
|
|
||||||
sed -i -e 's/\(AC_DEFINE([^,)]*\))/\1, 1, [Description])/' -e 's/\(AC_DEFINE([^,]*,[^,)]*\))/\1, [Description])/' $f
|
|
||||||
done
|
|
||||||
autoreconf -I . -fiv --no-recursive
|
|
||||||
cd nping; autoreconf -I .. -fiv --no-recursive; cd ..
|
|
||||||
|
|
||||||
%if %{with_frontend}
|
|
||||||
#fix locale dir
|
|
||||||
mv zenmap/share/zenmap/locale zenmap/share
|
|
||||||
sed -i -e "s|^locale_dir =.*$|locale_dir = os.path.join('share','locale')|" \
|
|
||||||
-e 's|join(self.install_data, data_dir)|join(self.install_data, "share")|' zenmap/setup.py
|
|
||||||
sed -i 's|^LOCALE_DIR = .*|LOCALE_DIR = join(prefix, "share", "locale")|' zenmap/zenmapCore/Paths.py
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||||
### TODO ## configure --with-libpcap=/usr ###TODO###
|
### TODO ## configure --with-libpcap=/usr ###TODO###
|
||||||
### TODO if 0%{%fedora} --with-libsssh
|
|
||||||
%configure --with-libpcap=yes --with-liblua=included \
|
%configure --with-libpcap=yes --with-liblua=included \
|
||||||
%if ! %{with_frontend}
|
--without-zenmap --without-ndiff \
|
||||||
--without-zenmap \
|
%if 0%{?fedora}
|
||||||
--without-ndiff \
|
--with-libssh2=yes \
|
||||||
|
%else
|
||||||
|
--with-libssh2=no \
|
||||||
%endif
|
%endif
|
||||||
--enable-dbus --without-libssh2
|
--enable-dbus
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
%make_build
|
||||||
|
|
||||||
#fix man page (rhbz#813734)
|
#fix man page (rhbz#813734)
|
||||||
sed -i 's/-md/-mf/' nping/docs/nping.1
|
sed -i 's/-md/-mf/' nping/docs/nping.1
|
||||||
@ -160,72 +120,23 @@ make DESTDIR=%{buildroot} STRIP=true install
|
|||||||
rm -f %{buildroot}%{_datadir}/ncat/ca-bundle.crt
|
rm -f %{buildroot}%{_datadir}/ncat/ca-bundle.crt
|
||||||
rmdir %{buildroot}%{_datadir}/ncat
|
rmdir %{buildroot}%{_datadir}/ncat
|
||||||
|
|
||||||
%if 0%{?fedora} && 0%{?fedora} >= 0
|
#we provide 'nc' replacement (#1653119)
|
||||||
# we provide 'nc' replacement
|
touch %{buildroot}%{_mandir}/man1/nc.1.gz
|
||||||
# Do not create symlinks on manpages on rhel because of
|
|
||||||
# rhbz#1578776
|
|
||||||
ln -s ncat.1.gz %{buildroot}/%{_mandir}/man1/nc.1.gz
|
|
||||||
ln -s ncat %{buildroot}/%{_bindir}/nc
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with_frontend}
|
|
||||||
rm -f %{buildroot}%{_bindir}/uninstall_zenmap
|
|
||||||
#do not include uninstall script
|
|
||||||
rm -f %{buildroot}%{_bindir}/uninstall_ndiff
|
|
||||||
|
|
||||||
rm -f %{buildroot}%{_datadir}/applications/zenmap*.desktop
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
|
|
||||||
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/zenmap-root
|
|
||||||
|
|
||||||
cp docs/zenmap.1 %{buildroot}%{_mandir}/man1/
|
|
||||||
gzip %{buildroot}%{_mandir}/man1/* || :
|
|
||||||
pushd %{buildroot}%{_mandir}/man1
|
|
||||||
ln -s zenmap.1.gz nmapfe.1.gz
|
|
||||||
ln -s zenmap.1.gz xnmap.1.gz
|
|
||||||
popd
|
|
||||||
|
|
||||||
desktop-file-install --vendor nmap \
|
|
||||||
--dir %{buildroot}%{_datadir}/applications \
|
|
||||||
--add-category X-Red-Hat-Base \
|
|
||||||
%{SOURCE1};
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}/%{_datadir}/metainfo/
|
|
||||||
install -p -m 0644 %SOURCE3 %{buildroot}/%{_datadir}/metainfo/
|
|
||||||
|
|
||||||
#for .desktop and app icon
|
|
||||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps
|
|
||||||
ln -s ../../../../zenmap/pixmaps/zenmap.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps
|
|
||||||
|
|
||||||
# fix end-of-line
|
|
||||||
pushd %{buildroot}
|
|
||||||
for fe in ./%{python_sitelib}/zenmapCore/Paths.py
|
|
||||||
do
|
|
||||||
dos2unix <$fe >$fe.new
|
|
||||||
touch -r $fe $fe.new
|
|
||||||
mv -f $fe.new $fe
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
%find_lang zenmap
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%find_lang nmap --with-man
|
|
||||||
touch %{buildroot}%{_bindir}/nc
|
touch %{buildroot}%{_bindir}/nc
|
||||||
|
|
||||||
|
%find_lang nmap --with-man
|
||||||
|
|
||||||
%post ncat
|
%post ncat
|
||||||
%{_sbindir}/update-alternatives --install %{_bindir}/nc \
|
%{_sbindir}/alternatives --install %{_bindir}/nc nc %{_bindir}/ncat 10 \
|
||||||
%{name} %{_bindir}/ncat 10 \
|
--slave %{_mandir}/man1/nc.1.gz nc-man %{_mandir}/man1/ncat.1.gz
|
||||||
--slave %{_mandir}/man1/nc.1.gz ncman %{_mandir}/man1/ncat.1.gz
|
|
||||||
|
|
||||||
## ln -s ncat.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/nc.1.gz
|
%preun ncat
|
||||||
|
|
||||||
%postun ncat
|
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
%{_sbindir}/update-alternatives --remove %{name} %{_bindir}/ncat
|
%{_sbindir}/alternatives --remove nc %{_bindir}/ncat
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%files -f nmap.lang
|
%files -f nmap.lang
|
||||||
%doc LICENSE
|
%license LICENSE
|
||||||
%doc docs/README
|
%doc docs/README
|
||||||
%doc docs/nmap.usage.txt
|
%doc docs/nmap.usage.txt
|
||||||
%{_bindir}/nmap
|
%{_bindir}/nmap
|
||||||
@ -235,64 +146,106 @@ fi
|
|||||||
%{_datadir}/nmap
|
%{_datadir}/nmap
|
||||||
|
|
||||||
%files ncat
|
%files ncat
|
||||||
%doc LICENSE ncat/docs/AUTHORS ncat/docs/README ncat/docs/THANKS ncat/docs/examples
|
%license LICENSE
|
||||||
%if 0%{?fedora} && 0%{?fedora} >= 0
|
%doc ncat/docs/AUTHORS ncat/docs/README ncat/docs/THANKS ncat/docs/examples
|
||||||
%{_bindir}/nc
|
|
||||||
%{_mandir}/man1/nc.1.gz
|
|
||||||
%else
|
|
||||||
%ghost %{_bindir}/nc
|
%ghost %{_bindir}/nc
|
||||||
%ghost %{_mandir}/man1/nc.1.gz
|
|
||||||
%endif
|
|
||||||
%{_bindir}/ncat
|
%{_bindir}/ncat
|
||||||
|
%ghost %{_mandir}/man1/nc.1.gz
|
||||||
%{_mandir}/man1/ncat.1.gz
|
%{_mandir}/man1/ncat.1.gz
|
||||||
|
|
||||||
%if %{with_frontend}
|
|
||||||
%files ndiff
|
|
||||||
%{_bindir}/ndiff
|
|
||||||
%{python_sitelib}/ndiff.py
|
|
||||||
%{python_sitelib}/ndiff.py?
|
|
||||||
%{_mandir}/man1/ndiff.1.gz
|
|
||||||
|
|
||||||
%files frontend -f zenmap.lang
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%config(noreplace) %{_sysconfdir}/pam.d/zenmap-root
|
|
||||||
%{_bindir}/zenmap
|
|
||||||
%{_bindir}/nmapfe
|
|
||||||
%{_bindir}/xnmap
|
|
||||||
%{python_sitelib}/radialnet
|
|
||||||
%{python_sitelib}/zenmap*
|
|
||||||
%{_datadir}/applications/nmap-zenmap.desktop
|
|
||||||
%{_datadir}/icons/hicolor/256x256/apps/*
|
|
||||||
%{_datadir}/zenmap
|
|
||||||
%{_mandir}/man1/zenmap.1.gz
|
|
||||||
%{_mandir}/man1/nmapfe.1.gz
|
|
||||||
%{_mandir}/man1/xnmap.1.gz
|
|
||||||
%{_datadir}/metainfo/zenmap.appdata.xml
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Mar 21 2023 Martin Osvald <mosvald@redhat.com> - 2:7.92-1
|
* Wed Jul 10 2024 František Hrdina <fhrdina@redhat.com> - 3:7.92-3
|
||||||
|
- Update fmf plans and gating
|
||||||
|
|
||||||
|
* Tue Jul 09 2024 Martin Osvald <mosvald@redhat.com> - 3:7.92-2
|
||||||
|
- Support EMS in ssl-enum-ciphers
|
||||||
|
|
||||||
|
* Tue Mar 21 2023 Martin Osvald <mosvald@redhat.com> - 3:7.92-1
|
||||||
- New version 7.92
|
- New version 7.92
|
||||||
- Resolves: #2166178 - Nmap much slower after libpcap fix
|
- Resolves: #2180330 - Rebase nmap for TLS v1.3 support
|
||||||
- Resolves: #2169766 - Rebase nmap for TLS v1.3 support
|
- Resolves: #2164833 - Remove duplicate tests
|
||||||
|
|
||||||
* Tue Aug 23 2022 Martin Osvald <mosvald@redhat.com> - 2:7.70-8
|
* Tue Jan 10 2023 Martin Osvald <mosvald@redhat.com> - 3:7.91-12
|
||||||
- Resolves: #2120294 - wrong connect format
|
- Enhanced TMT testing for centos-stream (#2159206)
|
||||||
|
|
||||||
* Wed May 04 2022 Martin Osvald <mosvald@redhat.com> - 2:7.70-7
|
* Fri Nov 25 2022 Martin Osvald <mosvald@redhat.com> - 3:7.91-11
|
||||||
- Do not listen on ipv6 if it's disabled (#1899824)
|
- ncat does not work with --proxy (#2140101)
|
||||||
|
|
||||||
* Wed Jul 21 2021 Pavel Zhukov <pzhukov@redhat.com> - 2:7.70-6
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3:7.91-10
|
||||||
- Use safe variants of FD_ functions (#1914733)
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
|
Related: rhbz#1991688
|
||||||
|
|
||||||
* Thu Mar 28 2019 Pavel Zhukov <pzhukov@redhat.com> - 2:7.70-5
|
* Wed Jul 28 2021 Florian Weimer <fweimer@redhat.com> - 3:7.91-9
|
||||||
- Resolves: #1653119 - Manage nc symlink using alternatives
|
- Rebuild to pick up OpenSSL 3.0 Beta ABI (#1984097)
|
||||||
|
|
||||||
* Mon Sep 17 2018 Pavel Zhukov <pzhukov@redhat.com> - 2:7.70-4
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 3:7.91-8
|
||||||
- Resolves: #1627053 - Obsolete python2 packages
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
||||||
|
Related: rhbz#1971065
|
||||||
|
|
||||||
* Mon Jun 4 2018 Pavel Zhukov <pzhukov@redhat.com> - 2:7.70-3
|
* Wed May 5 2021 Pavel Zhukov <pzhukov@redhat.com> - 3:7.91-7
|
||||||
- Disable build with libssh in RHEL (#1584704)
|
- Fix crash with unix sockets
|
||||||
|
|
||||||
|
* Fri Apr 16 2021 Pavel Zhukov <pzhukov@redhat.com> - 3:7.91-6
|
||||||
|
- Bumping release because brew is ignorant of such innovative concept as RPM Epochs
|
||||||
|
|
||||||
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3:7.91-2
|
||||||
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
* Thu Apr 8 2021 Pavel Zhukov <pzhukov@redhat.com> - 3:7.91-1
|
||||||
|
- Bring 7.91 back
|
||||||
|
|
||||||
|
* Sun Mar 07 2021 Robert Scheck <robert@fedoraproject.org> - 3:7.80-11
|
||||||
|
- Manage nc symlink using alternatives (#1653119)
|
||||||
|
|
||||||
|
* Wed Feb 10 2021 Pavel Zhukov <pzhukov@redhat.com> - 3:7.80-10
|
||||||
|
- Do not listen on ipv6 if it's disabled
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3:7.80-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 13 2021 Pavel Zhukov <pzhukov@redhat.com> - 3:7.80-8
|
||||||
|
- Replace FD_ functions with safe implementation (#1914734)
|
||||||
|
|
||||||
|
* Sun Jan 10 2021 Pavel Zhukov <pzhukov@redhat.com> - 3:7.80-7
|
||||||
|
- Drop nmap >= 7.90
|
||||||
|
|
||||||
|
* Thu Aug 20 2020 Pavel Zhukov <pzhukov@redhat.com> - 2:7.80-6
|
||||||
|
- Drop libssh from eln
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2:7.80-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue May 19 2020 Pavel Zhukov <pzhukov@redhat.com> - 2:7.80-4
|
||||||
|
- Do not assert on unsolicited ARP response (#1836989)
|
||||||
|
|
||||||
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2:7.80-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Aug 13 2019 Peter Robinson <pbrobinson@fedoraproject.org> 2:7.80-2
|
||||||
|
- Re-provide nc, clearly 7 years isn't enough
|
||||||
|
|
||||||
|
* Mon Aug 12 2019 Peter Robinson <pbrobinson@fedoraproject.org> 2:7.80-1
|
||||||
|
- Update to 7.80
|
||||||
|
- Drop features conditionals from old releases
|
||||||
|
- Use %%license, package cleanups
|
||||||
|
|
||||||
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:7.70-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu May 2 2019 Pavel Zhukov <pzhukov@redhat.com> - 2:7.70-7
|
||||||
|
- Fix double free when ssh connections fails
|
||||||
|
|
||||||
|
* Tue Feb 5 2019 Pavel Zhukov <pzhukov@redhat.com> - 2:7.70-6
|
||||||
|
- Fix ipv6 literals parsing in proxy connection
|
||||||
|
|
||||||
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:7.70-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Sep 10 2018 Pavel Zhukov <pzhukov@redhat.com> - 2:7.70-4
|
||||||
|
- Obsolete frontend packages in f29+ (#1626804)
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:7.70-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
* Thu Apr 19 2018 Pavel Zhukov <pzhukov@redhat.com> - 2:7.70-2
|
* Thu Apr 19 2018 Pavel Zhukov <pzhukov@redhat.com> - 2:7.70-2
|
||||||
- Do not build zenmap and ndiff because of python2 deprecation
|
- Do not build zenmap and ndiff because of python2 deprecation
|
25
gating.yaml
25
gating.yaml
@ -1,25 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- fedora-*
|
|
||||||
decision_context: bodhi_update_push_testing
|
|
||||||
subject_type: koji_build
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional}
|
|
||||||
|
|
||||||
#Rawhide
|
|
||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- fedora-*
|
|
||||||
decision_context: bodhi_update_push_stable
|
|
||||||
subject_type: koji_build
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional}
|
|
||||||
|
|
||||||
#gating rhel
|
|
||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- rhel-*
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-public.functional}
|
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional}
|
|
36
plans.fmf
36
plans.fmf
@ -1,36 +0,0 @@
|
|||||||
/tier1-internal:
|
|
||||||
plan:
|
|
||||||
import:
|
|
||||||
url: https://src.fedoraproject.org/tests/nmap.git
|
|
||||||
name: /plans/tier1/internal
|
|
||||||
|
|
||||||
/tier1-public:
|
|
||||||
plan:
|
|
||||||
import:
|
|
||||||
url: https://src.fedoraproject.org/tests/nmap.git
|
|
||||||
name: /plans/tier1/public
|
|
||||||
|
|
||||||
/tier2-tier3-internal:
|
|
||||||
plan:
|
|
||||||
import:
|
|
||||||
url: https://src.fedoraproject.org/tests/nmap.git
|
|
||||||
name: /plans/tier2-tier3/internal
|
|
||||||
|
|
||||||
/tier2-tier3-public:
|
|
||||||
plan:
|
|
||||||
import:
|
|
||||||
url: https://src.fedoraproject.org/tests/nmap.git
|
|
||||||
name: /plans/tier2-tier3/public
|
|
||||||
|
|
||||||
/others-internal:
|
|
||||||
plan:
|
|
||||||
import:
|
|
||||||
url: https://src.fedoraproject.org/tests/nmap.git
|
|
||||||
name: /plans/others/internal
|
|
||||||
|
|
||||||
/others-public:
|
|
||||||
plan:
|
|
||||||
import:
|
|
||||||
url: https://src.fedoraproject.org/tests/nmap.git
|
|
||||||
name: /plans/others/public
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user