diff options
-rw-r--r-- | net/p5-Net-RawSock/Makefile | 16 | ||||
-rw-r--r-- | net/p5-Net-RawSock/pkg-plist | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/net/p5-Net-RawSock/Makefile b/net/p5-Net-RawSock/Makefile index ed94213ebc72..923550cdf79b 100644 --- a/net/p5-Net-RawSock/Makefile +++ b/net/p5-Net-RawSock/Makefile @@ -12,21 +12,23 @@ COMMENT= Net::RawSock provides a base function to send raw IP packets from Perl USES= perl5 USE_PERL5= configure patch -MAN3= Net::RawSock.3 DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} -NO_STAGE= yes +OPTIONS_DEFINE= DOCS +PORTDOCS= README demo.pl + +.include <bsd.port.options.mk> + 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} -.for f in README demo.pl - @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} + ${STRIP_CMD} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/Net/RawSock/RawSock.so + ${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in ${PORTDOCS} + @${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor -.endif .include <bsd.port.mk> diff --git a/net/p5-Net-RawSock/pkg-plist b/net/p5-Net-RawSock/pkg-plist index 561385e4473d..4f15476d78be 100644 --- a/net/p5-Net-RawSock/pkg-plist +++ b/net/p5-Net-RawSock/pkg-plist @@ -2,9 +2,7 @@ %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/RawSock/.packlist %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/RawSock/RawSock.so %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/RawSock/RawSock.bs +%%PERL5_MAN3%%/Net::RawSock.3.gz @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/RawSock/ @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Net -%%PORTDOCS%%share/doc/p5-Net-RawSock/README -%%PORTDOCS%%share/doc/p5-Net-RawSock/demo.pl -%%PORTDOCS%%@dirrm share/doc/p5-Net-RawSock |