aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lsof.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/lsof.rb')
-rw-r--r--Library/Formula/lsof.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/lsof.rb b/Library/Formula/lsof.rb
new file mode 100644
index 000000000..9bd433994
--- /dev/null
+++ b/Library/Formula/lsof.rb
@@ -0,0 +1,18 @@
+require 'formula'
+
+class Lsof <Formula
+ url 'ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof.tar.bz2'
+ version '4.82'
+ md5 '5518a0c16fc937523b3d1a946cf59e5b'
+ homepage 'http://people.freebsd.org/~abe/'
+
+ def install
+ system "tar xf lsof_4.82_src.tar"
+ Dir.chdir "lsof_4.82_src" do
+ mv "00README", "../README"
+ system "./Configure -n darwin"
+ system "make"
+ bin.install "lsof"
+ end
+ end
+end