aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ipinfo.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/ipinfo.rb b/Library/Formula/ipinfo.rb
new file mode 100644
index 000000000..ad9a80297
--- /dev/null
+++ b/Library/Formula/ipinfo.rb
@@ -0,0 +1,17 @@
+require "formula"
+
+class Ipinfo < Formula
+ homepage "http://kyberdigi.cz/projects/ipinfo/"
+ url "http://kyberdigi.cz/projects/ipinfo/files/ipinfo-1.1.tar.gz"
+ sha1 "371800b2dfebb7de4ed0cca8d66c77d46477a596"
+
+ def install
+ system "make", "BINDIR=#{bin}",
+ "MANDIR=#{man1}",
+ "install"
+ end
+
+ test do
+ system "ipinfo", "127.0.0.1"
+ end
+end