aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMichael Stephens2009-10-02 22:09:26 -0400
committerMax Howell2009-10-03 13:25:23 +0100
commite7ef3c6ad8a362ef6305965b44bb06931b0f6788 (patch)
treef886bb93c80dd2c75e653641d447e9ce5689174f /Library/Formula
parent1d1f2828ec4e95d69e12a0f9ffd1f17d642f9137 (diff)
downloadhomebrew-e7ef3c6ad8a362ef6305965b44bb06931b0f6788.tar.bz2
GeoIP formula
GeoIP is a C library that enables the user to find geographical and network information of an IP address.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/geoip.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/geoip.rb b/Library/Formula/geoip.rb
new file mode 100644
index 000000000..41d1e9e5d
--- /dev/null
+++ b/Library/Formula/geoip.rb
@@ -0,0 +1,14 @@
+require 'brewkit'
+
+# TODO common aliases libgeoip
+
+class Geoip <Formula
+ url 'http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz'
+ homepage 'http://www.maxmind.com/app/c'
+ md5 'cb14b1beeb40631a12676b11ca0c309a'
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
+ system "make install"
+ end
+end