aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
Diffstat (limited to 'dns')
-rw-r--r--dns/p5-pgeodns/Makefile8
-rw-r--r--dns/p5-pgeodns/distinfo4
-rw-r--r--dns/p5-pgeodns/files/patch-version.t25
-rw-r--r--dns/p5-pgeodns/pkg-plist2
4 files changed, 33 insertions, 6 deletions
diff --git a/dns/p5-pgeodns/Makefile b/dns/p5-pgeodns/Makefile
index 9ede860d4022..39a970ea6dad 100644
--- a/dns/p5-pgeodns/Makefile
+++ b/dns/p5-pgeodns/Makefile
@@ -6,9 +6,9 @@
#
PORTNAME= pgeodns
-PORTVERSION= 1.32
+PORTVERSION= 1.41
CATEGORIES= dns perl5
-MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+MASTER_SITES= http://cloud.github.com/downloads/abh/pgeodns/
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
@@ -18,9 +18,11 @@ BUILD_DEPENDS= p5-Geo-IP>=0:${PORTSDIR}/net/p5-Geo-IP \
p5-JSON>=0:${PORTSDIR}/converters/p5-JSON \
p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS
RUN_DEPENDS:= ${BUILD_DEPENDS}
+TEST_DEPENDS= p5-Test-Warn>=0:${PORTSDIR}/devel/p5-Test-Warn
PERL_CONFIGURE= yes
-MAN1= pgeodns.pl.1
+NO_MANCOMPRESS= no
+MAN1= pgeodns.1
.include <bsd.port.mk>
diff --git a/dns/p5-pgeodns/distinfo b/dns/p5-pgeodns/distinfo
index 948234dfc146..35339cb210b5 100644
--- a/dns/p5-pgeodns/distinfo
+++ b/dns/p5-pgeodns/distinfo
@@ -1,2 +1,2 @@
-SHA256 (pgeodns-1.32.tar.gz) = 38e63eb4986c709864548ea533e61016ac366a6ed521eed7d891ddf742aaca5a
-SIZE (pgeodns-1.32.tar.gz) = 126722
+SHA256 (pgeodns-1.41.tar.gz) = 40d38b5eee1812cdd9a846eebdbe3de8db32c87f4a3ad3e384c39ab6e89a9d52
+SIZE (pgeodns-1.41.tar.gz) = 129276
diff --git a/dns/p5-pgeodns/files/patch-version.t b/dns/p5-pgeodns/files/patch-version.t
new file mode 100644
index 000000000000..77d279b9184e
--- /dev/null
+++ b/dns/p5-pgeodns/files/patch-version.t
@@ -0,0 +1,25 @@
+--- ./t/version.t.orig 2012-02-29 10:44:30.642824576 -0500
++++ ./t/version.t 2012-02-29 10:45:12.047827564 -0500
+@@ -18,12 +18,12 @@
+ like($ans[1]->[0]->rdatastr, qr!q: 1,!, 'one query now');
+
+ ok(@ans = $g->reply_handler("version.example.com", "IN", "TXT", "192.168.0.10"), "version request, txt");
+-like($ans[1]->[0]->rdatastr, qr!v$GeoDNS::VERSION/!, 'got the version back');
++like($ans[1]->[0]->rdatastr, qr!v$GeoDNS::VERSION!, 'got the version back');
+
+ ok(sleep 1, 'sleep a second');
+
+ ok(@ans = $g->reply_handler("version.example.com", "IN", "ANY", "192.168.0.10"), "version request, any");
+-like($ans[1]->[0]->rdatastr, qr!v$GeoDNS::VERSION/!, 'got the version back');
++like($ans[1]->[0]->rdatastr, qr!v$GeoDNS::VERSION!, 'got the version back');
+
+ ok(@ans = $g->reply_handler("status.example.com", "IN", "ANY", "192.168.0.10"), "status request, any");
+ like($ans[1]->[0]->rdatastr, qr!q: 4,!, 'four queries now');
+@@ -38,6 +38,6 @@
+ my $x = join "\n", $ans[1]->[0]->char_str_list;
+ #warn "[", ref $x, "] $x";
+ ok(my $data = decode_json($x), "decode json");
+-like($data->{v}, qr!v$GeoDNS::VERSION/!, 'got the version back');
++like($data->{v}, qr!v$GeoDNS::VERSION!, 'got the version back');
+
+ done_testing();
diff --git a/dns/p5-pgeodns/pkg-plist b/dns/p5-pgeodns/pkg-plist
index 7de8fba3c5b7..371d1c18dbbb 100644
--- a/dns/p5-pgeodns/pkg-plist
+++ b/dns/p5-pgeodns/pkg-plist
@@ -1,4 +1,4 @@
-bin/pgeodns.pl
+bin/pgeodns
%%SITE_PERL%%/Countries.pm
%%SITE_PERL%%/GeoDNS.pm
%%SITE_PERL%%/pgeodns.pl