home *** CD-ROM | disk | FTP | other *** search
/ Steganos Hacker Tools / SHT151.iso / programme / scanner / nmapNTsp1 / Win_2000.exe / nmapNT-src / nmap-2.53-1.spec < prev    next >
Encoding:
Text File  |  2000-05-08  |  3.6 KB  |  128 lines

  1. %define name nmap
  2. %define version 2.53
  3. %define release 1
  4. %define prefix /usr
  5.  
  6. Summary: Network exploration tool and security scanner
  7. Name: %{name}
  8. Version: %{version}
  9. Release: %{release}
  10. Copyright: GPL
  11. Group: Applications/System
  12. Source0: http://www.insecure.org/nmap/dist/%{name}-%{version}.tgz
  13. URL: http://www.insecure.org/nmap/
  14. BuildRoot: /var/tmp/%{name}-root
  15. # RPM can't be relocatable until I stop storing path info in the binary
  16. # Prefix: %{prefix}
  17.  
  18. %description
  19. Nmap is a utility for network exploration or security auditing. It
  20. supports ping scanning (determine which hosts are up), many port
  21. scanning techniques (determine what services the hosts are offering),
  22. and TCP/IP fingerprinting (remote host operating system
  23. identification). Nmap also offers flexible target and port
  24. specification, decoy scanning, determination of TCP sequence
  25. predictability characteristics, sunRPC scanning, reverse-identd
  26. scanning, and more.
  27.  
  28. %package frontend
  29. Summary: Gtk+ frontend for nmap
  30. Group: Applications/System
  31. Requires: nmap, gtk+
  32. Version: 0.%{version}
  33. %description frontend
  34. This package includes nmapfe, a Gtk+ frontend for nmap. The nmap package must
  35. be installed before installing nmap-frontend.
  36.  
  37. %prep
  38. %setup -q
  39.  
  40. %build
  41. CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
  42. make 
  43.  
  44. %install
  45. rm -rf $RPM_BUILD_ROOT
  46.  
  47. make prefix=$RPM_BUILD_ROOT%{prefix} install
  48.  
  49. mkdir -p $RPM_BUILD_ROOT%{prefix}/share/gnome/apps/Utilities
  50.  
  51. strip $RPM_BUILD_ROOT%{prefix}/bin/* || :
  52. gzip $RPM_BUILD_ROOT%{prefix}/man/man1/* || :
  53.  
  54. %post frontend
  55. rm -f ${prefix}/bin/xnmap
  56. ln -s nmapfe ${prefix}/bin/xnmap
  57.  
  58. %postun frontend
  59. rm -f ${prefix}/bin/xnmap
  60.  
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63.  
  64. %files 
  65. %defattr(-,root,root)
  66. %doc COPYING
  67. %doc docs/README docs/copying.html docs/nmap-fingerprinting-article.txt
  68. %doc docs/nmap.deprecated.txt docs/nmap.usage.txt docs/nmap_doc.html
  69. %doc docs/nmap_manpage.html docs/nmap_manpage-es.html docs/nmap_manpage-fr.html
  70. %{prefix}/bin/nmap
  71. %{prefix}/share/nmap
  72. %{prefix}/man/man1/nmap.1.gz
  73.  
  74. %files frontend
  75. %defattr(-,root,root)
  76. %{prefix}/bin/nmapfe
  77. %{prefix}/bin/xnmap
  78. %{prefix}/share/gnome/apps/Utilities/nmapfe.desktop
  79. %{prefix}/man/man1/xnmap.1.gz
  80. %{prefix}/man/man1/nmapfe.1.gz
  81.  
  82. %changelog
  83. * Thu Dec 30 1999 Fyodor <fyodor@insecure.org>
  84. - Updated description
  85. - Eliminated source1 (nmapfe.desktop) directive and simply packaged it with Nmap
  86. - Fixed nmap distribution URL (source0)
  87. - Added this .rpm to base Nmap distribution
  88.  
  89. * Mon Dec 13 1999 Tim Powers <timp@redhat.com>
  90. - based on origional spec file from
  91.     http://www.insecure.org/nmap/index.html#download
  92. - general cleanups, removed lots of commenrts since it made the spec hard to
  93.     read
  94. - changed group to Applications/System
  95. - quiet setup
  96. - no need to create dirs in the install section, "make
  97.     prefix=$RPM_BUILD_ROOT&{prefix} install" does this.
  98. - using defined %{prefix}, %{version} etc. for easier/quicker maint.
  99. - added docs
  100. - gzip man pages
  101. - strip after files have been installed into buildroot
  102. - created separate package for the frontend so that Gtk+ isn't needed for the
  103.     CLI nmap 
  104. - not using -f in files section anymore, no need for it since there aren't that
  105.     many files/dirs
  106. - added desktop entry for gnome
  107.  
  108. * Sun Jan 10 1999 Fyodor <fyodor@dhp.com>
  109. - Merged in spec file sent in by Ian Macdonald <ianmacd@xs4all.nl>
  110.  
  111. * Tue Dec 29 1998 Fyodor <fyodor@dhp.com>
  112. - Made some changes, and merged in another .spec file sent in
  113.   by Oren Tirosh <oren@hishome.net>
  114.  
  115. * Mon Dec 21 1998 Riku Meskanen <mesrik@cc.jyu.fi>
  116. - initial build for RH 5.x
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.