From 8a180d07b2ef068d30a81580c524293ab65420df Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 07:40:00 +0100 Subject: [PATCH] automatic version update by autodist [release 6.46-1mamba;Fri Apr 18 2014] --- README.md | 4 + nmap-6.25-libnl-3.patch | 12 ++ nmap-zenmap-root.desktop | 81 ++++++++++ nmap-zenmap.desktop | 83 ++++++++++ nmap.spec | 336 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 516 insertions(+) create mode 100644 nmap-6.25-libnl-3.patch create mode 100644 nmap-zenmap-root.desktop create mode 100644 nmap-zenmap.desktop create mode 100644 nmap.spec diff --git a/README.md b/README.md index 191b12c..b8fa330 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # nmap +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, sunRPC scanning, reverse-identd scanning, and more. + diff --git a/nmap-6.25-libnl-3.patch b/nmap-6.25-libnl-3.patch new file mode 100644 index 0000000..0d2fc74 --- /dev/null +++ b/nmap-6.25-libnl-3.patch @@ -0,0 +1,12 @@ +diff -Nru nmap-6.25.orig/nping/configure.ac nmap-6.25/nping/configure.ac +--- nmap-6.25.orig/nping/configure.ac 2012-09-19 18:41:30.000000000 +0200 ++++ nmap-6.25/nping/configure.ac 2013-05-25 15:23:30.028679953 +0200 +@@ -119,7 +119,7 @@ + AC_SEARCH_LIBS(dlopen, dl) + + # libpcap can require libnl +-AC_SEARCH_LIBS(nl_handle_alloc, nl) ++AC_SEARCH_LIBS(nl_handle_alloc, nl-3) + + # We test whether they specified openssl desires explicitly + use_openssl="yes" diff --git a/nmap-zenmap-root.desktop b/nmap-zenmap-root.desktop new file mode 100644 index 0000000..3ce20ab --- /dev/null +++ b/nmap-zenmap-root.desktop @@ -0,0 +1,81 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Zenmap (as root) +Name[it]=Zenmap - modalità superutente +GenericName=GUI Port Scanner +GenericName[af]=Poort Skandeerder +GenericName[ar]=أداة مسح المنافذ +GenericName[az]=Port Axtarıcısı +GenericName[bg]=Скенер за отворени портове +GenericName[bn]=পোর্ট স্ক্যানার +GenericName[bs]=Skener portova +GenericName[ca]=Escanegador de ports +GenericName[cs]=Skener portů +GenericName[cy]=Sganiwr Pyrth +GenericName[da]=Portskanner +GenericName[de]=Ports überprüfen +GenericName[el]=Σαρωτής θυρών +GenericName[eo]=Programo por eltrovi malfermitajn pordojn de komputilo +GenericName[es]=Explorador de puertos +GenericName[et]=Portskänner +GenericName[eu]=Ataka eskanerra +GenericName[fa]=پویشگر درگاه +GenericName[fi]=Porttiskanneri +GenericName[fr]=Analyseur de port +GenericName[fy]=Poarteskenner +GenericName[ga]=Scanóir Poirt +GenericName[gl]=Escaneador de Portos +GenericName[he]=סורק יציאות +GenericName[hi]=पोर्ट स्कैनर +GenericName[hr]=Pretraživač portova +GenericName[hu]=Portscanner +GenericName[is]=Gáttarskanni +GenericName[it]=Port scanner +GenericName[ja]=ポートスキャナ +GenericName[km]=កម្មវិធី​ស្កេន​ច្រក +GenericName[ko]=포트 훑어보기 +GenericName[lo]=ເຄືອ່ງມືສະແກນພັອດ +GenericName[lt]=Prievadų skeneris +GenericName[lv]=Portu Skaneris +GenericName[mk]=Скенер на порти +GenericName[mn]=Порт шалгагч +GenericName[ms]=Pengesan Port +GenericName[nb]=Portskanner +GenericName[nds]=Porten-Aftaster +GenericName[nl]=Poortscanner +GenericName[nn]=Portskannar +GenericName[nso]=Sehlodi sa Boemong +GenericName[pa]=ਪੋਰਟ ਸਕੈਨਰ +GenericName[pl]=Skaner portów +GenericName[pt]=Varrimento de Portos +GenericName[pt_BR]=Scanner de Portas +GenericName[ro]=Scanează calculatoare +GenericName[ru]=Сканер портов +GenericName[rw]=Sikaneri Umuyoboro +GenericName[se]=Verrátskánnejeaddji +GenericName[sk]=Skener portov +GenericName[sl]=Pregledovalnik vrat +GenericName[sr]=Порт скенер +GenericName[sr@Latn]=Port skener +GenericName[ss]=Scana sesikhungo +GenericName[sv]=Portavsökare +GenericName[ta]=முனைய வருடி +GenericName[tg]=Даргоҳи сканер +GenericName[th]=เครื่องมือสแกนพอร์ต +GenericName[tr]=Port Tarayıcı +GenericName[tt]=Port Ezläwçe +GenericName[uk]=Сканер портів +GenericName[uz]=Порт сканнер +GenericName[ven]=Tshisedzi tsha Vhuimazwikepe +GenericName[vi]=Quét Cổng +GenericName[xh]=Umshicileli Wofako +GenericName[zh_CN]=端口扫描器 +GenericName[zh_TW]=連接埠掃描程式 +GenericName[zu]=Umhloli wesikhumulo +TryExec=/usr/share/zenmap/su-to-zenmap.sh +Exec=/usr/share/zenmap/su-to-zenmap.sh %F +Terminal=false +Icon=/usr/share/zenmap/pixmaps/zenmap.png +Type=Application +Categories=Application;Network; +Comment=A cross-platform GUI for the Nmap Security Scanner. diff --git a/nmap-zenmap.desktop b/nmap-zenmap.desktop new file mode 100644 index 0000000..1191a8a --- /dev/null +++ b/nmap-zenmap.desktop @@ -0,0 +1,83 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Zenmap +Name[eo]=Pordesplorilo +Name[hi]=एन-मैफे +GenericName=Port Scanner +GenericName[af]=Poort Skandeerder +GenericName[ar]=أداة مسح المنافذ +GenericName[az]=Port Axtarıcısı +GenericName[bg]=Скенер за отворени портове +GenericName[bn]=পোর্ট স্ক্যানার +GenericName[bs]=Skener portova +GenericName[ca]=Escanegador de ports +GenericName[cs]=Skener portů +GenericName[cy]=Sganiwr Pyrth +GenericName[da]=Portskanner +GenericName[de]=Ports überprüfen +GenericName[el]=Σαρωτής θυρών +GenericName[eo]=Programo por eltrovi malfermitajn pordojn de komputilo +GenericName[es]=Explorador de puertos +GenericName[et]=Portskänner +GenericName[eu]=Ataka eskanerra +GenericName[fa]=پویشگر درگاه +GenericName[fi]=Porttiskanneri +GenericName[fr]=Analyseur de port +GenericName[fy]=Poarteskenner +GenericName[ga]=Scanóir Poirt +GenericName[gl]=Escaneador de Portos +GenericName[he]=סורק יציאות +GenericName[hi]=पोर्ट स्कैनर +GenericName[hr]=Pretraživač portova +GenericName[hu]=Portscanner +GenericName[is]=Gáttarskanni +GenericName[it]=Port scanner +GenericName[ja]=ポートスキャナ +GenericName[km]=កម្មវិធី​ស្កេន​ច្រក +GenericName[ko]=포트 훑어보기 +GenericName[lo]=ເຄືອ່ງມືສະແກນພັອດ +GenericName[lt]=Prievadų skeneris +GenericName[lv]=Portu Skaneris +GenericName[mk]=Скенер на порти +GenericName[mn]=Порт шалгагч +GenericName[ms]=Pengesan Port +GenericName[nb]=Portskanner +GenericName[nds]=Porten-Aftaster +GenericName[nl]=Poortscanner +GenericName[nn]=Portskannar +GenericName[nso]=Sehlodi sa Boemong +GenericName[pa]=ਪੋਰਟ ਸਕੈਨਰ +GenericName[pl]=Skaner portów +GenericName[pt]=Varrimento de Portos +GenericName[pt_BR]=Scanner de Portas +GenericName[ro]=Scanează calculatoare +GenericName[ru]=Сканер портов +GenericName[rw]=Sikaneri Umuyoboro +GenericName[se]=Verrátskánnejeaddji +GenericName[sk]=Skener portov +GenericName[sl]=Pregledovalnik vrat +GenericName[sr]=Порт скенер +GenericName[sr@Latn]=Port skener +GenericName[ss]=Scana sesikhungo +GenericName[sv]=Portavsökare +GenericName[ta]=முனைய வருடி +GenericName[tg]=Даргоҳи сканер +GenericName[th]=เครื่องมือสแกนพอร์ต +GenericName[tr]=Port Tarayıcı +GenericName[tt]=Port Ezläwçe +GenericName[uk]=Сканер портів +GenericName[uz]=Порт сканнер +GenericName[ven]=Tshisedzi tsha Vhuimazwikepe +GenericName[vi]=Quét Cổng +GenericName[xh]=Umshicileli Wofako +GenericName[zh_CN]=端口扫描器 +GenericName[zh_TW]=連接埠掃描程式 +GenericName[zu]=Umhloli wesikhumulo +Exec=zenmap +Terminal=false +Icon=/usr/share/zenmap/pixmaps/zenmap.png +Type=Application +Categories=Application;Network;System;Security +X-KDE-RootOnly=true +X-KDE-SubstituteUID=true +X-KDE-Username=root diff --git a/nmap.spec b/nmap.spec new file mode 100644 index 0000000..df713bb --- /dev/null +++ b/nmap.spec @@ -0,0 +1,336 @@ +%define with_systemlua 0 +%define with_zenmap 1 + +Name: nmap +Version: 6.46 +Release: 1mamba +Epoch: 1 +Summary: Network exploration tool and security scanner +Group: Network/Security +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://nmap.org +Source0: http://download.insecure.org/nmap/dist/nmap-%{version}.tar.bz2 +# desktop file got from kappfinder repository +Source1: nmap-zenmap.desktop +Source2: nmap-zenmap-root.desktop +Patch0: nmap-6.25-libnl-3.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libapr-devel +BuildRequires: libgcc +%if %with_systemlua +BuildRequires: liblua-devel +%endif +BuildRequires: libopenssl-devel +BuildRequires: libpcap-devel +BuildRequires: libpcre-devel +%if %with_zenmap +BuildRequires: libpython-devel +%endif +BuildRequires: libstdc++6-devel +BuildRequires: subversion-devel +## AUTOBUILDREQ-END +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: libcairo-devel +BuildRequires: libglitz-devel +BuildRequires: coreutils +%if %with_systemlua +Requires: lua +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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, sunRPC scanning, reverse-identd scanning, and more. + +%if %with_zenmap +%package -n zenmap +Summary: A graphical Front-End for Nmap +Group: Graphical Desktop/Applications/Networking +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Provides: nmap-umit = %{?epoch:%epoch:}%{version}-%{release} +Obsoletes: nmap-frontend +Provides: nmap-frontend = %{?epoch:%epoch:}%{version}-%{release} +Obsoletes: nmap-gtk2 +Provides: nmap-gtk2 = %{?epoch:%epoch:}%{version}-%{release} +Obsoletes: umit +Provides: umit = %{?epoch:%epoch:}%{version}-%{release} +%py_requires + +%description -n zenmap +Nmap is a utility for network exploration or security auditing. +This package contains zenmap, a PyGTK frontend for Nmap. +%endif + +%prep +%setup -q +%patch0 -p1 +cd nping +autoconf +cd .. + +%build +%configure \ + --enable-ipv6 \ +%if %with_systemlua + --with-liblua=%{_prefix} \ +%endif +%if %with_zenmap + --with-umit +%else + --without-umit +%endif + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall + +%if %with_zenmap +sed -i "s,%{buildroot},,g" %{buildroot}%{_bindir}/zenmap +sed -i "s,%{buildroot},,g" %{buildroot}%{_bindir}/uninstall_zenmap +find %{buildroot}%{python_sitearch} -name \*.py -type f | \ +while read f; do + sed -i "s,%{buildroot},,g" $f +done +install -D -m644 %{S:1} \ + %{buildroot}%{_datadir}/applications/zenmap.desktop +#install -D -m644 %{S:2} \ +# %{buildroot}%{_datadir}/applications/zenmap-root.desktop +mv %{buildroot}%{_datadir}/zenmap/locale %{buildroot}%{_datadir}/ + +%find_lang zenmap +%endif + +rm -f %{buildroot}%{_datadir}/applications/zenmap-root.desktop + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_bindir}/ncat +%{_bindir}/ndiff +%{_bindir}/nmap +%{_bindir}/nmap-update +%{_bindir}/nping +%{_datadir}/ncat/ +%{_datadir}/nmap/ +#%{_libexecdir}/nmap/nselib-bin +%{_mandir}/man1/ncat.* +%{_mandir}/man1/ndiff.* +%{_mandir}/man1/nmap.* +%{_mandir}/man1/nmap-update.1.gz +%{_mandir}/man1/nping.* +%lang(de) %{_mandir}/de/man1/nmap.1* +%lang(es) %{_mandir}/es/man1/nmap.1* +%lang(fr) %{_mandir}/fr/man1/nmap.1* +%lang(hr) %{_mandir}/hr/man1/nmap.1* +%lang(hu) %{_mandir}/hu/man1/nmap.1* +%lang(it) %{_mandir}/it/man1/nmap.1* +%lang(ja) %{_mandir}/ja/man1/nmap.1* +%lang(pl) %{_mandir}/pl/man1/nmap.1* +%lang(pt_BR) %{_mandir}/pt_BR/man1/nmap.1* +%lang(pt_PT) %{_mandir}/pt_PT/man1/nmap.1* +%lang(ro) %{_mandir}/ro/man1/nmap.1* +%lang(ru) %{_mandir}/ru/man1/nmap.1* +%lang(sk) %{_mandir}/sk/man1/nmap.1* +%lang(zh) %{_mandir}/zh/man1/nmap.1* +%doc CHANGELOG COPYING HACKING docs/README docs/*.txt + +%if %with_zenmap +%files -n zenmap -f zenmap.lang +%defattr(-,root,root) +%{_bindir}/zenmap +%{_bindir}/uninstall_zenmap +%{_bindir}/nmapfe +%{_bindir}/xnmap +%{_datadir}/applications/zenmap.desktop +#%{_datadir}/icons/nmap-eye.ico +#%{_datadir}/icons/umit_*.ico +%dir %{_datadir}/zenmap +%dir %{_datadir}/zenmap/pixmaps +%dir %{_datadir}/zenmap/pixmaps/radialnet +%{_datadir}/zenmap/pixmaps/*.gif +%{_datadir}/zenmap/pixmaps/*.png +#%{_datadir}/zenmap/pixmaps/*.svg +%{_datadir}/zenmap/pixmaps/radialnet/*.png +#%{_datadir}/zenmap/pixmaps/radialnet/*.svg +%{_datadir}/zenmap/config +%{_datadir}/zenmap/su-to-zenmap.sh +%doc %{_datadir}/zenmap/docs +%{_datadir}/zenmap/misc +%{python_sitelib}/ndiff.py* +%{python_sitelib}/radialnet/* +%{python_sitelib}/zenmapCore +%{python_sitelib}/zenmapGUI +%{python_sitelib}/zenmap-%{version}-py%{python_version}.egg-info +%{_mandir}/man1/zenmap.* +%endif + +%changelog +* Fri Apr 18 2014 Automatic Build System 6.46-1mamba +- automatic version update by autodist + +* Sun Apr 13 2014 Automatic Build System 6.45-1mamba +- automatic version update by autodist + +* Tue Jul 30 2013 Automatic Build System 6.40-1mamba +- automatic version update by autodist + +* Sat May 25 2013 Silvan Calarco 6.25-2mamba +- python 2.7 mass rebuild + +* Fri Nov 30 2012 Automatic Build System 6.25-1mamba +- automatic version update by autodist + +* Sun Jun 17 2012 Automatic Build System 6.01-1mamba +- automatic version update by autodist + +* Sun Jun 10 2012 Automatic Build System 6.00-1mamba +- automatic version update by autodist + +* Wed Oct 05 2011 Automatic Build System 5.61TEST2-1mamba +- automatic version update by autodist + +* Tue Sep 20 2011 Automatic Build System 5.61TEST1-1mamba +- automatic version update by autodist + +* Sat Feb 12 2011 Automatic Build System 5.51-1mamba +- automatic update by autodist + +* Sat Jan 29 2011 Automatic Build System 5.50-1mamba +- automatic update by autodist + +* Mon Jan 10 2011 Automatic Build System 5.36TEST3-1mamba +- automatic update by autodist + +* Wed Jan 27 2010 Automatic Build System 5.21-1mamba +- automatic update to 5.21 by autodist + +* Sat Jan 23 2010 Automatic Build System 5.20-1mamba +- automatic update to 5.20 by autodist + +* Fri Jul 17 2009 Davide Madrisan 5.00-1mamba +- update to 5.00 + +* Sat Jan 17 2009 Davide Madrisan 4.76-2mamba +- configure: force detection of python 2.6 +- do not install zenmap-root.desktop + +* Wed Sep 24 2008 Silvan Calarco 4.76-1mamba +- update to 4.76 + +* Mon Aug 25 2008 Aleph0 4.68-1mamba +- update to 4.68 + +* Thu Jun 05 2008 Aleph0 4.65.1mamba +- update to 4.65 + +* Mon May 05 2008 Aleph0 4.62.1mamba +- update to 4.62 + +* Tue Mar 18 2008 Aleph0 4.60-1mamba +- update to 4.60 + +* Tue Jan 15 2008 Aleph0 4.53-1mamba +- update to 4.53 + +* Mon Jan 07 2008 Aleph0 4.52-1mamba +- update to 4.52 + +* Fri Dec 14 2007 Aleph0 4.50-1mamba +- update to 4.50 (10th birthday celebration release) + +* Fri Nov 30 2007 Aleph0 4.23RC3-1mamba +- update to 4.23RC3 +- nmap-gtk2 package removed (obsoleted by zenmap) + +* Mon Nov 19 2007 Aleph0 4.22SOC8-1mamba +- update to 4.22SOC8 +- package umit renamed to zenmap + +* Wed Oct 17 2007 Aleph0 4.22SOC7-1mamba +- update to 4.22SOC7 +- new subpackage: umit (python frontend for nmap) + +* Thu Mar 22 2007 Aleph0 4.21ALPHA4-1qilnx +- update to version 4.21ALPHA4 by autospec + +* Mon Mar 19 2007 Aleph0 4.21ALPHA3-1qilnx +- update to version 4.21ALPHA3 by autospec + +* Tue Jan 23 2007 Aleph0 4.21ALPHA1-1qilnx +- update to version 4.21ALPHA1 by autospec +- package nmap-frontend renamed to nmap-gtk2 +- man pages for nmapfe and xnmap moved to nmap-gtk2 package +- updated build requirements +- fixed compilation issues in libdnet-stripped embedded library +- new desktop file based on Nmapfe.desktop provided by kappfinder + +* Tue Jun 27 2006 Davide Madrisan 4.11-1qilnx +- update to version 4.11 by autospec + +* Tue Jun 13 2006 Davide Madrisan 4.10-1qilnx +- update to version 4.10 by autospec + +* Wed Apr 26 2006 Davide Madrisan 4.03-1qilnx +- update to version 4.03 by autospec + +* Mon Feb 13 2006 Davide Madrisan 4.01-1qilnx +- update to version 4.01 by autospec + +* Tue Dec 13 2005 Davide Madrisan 3.95-1qilnx +- update to version 3.95 by autospec + +* Thu Nov 10 2005 Davide Madrisan 3.93-2qilnx +- added italian translation to desktop file + +* Tue Sep 13 2005 Davide Madrisan 3.93-1qilnx +- update to version 3.93 by autospec + +* Fri Sep 09 2005 Davide Madrisan 3.90-1qilnx +- update to version 3.90 by autospec + +* Thu Feb 10 2005 Davide Madrisan 3.81-1qilnx +- update to version 3.81 by autospec + +* Wed Nov 03 2004 Silvan Calarco 3.75-2qilnx +- fix nmap frontend menu icon + +* Tue Oct 19 2004 Davide Madrisan 3.75-1qilnx +- update to version 3.75 by autospec + +* Wed Sep 01 2004 Davide Madrisan 3.70-1qilnx +- update to version 3.70 by autospec + +* Wed Jul 07 2004 Davide Madrisan 3.55-1qilnx +- update to 3.55 + +* Fri Jan 22 2004 Davide Madrisan 3.50-1qilnx +- specfile and package updated +- added documentation files + +* Mon Oct 13 2003 Davide Madrisan 3.48-1qilnx +- rebuild with version 3.48 + +* Tue Sep 23 2003 Davide Madrisan 3.45-1qilnx +- rebuild with version 3.45 + +* Fri Jul 03 2003 Silvan Calarco 3.30-1qilnx +- build with new version + +* Fri Jun 20 2003 Silvan Calarco 3.27-3qilnx +- added root %%defattr to nmap-frontend package + +* Mon Jun 16 2003 Silvan Calarco 3.27-2qilnx +- new build with gtk-1.2 for nmap frontend + +* Fri May 23 2003 Alessandro Ramazzina 3.27-1qilnx +- creation of nmap package