aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/p0f.rb
blob: 83784c75956516949e6f23d2a262cd3dff0e262c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

# Official site is no longer responding; use
# this GitHub mirror for now.
class P0f <Formula
  url 'http://github.com/downloads/skord/p0f/p0f-2.0.8.tgz'
  homepage 'http://github.com/skord/p0f'
  md5 '1ccbcd8d4c95ef6dae841120d23c56a5'

  def install
    inreplace "config.h", "/etc/p0f", "#{etc}/p0f"
    system "make"
    sbin.install ["p0frep", "p0f"]
    (etc+"p0f").install Dir['*.fp']
    man1.install gzip("p0f.1")
  end
end