2013-05-04 18:49:15 +00:00
|
|
|
class Fragroute < Formula
|
2015-09-14 01:25:02 +00:00
|
|
|
desc "Intercepts, modifies and rewrites egress traffic for a specified host"
|
2016-04-17 20:18:09 +00:00
|
|
|
homepage "https://www.monkey.org/~dugsong/fragroute/"
|
|
|
|
url "https://www.monkey.org/~dugsong/fragroute/fragroute-1.2.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "6899a61ecacba3bb400a65b51b3c0f76d4e591dbf976fba0389434a29efc2003"
|
2013-05-04 18:49:15 +00:00
|
|
|
|
2015-09-14 07:32:07 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2016-04-09 10:08:52 +00:00
|
|
|
sha256 "60baa1ea08440fed50a87e3fcfbbc8d4167b111fa3137341abf18a043bc08502" => :el_capitan
|
2015-09-14 07:32:07 +00:00
|
|
|
sha256 "1a1a94c1bef2b28000555c1f0db1512a682acf0d6c59bb2725c7d82fb4b9e6b0" => :yosemite
|
|
|
|
sha256 "027e59cefd2f7caa43556520e4a15e84071e05c9e785823a1b1001d80300e2a4" => :mavericks
|
|
|
|
sha256 "dcfb82802240c73cb4f224665375aa97ae43287a790e84f26d1f3b2c3b2f9e56" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "libdnet"
|
|
|
|
depends_on "libevent"
|
2013-05-04 18:49:15 +00:00
|
|
|
|
2014-03-14 15:03:23 +00:00
|
|
|
patch :p0 do
|
2015-09-14 01:25:02 +00:00
|
|
|
url "https://raw.githubusercontent.com/Homebrew/patches/2f5cab626/fragroute/configure.patch"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "215e21d92304e47239697945963c61445f961762aea38afec202e4dce4487557"
|
2014-03-14 15:03:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
patch :p0 do
|
2015-09-14 01:25:02 +00:00
|
|
|
url "https://raw.githubusercontent.com/Homebrew/patches/2f5cab626/fragroute/fragroute.c.patch"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "f4475dbe396ab873dcd78e3697db9d29315dcc4147fdbb22acb6391c0de011eb"
|
2014-03-14 15:03:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
patch :p0 do
|
2015-09-14 01:25:02 +00:00
|
|
|
url "https://raw.githubusercontent.com/Homebrew/patches/2f5cab626/fragroute/pcaputil.c.patch"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "c1036f61736289d3e9b9328fcb723dbe609453e5f2aab4875768068faade0391"
|
2013-05-04 18:49:15 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2015-09-14 01:25:02 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--mandir=#{man}
|
|
|
|
--sysconfdir=#{etc}
|
|
|
|
--with-libevent=#{Formula["libevent"].opt_prefix}
|
|
|
|
--with-libdnet=#{Formula["libdnet"].opt_prefix}
|
|
|
|
]
|
|
|
|
|
|
|
|
args << "--with-libpcap=#{MacOS.sdk_path}/usr" unless MacOS::CLT.installed?
|
|
|
|
|
|
|
|
system "./configure", *args
|
2013-05-04 18:49:15 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|