1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Add DAG Support

Fix build when using custom LOCALBASE/PREFIX
Pacify portlint(1)

PR:		ports/158147
Submitted by:	rpsfa@rit.edu (me)
Approved by:	maintainer timeout, tabthorpe (mentor)
This commit is contained in:
Ryan Steinmetz 2011-07-19 21:14:30 +00:00
parent fda7ee926e
commit b714daacf4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277964

View File

@ -14,6 +14,9 @@ MASTER_SITES= http://openinfosecfoundation.org/download/ \
MAINTAINER= eksffa@freebsdbrasil.com.br
COMMENT= Open Source next generation IDS/IPS engine by OISF
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre \
yaml:${PORTSDIR}/textproc/libyaml \
pcap.1:${PORTSDIR}/net/libpcap
@ -28,7 +31,10 @@ USE_RC_SUBR= suricata
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
OPTIONS= IPFW "Enable IPFW/IPDIVERT for IPS usage" on \
PRELUDE "Enable Prelude NIDS integration" off
PRELUDE "Enable Prelude NIDS integration" off \
DAG "Enable Endace DAG Support" off
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
SUB_FILES= pkg-message
HAS_CONFIGURE= yes
@ -40,9 +46,6 @@ CONFIG_FILES= suricata.yaml classification.config
RULES_DIR= ${PREFIX}/etc/suricata/rules
LOGS_DIR= /var/log/suricata
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700000
@ -62,6 +65,10 @@ PLIST_SUB+= PRELUDE=""
CONFIGURE_ARGS+= --enable-ipfw
.endif
.if defined(WITH_DAG)
CONFIGURE_ARGS+= --enable-dag
.endif
pre-install:
@${REINPLACE_CMD} -e 's|/etc/suricata|${PREFIX}/etc/suricata|g' ${WRKSRC}/suricata.yaml