2012-02-29 17:48:00 +00:00
|
|
|
class Cdpr < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Cisco Discovery Protocol Reporter"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://www.monkeymental.com/"
|
|
|
|
url "https://downloads.sourceforge.net/project/cdpr/cdpr/2.4/cdpr-2.4.tgz"
|
|
|
|
sha256 "32d3b58d8be7e2f78834469bd5f48546450ccc2a86d513177311cce994dfbec5"
|
2012-02-29 17:48:00 +00:00
|
|
|
|
2015-10-09 04:18:14 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-09-28 20:56:38 +00:00
|
|
|
sha256 "c6603372329fd2dc0c60266b3f3eb6c9f7cc5c0ce7f351b05977ab39a18cde7c" => :sierra
|
2015-10-09 04:18:14 +00:00
|
|
|
sha256 "0bdc868c9b11510e2d9e6551dee970c20406215153906d8bc42790d8510ac429" => :el_capitan
|
|
|
|
sha256 "3f0fbd6fe9862b367f64354ad6ce3b2deacd35ae627f8d73d5095739325be378" => :yosemite
|
|
|
|
sha256 "d23bf22f119337fdb04c7a016046ceb6c724d63015f19620d55c3e4883827f21" => :mavericks
|
|
|
|
end
|
|
|
|
|
2012-02-29 17:48:00 +00:00
|
|
|
def install
|
|
|
|
# Makefile hardcodes gcc and other atrocities
|
2015-10-05 12:41:04 +00:00
|
|
|
system ENV.cc, ENV.cflags, "cdpr.c", "cdprs.c", "conffile.c", ENV.ldflags, "-lpcap", "-o", "cdpr"
|
2012-02-29 17:48:00 +00:00
|
|
|
bin.install "cdpr"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
"run cdpr sudo'd in order to avoid the error: 'No interfaces found! Make sure pcap is installed.'"
|
|
|
|
end
|
|
|
|
end
|