aboutsummaryrefslogtreecommitdiff
path: root/net/p5-Net
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2007-02-09 16:02:06 +0000
committerMathieu Arnold <mat@FreeBSD.org>2007-02-09 16:02:06 +0000
commite7816e5b404a28d6ff848565aa56fb50e7cb13b1 (patch)
tree5bc150a98befa05aa9f0520354a4b713e5c5d814 /net/p5-Net
parente408f5de0f622a342539e2ead44deaba5fe64760 (diff)
downloadports-e7816e5b404a28d6ff848565aa56fb50e7cb13b1.tar.gz
ports-e7816e5b404a28d6ff848565aa56fb50e7cb13b1.zip
Notes
Diffstat (limited to 'net/p5-Net')
-rw-r--r--net/p5-Net/Makefile4
-rw-r--r--net/p5-Net/files/patch-Net_Cmd.pm20
2 files changed, 24 insertions, 0 deletions
diff --git a/net/p5-Net/Makefile b/net/p5-Net/Makefile
index 0d3041cef59c..97e758da6e59 100644
--- a/net/p5-Net/Makefile
+++ b/net/p5-Net/Makefile
@@ -7,6 +7,7 @@
PORTNAME= p5-Net
PORTVERSION= 1.20
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
@@ -32,6 +33,9 @@ MAN3= Net::Cmd.3 \
Net::Time.3 \
Net::libnetFAQ.3
+post-patch:
+ @${RM} ${WRKSRC}/Net/Cmd.pm.orig
+
.include <bsd.port.pre.mk>
# Authen-SASL is not available under perl 5.005_03
diff --git a/net/p5-Net/files/patch-Net_Cmd.pm b/net/p5-Net/files/patch-Net_Cmd.pm
new file mode 100644
index 000000000000..d81d9bb18f3b
--- /dev/null
+++ b/net/p5-Net/files/patch-Net_Cmd.pm
@@ -0,0 +1,20 @@
+--- Net/Cmd.pm~ Fri Oct 27 13:08:07 2006
++++ Net/Cmd.pm Fri Feb 9 16:02:10 2007
+@@ -21,8 +21,6 @@
+ }
+ }
+
+-my $doUTF8 = eval { require utf8 };
+-
+ $VERSION = "2.27";
+ @ISA = qw(Exporter);
+ @EXPORT = qw(CMD_INFO CMD_OK CMD_MORE CMD_REJECT CMD_ERROR CMD_PENDING);
+@@ -394,8 +392,6 @@
+ my $cmd = shift;
+ my $arr = @_ == 1 && ref($_[0]) ? $_[0] : \@_;
+ my $line = join("" ,@$arr);
+-
+- utf8::encode($line) if $doUTF8;
+
+ return 0 unless defined(fileno($cmd));
+