summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dns/p5-Net-DNS/Makefile4
-rw-r--r--dns/p5-Net-DNS/files/patch-aa14
-rw-r--r--net/p5-Net-DNS/Makefile4
-rw-r--r--net/p5-Net-DNS/files/patch-aa14
4 files changed, 36 insertions, 0 deletions
diff --git a/dns/p5-Net-DNS/Makefile b/dns/p5-Net-DNS/Makefile
index 9e1750001df6..393c2b182a78 100644
--- a/dns/p5-Net-DNS/Makefile
+++ b/dns/p5-Net-DNS/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Net-DNS
PORTVERSION= 0.12
+PORTREVISION= 1
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Net
@@ -29,4 +30,7 @@ MAN3= Net::DNS.3 Net::DNS::Header.3 Net::DNS::Packet.3 \
Net::DNS::RR::NSAP.3 Net::DNS::RR::NULL.3 Net::DNS::RR::PX.3 \
Net::DNS::Update.3
+post-patch:
+ find ${WRKSRC} -name "*.orig" -exec ${RM} "{}" ";"
+
.include <bsd.port.mk>
diff --git a/dns/p5-Net-DNS/files/patch-aa b/dns/p5-Net-DNS/files/patch-aa
new file mode 100644
index 000000000000..8fba787cc0bf
--- /dev/null
+++ b/dns/p5-Net-DNS/files/patch-aa
@@ -0,0 +1,14 @@
+--- lib/Net/DNS/Resolver.pm.bak Thu Oct 2 09:32:14 1997
++++ lib/Net/DNS/Resolver.pm Fri Dec 21 00:20:11 2001
+@@ -244,7 +244,10 @@
+ }
+
+ sub nextid {
+- return $global{"id"}++;
++ if (++$global{"id"} > 65535) {
++ $global{"id"} = 0;
++ }
++ return $global{"id"};
+ }
+
+ =head2 searchlist
diff --git a/net/p5-Net-DNS/Makefile b/net/p5-Net-DNS/Makefile
index 9e1750001df6..393c2b182a78 100644
--- a/net/p5-Net-DNS/Makefile
+++ b/net/p5-Net-DNS/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Net-DNS
PORTVERSION= 0.12
+PORTREVISION= 1
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Net
@@ -29,4 +30,7 @@ MAN3= Net::DNS.3 Net::DNS::Header.3 Net::DNS::Packet.3 \
Net::DNS::RR::NSAP.3 Net::DNS::RR::NULL.3 Net::DNS::RR::PX.3 \
Net::DNS::Update.3
+post-patch:
+ find ${WRKSRC} -name "*.orig" -exec ${RM} "{}" ";"
+
.include <bsd.port.mk>
diff --git a/net/p5-Net-DNS/files/patch-aa b/net/p5-Net-DNS/files/patch-aa
new file mode 100644
index 000000000000..8fba787cc0bf
--- /dev/null
+++ b/net/p5-Net-DNS/files/patch-aa
@@ -0,0 +1,14 @@
+--- lib/Net/DNS/Resolver.pm.bak Thu Oct 2 09:32:14 1997
++++ lib/Net/DNS/Resolver.pm Fri Dec 21 00:20:11 2001
+@@ -244,7 +244,10 @@
+ }
+
+ sub nextid {
+- return $global{"id"}++;
++ if (++$global{"id"} > 65535) {
++ $global{"id"} = 0;
++ }
++ return $global{"id"};
+ }
+
+ =head2 searchlist