fragroute: 1.2

Closes Homebrew/homebrew#19608.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Chang Lan 2013-05-05 02:49:15 +08:00 committed by Adam Vandenberg
parent a4ab7597cb
commit ddcffdc379
1 changed files with 26 additions and 0 deletions

26
Formula/fragroute.rb Normal file
View File

@ -0,0 +1,26 @@
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'
def patches
{ :p0 => [
"https://trac.macports.org/export/105753/trunk/dports/net/fragroute/files/configure.patch",
"https://trac.macports.org/export/105753/trunk/dports/net/fragroute/files/fragroute.c.patch",
"https://trac.macports.org/export/105753/trunk/dports/net/fragroute/files/pcaputil.c.patch"
]}
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-libevent=#{Formula.factory("libevent").opt_prefix}",
"--with-libdnet=#{Formula.factory("libdnet").opt_prefix}"
system "make", "install"
end
end