1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/security/snort3/Makefile

70 lines
2.2 KiB
Makefile

PORTNAME= snort
DISTVERSION= 3.1.78.0
PORTEPOCH= 1
CATEGORIES= security
PKGNAMESUFFIX= 3
MAINTAINER= bofh@FreeBSD.org
COMMENT= Lightweight network intrusion detection system
WWW= https://www.snort.org/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libdaq.so:net/libdaq \
libdnet.so:net/libdnet \
libhwloc.so:devel/hwloc2 \
libpcap.so:net/libpcap \
libpcre.so:devel/pcre \
libuuid.so:misc/e2fsprogs-libuuid
USES= cmake compiler:c++14-lang cpe iconv localbase luajit pathfix pkgconfig \
shebangfix ssl
USE_GITHUB= yes
GH_ACCOUNT= snort3
GH_PROJECT= snort3
SHEBANG_FILES= tools/appid_detector_builder.sh
CMAKE_ARGS+= -DFLEX_INCLUDE_DIR_HINT:PATH=${PREFIX}/include/flex
CONFLICTS= snort-2*
OPTIONS_DEFINE= ADDRESSSANITIZER DEBUG DOCS FLATBUFFERS HYPERSCAN \
LARGEPCAP LIBUNWIND PIE STATICDAQ THREADSANITIZER TSC
OPTIONS_DEFAULT= STATICDAQ
OPTIONS_DEFAULT_amd64= HYPERSCAN
OPTIONS_SUB= yes
ADDRESSSANITIZER_DESC= Enable address sanitizer
FLATBUFFERS_DESC= Enable flatbuffers support
HYPERSCAN_DESC= Enable high-performance regular expression lib
LARGEPCAP_DESC= Enable support for pcaps larger than 2 GB
LIBUNWIND_DESC= Print stack trace in case of crash
PIE_DESC= Enable PIE (Broken)
STATICDAQ_DESC= Link static DAQ modules
THREADSANITIZER_DESC= Enable thread sanitizer
TSC_DESC= Use timestamp counter register clock (x86 only)
ADDRESSSANITIZER_CMAKE_BOOL= ENABLE_ADDRESS_SANITIZER
DEBUG_CMAKE_BOOL= ENABLE_COREFILES ENABLE_GDB
DOCS_CMAKE_BOOL= MAKE_HTML_DOC MAKE_PDF_DOC MAKE_TEXT_DOC
FLATBUFFERS_LIB_DEPENDS= flatc:devel/flatbuffers205 # until https://github.com/snort3/snort3/issues/250 is fixed
HYPERSCAN_LIB_DEPENDS= libhs.so:devel/hyperscan
HYPERSCAN_PLIST_SUB= HYPERSCAN=""
HYPERSCAN_PLIST_SUB_OFF= HYPERSCAN="@comment "
LARGEPCAP_CMAKE_BOOL= ENABLE_LARGE_PCAP
LIBUNWIND_LIB_DEPENDS= libunwind.so:devel/libunwind
LIBUNWIND_CMAKE_BOOL= ENABLE_LIBUNWIND
PIE_CMAKE_BOOL= ENABLE_PIE
STATICDAQ_CMAKE_BOOL= ENABLE_STATIC_DAQ
THREADSANITIZER_CMAKE_BOOL= ENABLE_THREAD_SANITIZER
TSC_CMAKE_BOOL= ENABLE_TSC_CLOCK
post-patch:
${REINPLACE_CMD} -e 's|_LIBDIR}/pkgconfig|_PREFIX}/libdata/pkgconfig|g' \
${WRKSRC}/cmake/create_pkg_config.cmake
.include <bsd.port.mk>