2022-08-24 21:54:37 +00:00
|
|
|
# uses the rust "libc" crate, version 0.2.107 (needs at least 0.2.113)
|
|
|
|
NOT_FOR_ARCHS = powerpc64 riscv64
|
|
|
|
|
2018-02-15 08:30:08 +00:00
|
|
|
COMMENT = high performance network IDS, IPS and security monitoring
|
|
|
|
|
2022-08-29 15:28:17 +00:00
|
|
|
SURICATA_V = 6.0.6
|
|
|
|
SUPDATE_V = 1.2.4
|
2022-08-18 02:24:48 +00:00
|
|
|
|
2021-02-02 20:11:01 +00:00
|
|
|
DISTNAME = suricata-${SURICATA_V}
|
2018-02-15 08:30:08 +00:00
|
|
|
CATEGORIES = security
|
2019-04-21 15:34:02 +00:00
|
|
|
SHARED_LIBS += htp 0.0 # 2.0
|
2022-10-28 10:00:45 +00:00
|
|
|
REVISION = 0
|
2018-02-15 08:30:08 +00:00
|
|
|
|
|
|
|
HOMEPAGE = https://suricata-ids.org/
|
|
|
|
|
2021-10-26 16:29:57 +00:00
|
|
|
MAINTAINER = Gonzalo L. R. <gonzalo@openbsd.org>
|
2018-02-15 08:30:08 +00:00
|
|
|
|
|
|
|
# GPLv2
|
2019-07-12 20:49:33 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2018-02-15 08:30:08 +00:00
|
|
|
|
2021-02-02 20:11:01 +00:00
|
|
|
MASTER_SITES = https://www.openinfosecfoundation.org/download/
|
2018-02-15 08:30:08 +00:00
|
|
|
|
2019-04-19 12:22:27 +00:00
|
|
|
# uses pledge()
|
2020-12-27 14:01:53 +00:00
|
|
|
WANTLIB += ${COMPILER_LIBCXX} c iconv jansson lz4 lzma m magic
|
2021-01-31 18:03:49 +00:00
|
|
|
WANTLIB += maxminddb net nspr4 nss3 nssutil3 pcap pcre plc4 plds4
|
|
|
|
WANTLIB += smime3 ssl3 yaml-0 z
|
2018-02-15 08:30:08 +00:00
|
|
|
|
|
|
|
MODULES = lang/python
|
|
|
|
|
2020-04-25 10:07:41 +00:00
|
|
|
BUILD_DEPENDS = textproc/py-sphinx${MODPY_FLAVOR} \
|
|
|
|
textproc/py-yaml${MODPY_FLAVOR} \
|
2019-05-03 06:22:34 +00:00
|
|
|
lang/rust
|
2018-02-15 16:19:41 +00:00
|
|
|
|
2020-04-25 10:07:41 +00:00
|
|
|
RUN_DEPENDS = textproc/py-yaml${MODPY_FLAVOR}
|
2019-04-01 10:01:05 +00:00
|
|
|
|
2019-02-28 13:13:09 +00:00
|
|
|
LIB_DEPENDS = archivers/lz4 \
|
|
|
|
archivers/xz \
|
|
|
|
converters/libiconv \
|
2018-02-15 08:30:08 +00:00
|
|
|
devel/jansson \
|
|
|
|
devel/nspr \
|
|
|
|
devel/libyaml \
|
|
|
|
devel/libmagic \
|
|
|
|
devel/pcre \
|
|
|
|
net/libnet/1.1 \
|
2021-01-31 18:03:49 +00:00
|
|
|
net/libmaxminddb \
|
2018-02-15 08:30:08 +00:00
|
|
|
security/nss
|
|
|
|
|
2019-04-21 15:34:02 +00:00
|
|
|
COMPILER = base-clang ports-gcc
|
2021-01-31 18:03:49 +00:00
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
2019-04-21 15:34:02 +00:00
|
|
|
|
2021-01-31 18:03:49 +00:00
|
|
|
CONFIGURE_STYLE = autoconf
|
|
|
|
AUTOCONF_VERSION = 2.69
|
|
|
|
AUTOMAKE_VERSION = 1.15
|
2018-02-15 08:30:08 +00:00
|
|
|
|
2019-04-21 15:34:02 +00:00
|
|
|
CONFIGURE_ENV = ac_cv_path_HAVE_PDFLATEX= \
|
2019-07-04 06:52:03 +00:00
|
|
|
ac_cv_path_HAVE_GIT_CMD= \
|
2022-01-11 12:38:49 +00:00
|
|
|
ac_cv_path_CBINDGEN= \
|
2019-07-04 06:52:03 +00:00
|
|
|
CARGO_HOME=${WRKBUILD}/cargo-home
|
2018-02-15 16:19:41 +00:00
|
|
|
|
2022-05-16 20:12:15 +00:00
|
|
|
# prevent textproc/hyperscan from being picked up
|
|
|
|
CONFIGURE_ENV += ac_cv_header_hs_h=no \
|
|
|
|
libhs_CFLAGS=-I${LOCALBASE}/include \
|
2022-10-31 23:14:52 +00:00
|
|
|
libhs_LIBS=-L${LOCALBASE}/lib
|
2022-05-16 20:12:15 +00:00
|
|
|
|
2019-03-07 12:16:20 +00:00
|
|
|
CONFIGURE_ARGS = --disable-gccmarch-native \
|
2021-01-31 18:03:49 +00:00
|
|
|
--enable-geoip \
|
2019-05-03 06:22:34 +00:00
|
|
|
--enable-ipfw
|
2018-04-02 15:33:32 +00:00
|
|
|
|
2019-04-21 15:34:02 +00:00
|
|
|
SUBST_VARS = VARBASE SURICATA_V SUPDATE_V
|
2019-02-28 13:13:09 +00:00
|
|
|
|
2019-11-26 10:44:33 +00:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/configure \
|
|
|
|
${WRKSRC}/doc/userguide/Makefile.in \
|
2021-01-31 18:03:49 +00:00
|
|
|
${WRKSRC}/suricata-update/doc/Makefile \
|
|
|
|
${WRKSRC}/suricata-update/suricata/update/config.py \
|
|
|
|
${WRKSRC}/suricata-update/suricata/update/parsers.py
|
2021-02-03 00:33:47 +00:00
|
|
|
# prevent generating revision.py
|
|
|
|
rm -rf ${WRKSRC}/suricata-update/.git
|
2020-12-27 14:01:53 +00:00
|
|
|
|
2018-02-15 08:30:08 +00:00
|
|
|
post-install:
|
2021-01-31 18:03:49 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/suricata
|
2018-02-15 08:30:08 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.config ${PREFIX}/share/examples/suricata
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/suricata.yaml ${PREFIX}/share/examples/suricata
|
2021-01-31 18:03:49 +00:00
|
|
|
# nothing particularly useful in there as of 6.0.1
|
2020-12-27 14:01:53 +00:00
|
|
|
rm -r ${PREFIX}/share/doc/suricata
|
2018-02-15 08:30:08 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|