p0f.spec 3.0 KB

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