aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-pcap
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-03-31 12:29:23 +0800
committerperky <perky@FreeBSD.org>2003-03-31 12:29:23 +0800
commit384351690155bf0db51979d5b294b6d4588b7485 (patch)
tree365e32c2ed69a3d663b554244d93786b33c0d559 /net/py-pcap
parent88e59abcbd383e0e072a7bbc642813aec8ace96e (diff)
downloadfreebsd-ports-gnome-384351690155bf0db51979d5b294b6d4588b7485.tar.gz
freebsd-ports-gnome-384351690155bf0db51979d5b294b6d4588b7485.tar.zst
freebsd-ports-gnome-384351690155bf0db51979d5b294b6d4588b7485.zip
Change the `grep` test to an OSVERSION test.
Spotted by: kris
Diffstat (limited to 'net/py-pcap')
-rw-r--r--net/py-pcap/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/py-pcap/Makefile b/net/py-pcap/Makefile
index 451fda88526a..17404cfd009b 100644
--- a/net/py-pcap/Makefile
+++ b/net/py-pcap/Makefile
@@ -23,9 +23,11 @@ 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"
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 460001 || \
+ ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500038 )
+IGNORE= "needs libpcap 0.7 or higher"
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>