aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdrian Almenar2012-02-29 18:48:00 +0100
committerAdam Vandenberg2012-07-28 09:50:03 -0700
commit3ba6f21db7a496ac8ffdd960b123d169279508d2 (patch)
treea1d5599eedea4853d940bf13218a101199f1ffaa /Library/Formula
parent36b2c46376ff5e6c0360dd69571074b3b2dc8be4 (diff)
downloadhomebrew-3ba6f21db7a496ac8ffdd960b123d169279508d2.tar.bz2
Cisco Discovery Protocol Decoder 2.4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cdpr.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/cdpr.rb b/Library/Formula/cdpr.rb
new file mode 100644
index 000000000..2cbaf5bb8
--- /dev/null
+++ b/Library/Formula/cdpr.rb
@@ -0,0 +1,17 @@
+require 'formula'
+
+class Cdpr < Formula
+ homepage 'http://www.monkeymental.com/'
+ url 'http://downloads.sourceforge.net/project/cdpr/cdpr/2.4/cdpr-2.4.tgz'
+ 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