blob: 84e08d64af20cfc3771e81831b06511f4995855a (
plain)
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
|
PORTNAME= modsecurity
DISTVERSIONPREFIX= v
DISTVERSION= 3.0.5
PORTREVISION= 1
CATEGORIES= security www
MASTER_SITES= https://github.com/SpiderLabs/ModSecurity/releases/download/v${PORTVERSION}/
PKGNAMESUFFIX= 3
MAINTAINER= marius.halden@modirum.com
COMMENT= Intrusion detection and prevention engine
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libcurl.so:ftp/curl \
libpcre.so:devel/pcre \
libyajl.so:devel/yajl \
libmaxminddb.so:net/libmaxminddb
USES= cpe gmake gnome libtool pkgconfig:build
USE_GNOME= libxml2
# GCC because of https://github.com/SpiderLabs/ModSecurity/issues/1411
USE_LDCONFIG= yes
CPE_VENDOR= trustwave
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-lmdb --without-ssdeep --without-lua
PLIST_SUB= SHLIBVER=${DISTVERSION}
ETCDIR= ${PREFIX}/etc/modsecurity
CONFLICTS_INSTALL= ap??-mod_security mod_security3
INSTALL_TARGET= install-strip
post-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/modsecurity.conf-recommended \
${STAGEDIR}${ETCDIR}/modsecurity.conf.sample
${INSTALL_DATA} ${WRKSRC}/unicode.mapping \
${STAGEDIR}${ETCDIR}/unicode.mapping
.include <bsd.port.mk>
|