homebrew-core/Formula/fragroute.rb

35 lines
1.1 KiB
Ruby
Raw Normal View History

require 'formula'
class Fragroute < Formula
homepage 'http://www.monkey.org/~dugsong/fragroute/'
url 'http://www.monkey.org/~dugsong/fragroute/fragroute-1.2.tar.gz'
sha1 '0e85daf40f4910d56d75e6cdee163305a1cb9004'
depends_on 'libdnet'
depends_on 'libevent'
2014-03-14 15:03:23 +00:00
patch :p0 do
url "https://trac.macports.org/export/105753/trunk/dports/net/fragroute/files/configure.patch"
sha1 "a858f069dffcb539edbb3fe543200596214669f8"
end
patch :p0 do
url "https://trac.macports.org/export/105753/trunk/dports/net/fragroute/files/fragroute.c.patch"
sha1 "a865ee37762c4f31882a2b54a03bf74e5c1b7832"
end
patch :p0 do
url "https://trac.macports.org/export/105753/trunk/dports/net/fragroute/files/pcaputil.c.patch"
sha1 "e5fac9731901d5a20d202511ab2acd76a3b12da9"
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
2014-03-14 15:38:50 +00:00
"--mandir=#{man}",
2014-02-25 05:31:31 +00:00
"--with-libevent=#{Formula["libevent"].opt_prefix}",
"--with-libdnet=#{Formula["libdnet"].opt_prefix}"
system "make", "install"
end
end