aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-dpkt
diff options
context:
space:
mode:
authorsbz <sbz@FreeBSD.org>2013-05-23 22:17:58 +0800
committersbz <sbz@FreeBSD.org>2013-05-23 22:17:58 +0800
commita9ba658af711bf4ffa09dc1a848040df4099837a (patch)
treee2b2dcee179a9dd22d9a2df5b125d9ab450aeb41 /net/py-dpkt
parent406bbb6fa7ab5b809dad7b930668ea733b2b8fdd (diff)
downloadfreebsd-ports-gnome-a9ba658af711bf4ffa09dc1a848040df4099837a.tar.gz
freebsd-ports-gnome-a9ba658af711bf4ffa09dc1a848040df4099837a.tar.zst
freebsd-ports-gnome-a9ba658af711bf4ffa09dc1a848040df4099837a.zip
- Update to 1.8
- Convert to new option framework - Add regression-test target PR: ports/178069 Submitted by: Robert Simmons <rsimmons0 at gmail.com>
Diffstat (limited to 'net/py-dpkt')
-rw-r--r--net/py-dpkt/Makefile28
-rw-r--r--net/py-dpkt/distinfo4
-rw-r--r--net/py-dpkt/pkg-plist9
3 files changed, 30 insertions, 11 deletions
diff --git a/net/py-dpkt/Makefile b/net/py-dpkt/Makefile
index 8716ed8395fb..cae5ce968020 100644
--- a/net/py-dpkt/Makefile
+++ b/net/py-dpkt/Makefile
@@ -1,14 +1,10 @@
-# New ports collection makefile for: py-dpkt
-# Date created: 18 Apr 2006
-# Whom: Krzysztof Pawlowski
-#
+# Createe by: Krzysztof Pawlowski
# $FreeBSD$
-#
PORTNAME= dpkt
-PORTVERSION= 1.7
+PORTVERSION= 1.8
CATEGORIES= net python
-MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+MASTER_SITES= GOOGLE_CODE
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sbz@FreeBSD.org
@@ -18,12 +14,26 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_PYTHON_PREFIX= yes
-EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+DOCSDIR= ${PREFIX}/doc/${PKGNAMEPREFIX:C/[0-9]+//}${PORTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX:C/[0-9]+//}${PORTNAME}
+
+OPTIONS_DEFINE= DOCS
+
+PORTDOCS= AUTHORS CHANGES HACKING LICENSE PKG-INFO README
+
+.include <bsd.port.options.mk>
-.if !defined(NOPORTEXAMPLES)
post-install:
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
+regression-test: extract
+ @(cd ${WRKSRC} && ${PYTHON_CMD} tests/test-perf2.py)
+
.include <bsd.port.mk>
diff --git a/net/py-dpkt/distinfo b/net/py-dpkt/distinfo
index 090975c26a92..b30820f4a81e 100644
--- a/net/py-dpkt/distinfo
+++ b/net/py-dpkt/distinfo
@@ -1,2 +1,2 @@
-SHA256 (dpkt-1.7.tar.gz) = 185277cd37ce1d65a95d7a8b8652bf33725645ea7ca0086baf3fe643506abe72
-SIZE (dpkt-1.7.tar.gz) = 66396
+SHA256 (dpkt-1.8.tar.gz) = c56de2f9dc2f4654a356de0f0d458bb7b1c86c374988e8b4f358556f7dbe0507
+SIZE (dpkt-1.8.tar.gz) = 76311
diff --git a/net/py-dpkt/pkg-plist b/net/py-dpkt/pkg-plist
index e166bcadac05..1e496216c508 100644
--- a/net/py-dpkt/pkg-plist
+++ b/net/py-dpkt/pkg-plist
@@ -80,6 +80,9 @@
%%PYTHON_SITELIBDIR%%/dpkt/ipx.py
%%PYTHON_SITELIBDIR%%/dpkt/ipx.pyc
%%PYTHON_SITELIBDIR%%/dpkt/ipx.pyo
+%%PYTHON_SITELIBDIR%%/dpkt/llc.py
+%%PYTHON_SITELIBDIR%%/dpkt/llc.pyc
+%%PYTHON_SITELIBDIR%%/dpkt/llc.pyo
%%PYTHON_SITELIBDIR%%/dpkt/loopback.py
%%PYTHON_SITELIBDIR%%/dpkt/loopback.pyc
%%PYTHON_SITELIBDIR%%/dpkt/loopback.pyo
@@ -152,9 +155,15 @@
%%PYTHON_SITELIBDIR%%/dpkt/smb.py
%%PYTHON_SITELIBDIR%%/dpkt/smb.pyc
%%PYTHON_SITELIBDIR%%/dpkt/smb.pyo
+%%PYTHON_SITELIBDIR%%/dpkt/snoop.py
+%%PYTHON_SITELIBDIR%%/dpkt/snoop.pyc
+%%PYTHON_SITELIBDIR%%/dpkt/snoop.pyo
%%PYTHON_SITELIBDIR%%/dpkt/ssl.py
%%PYTHON_SITELIBDIR%%/dpkt/ssl.pyc
%%PYTHON_SITELIBDIR%%/dpkt/ssl.pyo
+%%PYTHON_SITELIBDIR%%/dpkt/ssl_ciphersuites.py
+%%PYTHON_SITELIBDIR%%/dpkt/ssl_ciphersuites.pyc
+%%PYTHON_SITELIBDIR%%/dpkt/ssl_ciphersuites.pyo
%%PYTHON_SITELIBDIR%%/dpkt/stp.py
%%PYTHON_SITELIBDIR%%/dpkt/stp.pyc
%%PYTHON_SITELIBDIR%%/dpkt/stp.pyo