Files

48 lines
1.0 KiB
Makefile
Raw Permalink Normal View History

COMMENT = intrusion detection and prevention engine
2021-01-01 12:28:25 +00:00
2025-02-26 14:46:51 +00:00
VERSION = 3.0.14
DISTNAME = modsecurity-v${VERSION}
PKGNAME = libmodsecurity-${VERSION}
2025-02-26 14:46:51 +00:00
SUPDISTFILES = ${DISTFILES:S/$/.sig/}
REVISION = 2
2021-01-01 12:28:25 +00:00
2025-02-26 14:46:51 +00:00
SHARED_LIBS = modsecurity 2.0 # 3.14
2021-01-01 12:28:25 +00:00
CATEGORIES = security
2021-01-01 12:28:25 +00:00
HOMEPAGE = https://www.modsecurity.org
2021-01-01 12:28:25 +00:00
# Apache 2.0
PERMIT_PACKAGE = Yes
2025-10-31 12:56:23 +00:00
WANTLIB = ${COMPILER_LIBCXX} c crypto curl iconv m ssl z \
2025-08-26 16:08:31 +00:00
maxminddb nghttp2 nghttp3 ngtcp2 ngtcp2_crypto_libressl \
2025-02-26 14:46:51 +00:00
pcre pcre2-8 xml2 yajl
2023-09-27 16:34:29 +00:00
SITES = https://github.com/SpiderLabs/ModSecurity/releases/download/v${VERSION}/
2021-01-01 12:28:25 +00:00
COMPILER = base-clang ports-gcc
LIB_DEPENDS = converters/libiconv \
devel/libyajl \
devel/pcre \
2025-01-15 10:36:22 +00:00
devel/pcre2 \
2021-01-01 12:28:25 +00:00
net/curl \
net/libmaxminddb \
textproc/libxml
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --without-lmdb \
--without-ssdeep \
--without-lua
2025-02-26 14:46:51 +00:00
# some tests need network access
2021-01-01 12:28:25 +00:00
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/modsecurity/
${INSTALL_DATA} ${WRKSRC}/unicode.mapping ${PREFIX}/share/modsecurity/
.include <bsd.port.mk>