nmap.spec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ##
  2. ## nmap.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. %define V_real 2.54BETA29
  25. %define V_ours 2.54b29
  26. # package information
  27. Name: nmap
  28. Summary: Network Mapping Tool
  29. URL: http://www.insecure.org/nmap/
  30. Vendor: Fyodor
  31. Packager: The OpenPKG Project
  32. Distribution: OpenPKG [EXP]
  33. Group: Net
  34. License: GPL
  35. Version: %{V_ours}
  36. Release: %{l_branch}.0
  37. # list of sources
  38. Source0: http://www.insecure.org/nmap/dist/nmap-%{V_real}.tgz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 0.9-33
  43. PreReq: OpenPKG, openpkg >= 0.9-33
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. nmap is a utility for port scanning large networks, although it
  48. works fine for single hosts. The guiding philosophy for the creation
  49. of nmap was TMTOWTDI (There's More Than One Way To Do It). This is
  50. the Perl slogan, but it is equally applicable to scanners. Sometimes
  51. you need speed, other times you may need stealth. In some cases,
  52. bypassing firewalls may be required. Not to mention the fact that
  53. you may want to scan different protocols (UDP, TCP, ICMP, etc.). You
  54. just can't do all this with one scanning mode. And you don't want to
  55. have 10 different scanners around, all with different interfaces and
  56. capabilities. Thus I incorporated virtually every scanning technique
  57. I know into nmap.
  58. %prep
  59. %setup -q -n nmap-%{V_real}
  60. %build
  61. %{l_rpmtool} subst "s;nmapfe;;g" -- configure
  62. %{l_rpmtool} subst "s;nmapfe/nmapfe;;g" -- Makefile.in
  63. CC="%{l_cc}" \
  64. CFLAGS="%{l_cflags -O}" \
  65. ./configure \
  66. --prefix=%{l_prefix}
  67. %{l_make} %{l_mflags -O}
  68. %install
  69. rm -rf $RPM_BUILD_ROOT
  70. %{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
  71. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gnome
  72. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  73. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  74. %files -f files
  75. %clean
  76. rm -rf $RPM_BUILD_ROOT