Projects
home:pandora:RobinOS23
nmap
_service:download_src_package:nmap.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:nmap.spec of Package nmap
%define anolis_release 1 %global _hardened_build 1 Name: nmap Epoch: 3 Version: 7.93 Release: %{anolis_release}%{?dist}.1 Summary: Network exploration tool and security scanner URL: http://nmap.org/ # Uses combination of licenses based on GPL license, but with extra modification License: Nmap Source0: http://nmap.org/dist/%{name}-%{version}.tar.bz2 Source1: https://nmap.org/dist/sigs/%{name}-%{version}.tar.bz2.asc Source2: https://svn.nmap.org/nmap/docs/nmap_gpgkeys.txt BuildRequires: automake make BuildRequires: autoconf BuildRequires: gcc-c++ BuildRequires: gettext-devel BuildRequires: libpcap-devel BuildRequires: libssh2-devel 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 Obsoletes: nmap-ndiff %define pixmap_srcdir zenmap/share/pixmaps %description Nmap is a utility for network exploration or security auditing. It supports ping scanning (determine which hosts are up), many port scanning techniques (determine what services the hosts are offering), and TCP/IP fingerprinting (remote host operating system identification). Nmap also offers flexible target and port specification, decoy scanning, determination of TCP sequence predictability characteristics, reverse-identd scanning, and more. In addition to the classic command-line nmap executable, the Nmap suite includes a flexible data transfer, redirection, and debugging tool (netcat utility ncat), a utility for comparing scan results (ndiff), and a packet generation and response analysis tool (nping). %package ncat Summary: Nmap's Netcat replacement Requires(post): %{_sbindir}/alternatives Requires(preun): %{_sbindir}/alternatives Obsoletes: nc < 1.109.20120711 Obsoletes: nc6 < 1.00 Provides: nc nc6 %description ncat Ncat is a feature packed networking utility which will read and write data across a network from the command line. It uses both TCP and UDP for communication and is designed to be a reliable back-end tool to instantly provide network connectivity to other applications and users. Ncat will not only work with IPv4 and IPv6 but provides the user with a virtually limitless number of potential uses. %package doc Summary: Documentation files for %{name} Requires: %{name}-ncat = %{epoch}:%{version}-%{release} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %prep %{gpgverify} --keyring=%{SOURCE2} --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -p1 #be sure we're not using tarballed copies of some libraries #rm -rf liblua libpcap libpcre macosx mswin32 ###TODO### 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" ### TODO ## configure --with-libpcap=/usr ###TODO### %configure --with-libpcap=yes --with-liblua=included \ --without-zenmap --without-ndiff \ --with-libssh2=yes \ --enable-dbus %make_build sed -i 's/-md/-mf/' nping/docs/nping.1 %install #prevent stripping - replace strip command with 'true' make DESTDIR=%{buildroot} STRIP=true install rm -f %{buildroot}%{_datadir}/ncat/ca-bundle.crt rmdir %{buildroot}%{_datadir}/ncat touch %{buildroot}%{_mandir}/man1/nc.1.gz touch %{buildroot}%{_bindir}/nc %find_lang nmap --with-man %post ncat %{_sbindir}/alternatives --install %{_bindir}/nc nc %{_bindir}/ncat 10 \ --slave %{_mandir}/man1/nc.1.gz nc-man %{_mandir}/man1/ncat.1.gz %preun ncat if [ $1 -eq 0 ]; then %{_sbindir}/alternatives --remove nc %{_bindir}/ncat fi %files -f nmap.lang %license LICENSE %doc docs/README %doc docs/nmap.usage.txt %{_bindir}/nmap %{_bindir}/nping %{_mandir}/man1/nmap.1.gz %{_mandir}/man1/nping.1.gz %{_datadir}/nmap %files ncat %license LICENSE %ghost %{_bindir}/nc %{_bindir}/ncat %ghost %{_mandir}/man1/nc.1.gz %{_mandir}/man1/ncat.1.gz %files doc %doc ncat/docs/AUTHORS ncat/docs/README ncat/docs/THANKS ncat/docs/examples %changelog * Tue Sep 20 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 3:7.93-1 - update to 7.93 * Fri Apr 15 2022 zhang xianting <zhangxianting@uniontech.com> - 3:7.92-1 - Initial build for Anolis V23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2