aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/nload.rb
diff options
context:
space:
mode:
authorMax Horvath2011-07-25 17:57:42 +0200
committerAdam Vandenberg2011-07-29 08:31:18 -0700
commit06285ce211343e8a7ccf2557e8d2adac2d6d13ae (patch)
tree21e6d319b1b703f7dad3df7ec21ce5acb859849d /Library/Formula/nload.rb
parentf8d4d3a3448a6909f7cbd5593f5516ad0cab2234 (diff)
downloadhomebrew-06285ce211343e8a7ccf2557e8d2adac2d6d13ae.tar.bz2
nload 0.7.3
nload is a console application which monitors network traffic and bandwidth usage in real time. It visualizes the in- and outgoing traffic using two graphs and provides additional info like total amount of transfered data and min/max network usage. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/nload.rb')
-rw-r--r--Library/Formula/nload.rb37
1 files changed, 37 insertions, 0 deletions
diff --git a/Library/Formula/nload.rb b/Library/Formula/nload.rb
new file mode 100644
index 000000000..f4ac85d42
--- /dev/null
+++ b/Library/Formula/nload.rb
@@ -0,0 +1,37 @@
+require 'formula'
+
+class Nload < Formula
+ url 'http://www.roland-riegel.de/nload/nload-0.7.3.tar.gz'
+ homepage 'http://www.roland-riegel.de/nload/'
+ md5 '9b97c37fe1474f1da42f265fead24081'
+
+ fails_with_llvm
+
+ # Patching configure.in file to make configure compile on Mac OS.
+ # Patch taken from MacPorts.
+ def patches
+ DATA
+ end
+
+ def install
+ system "./run_autotools"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make install"
+ end
+end
+
+
+__END__
+diff --git a/configure.in b/configure.in
+index 87ecc88..4df8dc3 100644
+--- a/configure.in
++++ b/configure.in
+@@ -38,7 +38,7 @@ case $host_os in
+
+ AC_CHECK_FUNCS([memset])
+ ;;
+- *bsd*)
++ *darwin*)
+ AC_DEFINE(HAVE_BSD, 1, [Define to 1 if your build target is BSD.])
+ AM_CONDITIONAL(HAVE_BSD, true)