365 lines
12 KiB
RPMSpec
365 lines
12 KiB
RPMSpec
%define with_systemlua 0
|
|
%define with_zenmap 1
|
|
|
|
Name: nmap
|
|
Version: 7.90
|
|
Release: 1mamba
|
|
Epoch: 1
|
|
Summary: Network exploration tool and security scanner
|
|
Group: Network/Security
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Aleph0 <aleph0@openmamba.org>
|
|
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
|
|
|
|
%debug_package
|
|
|
|
%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
|
|
|
|
%find_lang nmap --with-man
|
|
|
|
%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 -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%{_bindir}/ncat
|
|
%{_bindir}/ndiff
|
|
%{_bindir}/nmap
|
|
%{_bindir}/nping
|
|
%{_bindir}/uninstall_ndiff
|
|
%{_datadir}/ncat/
|
|
%{_datadir}/nmap/
|
|
%{_mandir}/man1/ncat.*
|
|
%{_mandir}/man1/ndiff.*
|
|
%{_mandir}/man1/nmap.*
|
|
%{_mandir}/man1/nping.*
|
|
%doc LICENSE
|
|
#%doc CHANGELOG 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 Oct 09 2020 Automatic Build System <autodist@mambasoft.it> 7.90-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Aug 10 2019 Automatic Build System <autodist@mambasoft.it> 7.80-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Mar 21 2018 Automatic Build System <autodist@mambasoft.it> 7.70-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Aug 07 2017 Automatic Build System <autodist@mambasoft.it> 7.60-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Dec 21 2016 Automatic Build System <autodist@mambasoft.it> 7.40-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Oct 22 2016 Automatic Build System <autodist@mambasoft.it> 7.31-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Sep 30 2016 Automatic Build System <autodist@mambasoft.it> 7.30-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Mar 30 2016 Automatic Build System <autodist@mambasoft.it> 7.12-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Mar 23 2016 Automatic Build System <autodist@mambasoft.it> 7.11-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Mar 18 2016 Automatic Build System <autodist@mambasoft.it> 7.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Dec 10 2015 Automatic Build System <autodist@mambasoft.it> 7.01-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Nov 24 2015 Automatic Build System <autodist@mambasoft.it> 7.00-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Aug 23 2014 Automatic Build System <autodist@mambasoft.it> 6.47-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Apr 18 2014 Automatic Build System <autodist@mambasoft.it> 6.46-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Apr 13 2014 Automatic Build System <autodist@mambasoft.it> 6.45-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jul 30 2013 Automatic Build System <autodist@mambasoft.it> 6.40-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat May 25 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 6.25-2mamba
|
|
- python 2.7 mass rebuild
|
|
|
|
* Fri Nov 30 2012 Automatic Build System <autodist@mambasoft.it> 6.25-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Jun 17 2012 Automatic Build System <autodist@mambasoft.it> 6.01-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Jun 10 2012 Automatic Build System <autodist@mambasoft.it> 6.00-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Oct 05 2011 Automatic Build System <autodist@mambasoft.it> 5.61TEST2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Sep 20 2011 Automatic Build System <autodist@mambasoft.it> 5.61TEST1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Feb 12 2011 Automatic Build System <autodist@mambasoft.it> 5.51-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sat Jan 29 2011 Automatic Build System <autodist@mambasoft.it> 5.50-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Mon Jan 10 2011 Automatic Build System <autodist@mambasoft.it> 5.36TEST3-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Jan 27 2010 Automatic Build System <autodist@mambasoft.it> 5.21-1mamba
|
|
- automatic update to 5.21 by autodist
|
|
|
|
* Sat Jan 23 2010 Automatic Build System <autodist@mambasoft.it> 5.20-1mamba
|
|
- automatic update to 5.20 by autodist
|
|
|
|
* Fri Jul 17 2009 Davide Madrisan <davide.madrisan@gmail.com> 5.00-1mamba
|
|
- update to 5.00
|
|
|
|
* Sat Jan 17 2009 Davide Madrisan <davide.madrisan@gmail.com> 4.76-2mamba
|
|
- configure: force detection of python 2.6
|
|
- do not install zenmap-root.desktop
|
|
|
|
* Wed Sep 24 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.76-1mamba
|
|
- update to 4.76
|
|
|
|
* Mon Aug 25 2008 Aleph0 <aleph0@openmamba.org> 4.68-1mamba
|
|
- update to 4.68
|
|
|
|
* Thu Jun 05 2008 Aleph0 <aleph0@openmamba.org> 4.65.1mamba
|
|
- update to 4.65
|
|
|
|
* Mon May 05 2008 Aleph0 <aleph0@openmamba.org> 4.62.1mamba
|
|
- update to 4.62
|
|
|
|
* Tue Mar 18 2008 Aleph0 <aleph0@openmamba.org> 4.60-1mamba
|
|
- update to 4.60
|
|
|
|
* Tue Jan 15 2008 Aleph0 <aleph0@openmamba.org> 4.53-1mamba
|
|
- update to 4.53
|
|
|
|
* Mon Jan 07 2008 Aleph0 <aleph0@openmamba.org> 4.52-1mamba
|
|
- update to 4.52
|
|
|
|
* Fri Dec 14 2007 Aleph0 <aleph0@openmamba.org> 4.50-1mamba
|
|
- update to 4.50 (10th birthday celebration release)
|
|
|
|
* Fri Nov 30 2007 Aleph0 <aleph0@openmamba.org> 4.23RC3-1mamba
|
|
- update to 4.23RC3
|
|
- nmap-gtk2 package removed (obsoleted by zenmap)
|
|
|
|
* Mon Nov 19 2007 Aleph0 <aleph0@openmamba.org> 4.22SOC8-1mamba
|
|
- update to 4.22SOC8
|
|
- package umit renamed to zenmap
|
|
|
|
* Wed Oct 17 2007 Aleph0 <aleph0@openmamba.org> 4.22SOC7-1mamba
|
|
- update to 4.22SOC7
|
|
- new subpackage: umit (python frontend for nmap)
|
|
|
|
* Thu Mar 22 2007 Aleph0 <aleph0@openmamba.org> 4.21ALPHA4-1qilnx
|
|
- update to version 4.21ALPHA4 by autospec
|
|
|
|
* Mon Mar 19 2007 Aleph0 <aleph0@openmamba.org> 4.21ALPHA3-1qilnx
|
|
- update to version 4.21ALPHA3 by autospec
|
|
|
|
* Tue Jan 23 2007 Aleph0 <aleph0@openmamba.org> 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 <davide.madrisan@qilinux.it> 4.11-1qilnx
|
|
- update to version 4.11 by autospec
|
|
|
|
* Tue Jun 13 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.10-1qilnx
|
|
- update to version 4.10 by autospec
|
|
|
|
* Wed Apr 26 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.03-1qilnx
|
|
- update to version 4.03 by autospec
|
|
|
|
* Mon Feb 13 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.01-1qilnx
|
|
- update to version 4.01 by autospec
|
|
|
|
* Tue Dec 13 2005 Davide Madrisan <davide.madrisan@qilinux.it> 3.95-1qilnx
|
|
- update to version 3.95 by autospec
|
|
|
|
* Thu Nov 10 2005 Davide Madrisan <davide.madrisan@qilinux.it> 3.93-2qilnx
|
|
- added italian translation to desktop file
|
|
|
|
* Tue Sep 13 2005 Davide Madrisan <davide.madrisan@qilinux.it> 3.93-1qilnx
|
|
- update to version 3.93 by autospec
|
|
|
|
* Fri Sep 09 2005 Davide Madrisan <davide.madrisan@qilinux.it> 3.90-1qilnx
|
|
- update to version 3.90 by autospec
|
|
|
|
* Thu Feb 10 2005 Davide Madrisan <davide.madrisan@qilinux.it> 3.81-1qilnx
|
|
- update to version 3.81 by autospec
|
|
|
|
* Wed Nov 03 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 3.75-2qilnx
|
|
- fix nmap frontend menu icon
|
|
|
|
* Tue Oct 19 2004 Davide Madrisan <davide.madrisan@qilinux.it> 3.75-1qilnx
|
|
- update to version 3.75 by autospec
|
|
|
|
* Wed Sep 01 2004 Davide Madrisan <davide.madrisan@qilinux.it> 3.70-1qilnx
|
|
- update to version 3.70 by autospec
|
|
|
|
* Wed Jul 07 2004 Davide Madrisan <davide.madrisan@qilinux.it> 3.55-1qilnx
|
|
- update to 3.55
|
|
|
|
* Thu Jan 22 2004 Davide Madrisan <davide.madrisan@qilinux.it> 3.50-1qilnx
|
|
- specfile and package updated
|
|
- added documentation files
|
|
|
|
* Mon Oct 13 2003 Davide Madrisan <davide.madrisan@qilinux.it> 3.48-1qilnx
|
|
- rebuild with version 3.48
|
|
|
|
* Tue Sep 23 2003 Davide Madrisan <davide.madrisan@qilinux.it> 3.45-1qilnx
|
|
- rebuild with version 3.45
|
|
|
|
* Thu Jul 03 2003 Silvan Calarco <silvan.calarco@qinet.it> 3.30-1qilnx
|
|
- build with new version
|
|
|
|
* Fri Jun 20 2003 Silvan Calarco <silvan.calarco@qinet.it> 3.27-3qilnx
|
|
- added root %%defattr to nmap-frontend package
|
|
|
|
* Mon Jun 16 2003 Silvan Calarco <silvan.calarco@qinet.it> 3.27-2qilnx
|
|
- new build with gtk-1.2 for nmap frontend
|
|
|
|
* Fri May 23 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 3.27-1qilnx
|
|
- creation of nmap package
|