diff options
| author | Ryan Steinmetz <zi@FreeBSD.org> | 2014-10-26 12:40:10 +0000 |
|---|---|---|
| committer | Ryan Steinmetz <zi@FreeBSD.org> | 2014-10-26 12:40:10 +0000 |
| commit | be8c96bd071b81f48f4f4d4013282604e4e0dea6 (patch) | |
| tree | a2f4db5d76f10d039e00712cc17bef1e6191282f /net/daq | |
| parent | Do not infinite loop on the package builders creating GB (or TB) of logs (diff) | |
- Disable netmap support on anything older than 9.1
PR: 194607
Submitted by: ohauer@
Diffstat (limited to 'net/daq')
| -rw-r--r-- | net/daq/Makefile | 12 | ||||
| -rw-r--r-- | net/daq/pkg-plist | 2 |
2 files changed, 12 insertions, 2 deletions
diff --git a/net/daq/Makefile b/net/daq/Makefile index eb7e03ccfc6c..64cd48303942 100644 --- a/net/daq/Makefile +++ b/net/daq/Makefile @@ -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> diff --git a/net/daq/pkg-plist b/net/daq/pkg-plist index e4687de6eee9..ad1324bb0e4b 100644 --- a/net/daq/pkg-plist +++ b/net/daq/pkg-plist @@ -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 |
