diff options
-rw-r--r-- | net/p5-Net-SNPP/Makefile | 11 | ||||
-rw-r--r-- | net/p5-Net-SNPP/distinfo | 2 | ||||
-rw-r--r-- | net/p5-Net-SNPP/files/patch-lib-Net-SNPP-Server.pm | 28 | ||||
-rw-r--r-- | net/p5-Net-SNPP/pkg-plist | 1 |
4 files changed, 39 insertions, 3 deletions
diff --git a/net/p5-Net-SNPP/Makefile b/net/p5-Net-SNPP/Makefile index 1500f1ecc0dc..31cd5e1decbe 100644 --- a/net/p5-Net-SNPP/Makefile +++ b/net/p5-Net-SNPP/Makefile @@ -6,7 +6,7 @@ # PORTNAME= Net-SNPP -PORTVERSION= 1.14 +PORTVERSION= 1.15a CATEGORIES= net perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Net @@ -16,8 +16,15 @@ MAINTAINER= erwin@FreeBSD.org COMMENT= Net::SNPP - Perl Simple Network Pager Protocol Client PERL_CONFIGURE= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-1.15 -MAN3= Net::SNPP.3 +MAN3= Net::SNPP.3 \ + Net::SNPP::Server.3 + +post-patch: + @${PERL} -pi -e '$$_="" if /warnings/;' \ + ${WRKSRC}/lib/Net/SNPP/Server.pm + @${RM} ${WRKSRC}/lib/Net/SNPP/Server.pm.orig .include <bsd.port.pre.mk> diff --git a/net/p5-Net-SNPP/distinfo b/net/p5-Net-SNPP/distinfo index 2c53134ad37d..6aad7cafdb06 100644 --- a/net/p5-Net-SNPP/distinfo +++ b/net/p5-Net-SNPP/distinfo @@ -1 +1 @@ -MD5 (Net-SNPP-1.14.tar.gz) = e5e36c9c8c83e70c4cf769abd58397a0 +MD5 (Net-SNPP-1.15a.tar.gz) = 6c3f5669ef3c8238dffd2bad6371196f diff --git a/net/p5-Net-SNPP/files/patch-lib-Net-SNPP-Server.pm b/net/p5-Net-SNPP/files/patch-lib-Net-SNPP-Server.pm new file mode 100644 index 000000000000..4ddc234324fc --- /dev/null +++ b/net/p5-Net-SNPP/files/patch-lib-Net-SNPP-Server.pm @@ -0,0 +1,28 @@ +--- lib/Net/SNPP/Server.pm.orig Fri Oct 3 15:46:55 2003 ++++ lib/Net/SNPP/Server.pm Sun Oct 5 12:29:05 2003 +@@ -1,6 +1,5 @@ + package Net::SNPP::Server; + use strict; +-use warnings; + use Socket; + use IO::Handle; + use Net::Cmd; +@@ -415,7 +414,6 @@ + # 4.3.6 HELP (optional) ---------------------------------------------- # + elsif ( $user_cmd eq 'HELP' ) { + { +- no warnings; # so we can use <DATA> + while (<DATA>) { $client->command( $_ ) } + $client->command( "250 End of Help Information" ); + } +@@ -573,7 +571,9 @@ + my @pids = (); # pids to merge before exit + + # create a pipe for communication from child back to this process +- our( $rp, $wp ) = ( IO::Handle->new(), IO::Handle->new() ); ++ use vars qw($rp $wp); ++ $rp = IO::Handle->new(); ++ $wp = IO::Handle->new(); + pipe( $rp, $wp ) + || die "could not create READ/WRITE pipes"; + $wp->autoflush(1); diff --git a/net/p5-Net-SNPP/pkg-plist b/net/p5-Net-SNPP/pkg-plist index b21e825251b2..88a726efca91 100644 --- a/net/p5-Net-SNPP/pkg-plist +++ b/net/p5-Net-SNPP/pkg-plist @@ -1,5 +1,6 @@ lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/SNPP/.packlist lib/perl5/site_perl/%%PERL_VER%%/Net/SNPP.pm +lib/perl5/site_perl/%%PERL_VER%%/Net/SNPP/Server.pm lib/perl5/site_perl/%%PERL_VER%%/Net/SNPP/HylaFAX.pm @dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/SNPP @dirrm lib/perl5/site_perl/%%PERL_VER%%/Net/SNPP |