aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/py-libnet/Makefile7
-rw-r--r--net/py-libnet/pkg-plist6
2 files changed, 10 insertions, 3 deletions
diff --git a/net/py-libnet/Makefile b/net/py-libnet/Makefile
index 1c2b76e52890..7f8a3782c004 100644
--- a/net/py-libnet/Makefile
+++ b/net/py-libnet/Makefile
@@ -8,6 +8,7 @@
PORTNAME= libnet
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= net python
MASTER_SITES= SF
MASTER_SITE_SUBDIR= pylibnet
@@ -45,8 +46,12 @@ BROKEN= Does not compile on amd64 (tries to link non-PIC libnet.a into PIC shar
post-patch:
${REINPLACE_CMD} -e 's,^const ,%constant ,' ${WRKSRC}/constants.i
+post-build:
+ ${PYTHON_CMD} -m compileall ${WRKSRC}
+ ${PYTHON_CMD} -O -m compileall ${WRKSRC}
+
do-install:
-.for f in libnet.py _libnet.so
+.for f in libnet.py libnet.pyc libnet.pyo _libnet.so
${INSTALL_DATA} ${WRKSRC}/${f} ${PYTHON_SITELIBDIR}
.endfor
.if !defined(NOPORTEXAMPLES)
diff --git a/net/py-libnet/pkg-plist b/net/py-libnet/pkg-plist
index d9fbad2ef0c0..fbedc9003fb5 100644
--- a/net/py-libnet/pkg-plist
+++ b/net/py-libnet/pkg-plist
@@ -1,7 +1,9 @@
@comment $FreeBSD$
-%%PYTHON_SITELIBDIR%%/libnet.py
%%PYTHON_SITELIBDIR%%/_libnet.so
+%%PYTHON_SITELIBDIR%%/libnet.py
+%%PYTHON_SITELIBDIR%%/libnet.pyc
+%%PYTHON_SITELIBDIR%%/libnet.pyo
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test-libnet-arp-req.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test-libnet-icmp-echo-req.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test-libnet-tcp-syn.py
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%