95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
16 lines
574 B
Ruby
16 lines
574 B
Ruby
class Cdpr < Formula
|
|
desc "Cisco Discovery Protocol Reporter"
|
|
homepage "http://www.monkeymental.com/"
|
|
url "https://downloads.sourceforge.net/project/cdpr/cdpr/2.4/cdpr-2.4.tgz"
|
|
sha256 "32d3b58d8be7e2f78834469bd5f48546450ccc2a86d513177311cce994dfbec5"
|
|
|
|
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
|