blob: 71aa6baeaaa880db8464a9f7309aca485e424cd4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
PORTNAME= snort
DISTVERSION= 3.1.63.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
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000
BUILD_DEPENDS= flex>0:textproc/flex
.endif
post-patch:
${REINPLACE_CMD} -e 's|_LIBDIR}/pkgconfig|_PREFIX}/libdata/pkgconfig|g' \
${WRKSRC}/cmake/create_pkg_config.cmake
.include <bsd.port.mk>
|