aboutsummaryrefslogtreecommitdiff
path: root/net/py-pcs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/py-pcs/Makefile')
-rw-r--r--net/py-pcs/Makefile24
1 files changed, 20 insertions, 4 deletions
diff --git a/net/py-pcs/Makefile b/net/py-pcs/Makefile
index 40d70e61d821..7225018a1042 100644
--- a/net/py-pcs/Makefile
+++ b/net/py-pcs/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= pcs
-PORTVERSION= 0.1
+PORTVERSION= 0.3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pcs
@@ -15,8 +15,24 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= gnn@FreeBSD.org
COMMENT= Protocol Construction Set
+RUN_DEPENDS= ${PYTHONPREFIX_SITELIBDIR}/pcap.so:${PORTSDIR}/net/py-pypcap
+
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-USE_PYTHON_PREFIX= yes
-WRKSRC= ${WRKDIR}/pcs-${PORTVERSION}
-.include <bsd.port.mk>
+
+.include <bsd.port.pre.mk>
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for f in design.pdf pcs.pdf
+ ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
+.endfor
+ @${MKDIR} ${EXAMPLESDIR}
+.for f in arpwhohas.py ddos_analyze.py dns_query.py http_get.py \
+ ping.py snarf.py tcpslice.py udp_echo.py
+ ${INSTALL_DATA} ${WRKSRC}/scripts/${f} ${EXAMPLESDIR}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>