diff options
author | edwin <edwin@FreeBSD.org> | 2003-05-09 09:02:59 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-05-09 09:02:59 +0800 |
commit | 8f72fdda93968687b5b954e1c83ac2f2e8f1bcc2 (patch) | |
tree | 93ebd62f88f54f7a6b8dd2599ee5afdce3bc4964 /net | |
parent | df414532284f38d650a1535ecc2d6a74b925a23b (diff) | |
download | freebsd-ports-graphics-8f72fdda93968687b5b954e1c83ac2f2e8f1bcc2.tar.gz freebsd-ports-graphics-8f72fdda93968687b5b954e1c83ac2f2e8f1bcc2.tar.zst freebsd-ports-graphics-8f72fdda93968687b5b954e1c83ac2f2e8f1bcc2.zip |
fix build on 4.x for net/p5-Net-RawSock
- fix build for perl 5.005_03
- add missing directories to plist
Informed maintainer.
PR: ports/51868
Submitted by: Erwin Lansing <erwin@lansing.dk>
Diffstat (limited to 'net')
-rw-r--r-- | net/p5-Net-RawSock/Makefile | 5 | ||||
-rw-r--r-- | net/p5-Net-RawSock/pkg-plist | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/net/p5-Net-RawSock/Makefile b/net/p5-Net-RawSock/Makefile index 3f5d69bc78c..c844d2c5080 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 058e53ffaba..1ef91ba6d77 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 |