summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2005-09-02 16:25:29 +0000
committerStefan Eßer <se@FreeBSD.org>2005-09-02 16:25:29 +0000
commit43558cad27c0ddb17629dd979caffdcf4a7e6ce0 (patch)
tree41b0a928e20de347310c56e9982f94b40edc3fec /security
parentCompile errors on ia64 and sparc64, do not build on those archs. (diff)
Fix build on 4-stable: Use ports version of libpcap since system version
is too old.
Notes
Notes: svn path=/head/; revision=141811
Diffstat (limited to 'security')
-rw-r--r--security/yersinia/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/security/yersinia/Makefile b/security/yersinia/Makefile
index 71cbc88e8719..26098562a107 100644
--- a/security/yersinia/Makefile
+++ b/security/yersinia/Makefile
@@ -14,9 +14,15 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= se@FreeBSD.org
COMMENT= Layer 2 vulnerability scanner (switches, spanning tree, 802.1q ...)
+.include <bsd.port.pre.mk>
+
# Dependency on file that is not also installed by libnet (1.0.2) port!
BUILD_DEPENDS= ${LOCALBASE}/share/examples/libnet/ip_raw.c:${PORTSDIR}/net/libnet-devel
+.if ${OSVERSION} < 500000
+BUILD_DEPENDS= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
+.endif
+
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
@@ -30,4 +36,4 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/yersinia ${PREFIX}/sbin/
${INSTALL_MAN} ${WRKSRC}/yersinia.8 ${PREFIX}/man/man8/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>