2012-02-29 17:48:00 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cdpr < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Cisco Discovery Protocol Reporter"
|
2012-02-29 17:48:00 +00:00
|
|
|
homepage 'http://www.monkeymental.com/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/cdpr/cdpr/2.4/cdpr-2.4.tgz'
|
2012-02-29 17:48:00 +00:00
|
|
|
sha1 '45cc185ad0eb16178a795a46e676fa698eedb832'
|
|
|
|
|
|
|
|
def install
|
|
|
|
# Makefile hardcodes gcc and other atrocities
|
|
|
|
system "#{ENV.cc} #{ENV.cflags} cdpr.c cdprs.c conffile.c #{ENV.ldflags} -lpcap -o cdpr"
|
|
|
|
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
|