summaryrefslogtreecommitdiff
path: root/net/p5-Geo-IPfree
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2003-04-02 22:05:45 +0000
committerAnton Berezin <tobez@FreeBSD.org>2003-04-02 22:05:45 +0000
commit2f2d9d857d521288bd77987d415060c57bbaaf27 (patch)
tree82ee15888882c06ed0196e34600b1eb93dbecc43 /net/p5-Geo-IPfree
parentIt looks like something is wrong with CPAN propagation author -> (diff)
Add net/p5-Geo-IPfree, a perl module to lookup country from an IP
address. This module makes such lookups off-line and the database of IPs is free.
Notes
Notes: svn path=/head/; revision=78006
Diffstat (limited to 'net/p5-Geo-IPfree')
-rw-r--r--net/p5-Geo-IPfree/Makefile31
-rw-r--r--net/p5-Geo-IPfree/distinfo1
-rw-r--r--net/p5-Geo-IPfree/pkg-descr8
-rw-r--r--net/p5-Geo-IPfree/pkg-plist8
4 files changed, 48 insertions, 0 deletions
diff --git a/net/p5-Geo-IPfree/Makefile b/net/p5-Geo-IPfree/Makefile
new file mode 100644
index 000000000000..cf4fa90be63f
--- /dev/null
+++ b/net/p5-Geo-IPfree/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: net/p5-Geo-IPfree
+# Date created: 02 April 2003
+# Whom: Anton Berezin <tobez@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Geo-IPfree
+PORTVERSION= 0.2
+CATEGORIES= net perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Geo
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= tobez@FreeBSD.org
+COMMENT= Look up country from an IP Address
+
+BUILD_DEPENDS= ${SITE_PERL}/Memoize.pm:${PORTSDIR}/devel/p5-Memoize
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Geo::IPfree.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE= "Perl 5.6 or newer required. Install lang/perl5 or lang/perl5.8 and try again."
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Geo-IPfree/distinfo b/net/p5-Geo-IPfree/distinfo
new file mode 100644
index 000000000000..f10409b950c1
--- /dev/null
+++ b/net/p5-Geo-IPfree/distinfo
@@ -0,0 +1 @@
+MD5 (Geo-IPfree-0.2.tar.gz) = 581a8f8c917d5e1e44fa2f5223a6832b
diff --git a/net/p5-Geo-IPfree/pkg-descr b/net/p5-Geo-IPfree/pkg-descr
new file mode 100644
index 000000000000..a0fd6e20d75b
--- /dev/null
+++ b/net/p5-Geo-IPfree/pkg-descr
@@ -0,0 +1,8 @@
+Looks up country from an IP Address. This module makes this off-line and
+the database of IPs is free.
+
+Author: Graciliano M. P. <gm@virtuasites.com.br>
+WWW: http://search.cpan.org/search?dist=Geo-IPfree
+
+-Anton
+<tobez@FreeBSD.org>
diff --git a/net/p5-Geo-IPfree/pkg-plist b/net/p5-Geo-IPfree/pkg-plist
new file mode 100644
index 000000000000..cd4cdf101233
--- /dev/null
+++ b/net/p5-Geo-IPfree/pkg-plist
@@ -0,0 +1,8 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Geo/IPfree/.packlist
+%%SITE_PERL%%/Geo/IPfree.pm
+%%SITE_PERL%%/Geo/txt2ipct.pl
+%%SITE_PERL%%/Geo/ipscountry.dat
+%%SITE_PERL%%/Geo/ipct2txt.pl
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Geo/IPfree
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Geo 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Geo 2>/dev/null || true