aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2002-07-23 21:09:07 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2002-07-23 21:09:07 +0000
commite3731870467d12377fc18e2679b0e3342e79937e (patch)
treeda6d3c99edfb21012fbb7112ea9197db734817d1
parentb790735da0779692295685499df14037bee0e117 (diff)
downloadports-e3731870467d12377fc18e2679b0e3342e79937e.tar.gz
ports-e3731870467d12377fc18e2679b0e3342e79937e.zip
Notes
-rw-r--r--net/py-pcap/Makefile8
-rw-r--r--net/py-pcap/distinfo2
-rw-r--r--net/py-pcap/pkg-plist8
3 files changed, 12 insertions, 6 deletions
diff --git a/net/py-pcap/Makefile b/net/py-pcap/Makefile
index 5eadaecc82ce..c58c70adcceb 100644
--- a/net/py-pcap/Makefile
+++ b/net/py-pcap/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= pcap
-PORTVERSION= 0.3.1
+PORTVERSION= 0.4
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pylibpcap
@@ -20,5 +20,11 @@ BUILD_DEPENDS= swig:${PORTSDIR}/devel/SWIG
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+USE_PYTHON_PREFIX= yes
+
+PCAPTEST!= grep PCAP_IF_LOOPBACK /usr/include/pcap.h || true
+.if empty(PCAPTEST)
+BROKEN= "needs libpcap 0.7 or higher"
+.endif
.include <bsd.port.mk>
diff --git a/net/py-pcap/distinfo b/net/py-pcap/distinfo
index 291d765a07ba..40fb051b9cc5 100644
--- a/net/py-pcap/distinfo
+++ b/net/py-pcap/distinfo
@@ -1 +1 @@
-MD5 (python/pylibpcap-0.3.1.tar.gz) = ba64a4c831d5e2d316f3d413d1b774de
+MD5 (python/pylibpcap-0.4.tar.gz) = 38c9a47db4113594b57aa0944b1ebdcf
diff --git a/net/py-pcap/pkg-plist b/net/py-pcap/pkg-plist
index f696ee15b951..48cf862e3dac 100644
--- a/net/py-pcap/pkg-plist
+++ b/net/py-pcap/pkg-plist
@@ -1,4 +1,4 @@
-lib/%%PYTHON_VERSION%%/site-packages/pcap.py
-lib/%%PYTHON_VERSION%%/site-packages/pcap.pyc
-lib/%%PYTHON_VERSION%%/site-packages/pcap.pyo
-lib/%%PYTHON_VERSION%%/site-packages/pcapcmodule.so
+%%PYTHON_SITELIBDIR%%/pcap.py
+%%PYTHON_SITELIBDIR%%/pcap.pyc
+%%PYTHON_SITELIBDIR%%/pcap.pyo
+%%PYTHON_SITELIBDIR%%/pcapcmodule.so