aboutsummaryrefslogtreecommitdiff
path: root/net/p5-Net-RawSock
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-05-09 01:02:59 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-05-09 01:02:59 +0000
commit1475be5a9cb614739fab73fbe69291406b23561c (patch)
treec08059ad8507d05717583ccf7b3ef21d2b7af78b /net/p5-Net-RawSock
parent7b311f69a76cb3a8c47e8e17768adb5f4041a25b (diff)
downloadports-1475be5a9cb614739fab73fbe69291406b23561c.tar.gz
ports-1475be5a9cb614739fab73fbe69291406b23561c.zip
Notes
Diffstat (limited to 'net/p5-Net-RawSock')
-rw-r--r--net/p5-Net-RawSock/Makefile5
-rw-r--r--net/p5-Net-RawSock/pkg-plist2
2 files changed, 7 insertions, 0 deletions
diff --git a/net/p5-Net-RawSock/Makefile b/net/p5-Net-RawSock/Makefile
index 3f5d69bc78cb..c844d2c50804 100644
--- a/net/p5-Net-RawSock/Makefile
+++ b/net/p5-Net-RawSock/Makefile
@@ -19,6 +19,11 @@ MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Net::RawSock.3
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+post-patch:
+ ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
+ -e '$$_="" if /use warnings/;' \
+ ${WRKSRC}/RawSock.pm
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
diff --git a/net/p5-Net-RawSock/pkg-plist b/net/p5-Net-RawSock/pkg-plist
index 058e53ffaba1..1ef91ba6d77e 100644
--- a/net/p5-Net-RawSock/pkg-plist
+++ b/net/p5-Net-RawSock/pkg-plist
@@ -3,6 +3,8 @@ lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/RawSock/.packlist
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/RawSock/RawSock.so
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/RawSock/RawSock.bs
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/RawSock/ 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Net 2>/dev/null || true
%%PORTDOCS%%share/doc/p5-Net-RawSock/README
%%PORTDOCS%%share/doc/p5-Net-RawSock/demo.pl
%%PORTDOCS%%@dirrm share/doc/p5-Net-RawSock