p0f.spec 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ##
  2. ## p0f.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: p0f
  27. Summary: Passive OS Fingerprinting Tool
  28. URL: http://lcamtuf.coredump.cx/p0f.shtml
  29. Vendor: Michal Zalewski
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: Network
  33. License: LGPL
  34. Version: 2.0.2
  35. Release: 20030924
  36. # list of sources
  37. Source0: http://lcamtuf.coredump.cx/p0f.tgz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20030103, libpcap, gcc, make
  42. PreReq: OpenPKG, openpkg >= 20030103, libpcap
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. P0f is a versatile passive OS fingerprinting tool. P0f can identify
  47. the system on machines that connect to your box, machines you
  48. connect to, and even machines that merely go through or near your
  49. box. P0f will also detect what the remote system is hooked up to (be
  50. it Ethernet, DSL, OC3, or avian carriers), how far it is located,
  51. what's its uptime, etc.
  52. %prep
  53. %setup -q -n p0f
  54. %build
  55. %{l_shtool} subst \
  56. -e 's;"p0f.fp";"%{l_prefix}/share/p0f/p0f.fp";g' \
  57. config.h
  58. platform=`uname -s`
  59. %{l_make} %{l_mflags -O} -f mk/$platform \
  60. CC="%{l_cc}" \
  61. CFLAGS="%{l_cflags -O}" \
  62. LIBS="%{l_ldflags} -lpcap"
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. %{l_shtool} mkdir -f -p -m 755 \
  66. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  67. $RPM_BUILD_ROOT%{l_prefix}/share/p0f \
  68. $RPM_BUILD_ROOT%{l_prefix}/man/cat8
  69. %{l_shtool} install -c -s -m 755 \
  70. p0f $RPM_BUILD_ROOT%{l_prefix}/sbin/
  71. %{l_shtool} install -c -m 755 \
  72. p0frep $RPM_BUILD_ROOT%{l_prefix}/sbin/
  73. %{l_shtool} install -c -m 644 \
  74. p0f.fp $RPM_BUILD_ROOT%{l_prefix}/share/p0f/
  75. %{l_shtool} install -c -m 644 \
  76. doc/README $RPM_BUILD_ROOT%{l_prefix}/man/cat8/p0f.8
  77. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  78. %files -f files
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT