[Lunar-commits] <moonbase> IP-Country: new perl module

Auke Kok sofar at foo-projects.org
Mon Aug 10 08:03:12 CEST 2009


commit a06736b923dd8224d77459beb8ff2eca053f2c71
Author: Paul Bredbury <brebs at sent.com>
Date:   Mon Aug 10 08:03:12 2009 +0200

    IP-Country: new perl module
    
    Useful with spamassassin:
    http://wiki.apache.org/spamassassin/RelayCountryPlugin
---
 zbeta/IP-Country/BUILD   |    6 ++++++
 zbeta/IP-Country/DEPENDS |    1 +
 zbeta/IP-Country/DETAILS |   24 ++++++++++++++++++++++++
 3 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/zbeta/IP-Country/BUILD b/zbeta/IP-Country/BUILD
new file mode 100644
index 0000000..a543489
--- /dev/null
+++ b/zbeta/IP-Country/BUILD
@@ -0,0 +1,6 @@
+(
+
+  perl Makefile.PL  &&
+  default_make
+
+) > $C_FIFO 2>&1
diff --git a/zbeta/IP-Country/DEPENDS b/zbeta/IP-Country/DEPENDS
new file mode 100644
index 0000000..4a39dbf
--- /dev/null
+++ b/zbeta/IP-Country/DEPENDS
@@ -0,0 +1 @@
+depends Geography-Countries
diff --git a/zbeta/IP-Country/DETAILS b/zbeta/IP-Country/DETAILS
new file mode 100644
index 0000000..971e460
--- /dev/null
+++ b/zbeta/IP-Country/DETAILS
@@ -0,0 +1,24 @@
+          MODULE=IP-Country
+         VERSION=2.27
+          SOURCE=$MODULE-$VERSION.tar.gz
+      SOURCE_URL=http://search.cpan.org/CPAN/authors/id/N/NW/NWETTERS
+      SOURCE_VFY=sha1:889644a7c49714fa6968a0d78f5dfc091f4b0181
+        WEB_SITE=http://search.cpan.org/dist/IP-Country/
+         ENTERED=20090810
+         UPDATED=20090810
+           SHORT="Fast lookup of country codes from IP addresses"
+
+cat << EOF
+Finding the home country of a client using only the IP address can be
+difficult. Looking up the domain name associated with that address can
+provide some help, but many IP addresses are not reverse-mapped to any
+useful domain, and the most common domain (.com) offers no help when
+looking for the country.
+
+This module comes bundled with a database of countries where various IP
+addresses have been assigned. Although the country of assignment will
+probably be the country associated with a large ISP rather than the
+client herself, this is probably good enough for most log analysis
+applications, and under tests has proved to be as accurate as
+reverse-DNS and WHOIS lookup.
+EOF


More information about the Lunar-commits mailing list