aboutsummaryrefslogtreecommitdiffstats
path: root/net/p5-Net-RawSock
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-06 21:59:20 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-06 21:59:20 +0800
commit385ae0a65606712b5a7385763fd8d9ba5aaabe41 (patch)
treecf56848eae14d5a21c36f0fd7bac1e08c505d0cb /net/p5-Net-RawSock
parentef4f7cf1bf689fa6579bb90e0236aba7aaeac54f (diff)
downloadfreebsd-ports-gnome-385ae0a65606712b5a7385763fd8d9ba5aaabe41.tar.gz
freebsd-ports-gnome-385ae0a65606712b5a7385763fd8d9ba5aaabe41.tar.zst
freebsd-ports-gnome-385ae0a65606712b5a7385763fd8d9ba5aaabe41.zip
Support staging.
Diffstat (limited to 'net/p5-Net-RawSock')
-rw-r--r--net/p5-Net-RawSock/Makefile16
-rw-r--r--net/p5-Net-RawSock/pkg-plist4
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