- Disable netmap support on anything older than 9.1

PR:		194607
Submitted by:	ohauer@
This commit is contained in:
Ryan Steinmetz 2014-10-26 12:40:10 +00:00
parent c5002d04f8
commit be8c96bd07
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371502
2 changed files with 12 additions and 2 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= daq
PORTVERSION= 2.0.4
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= SF/snort/snort \
http://mirrors.rit.edu/zi/
@ -27,7 +28,16 @@ MAKE_JOBS_UNSAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.* ${STAGEDIR}${PREFIX}/lib/daq/*.so
.include <bsd.port.mk>
.if ${OSVERSION} < 901000
CONFIGURE_ARGS+=--disable-netmap-module
PLIST_SUB+= NETMAP="@comment "
.else
PLIST_SUB+= NETMAP=""
.endif
.include <bsd.port.post.mk>

View file

@ -6,7 +6,7 @@ include/sfbpf.h
include/sfbpf_dlt.h
lib/daq/daq_dump.so
lib/daq/daq_ipfw.so
lib/daq/daq_netmap.so
%%NETMAP%%lib/daq/daq_netmap.so
lib/daq/daq_pcap.so
lib/libdaq.a
lib/libdaq.so