Index: head/security/suricata/Makefile =================================================================== --- head/security/suricata/Makefile (revision 300748) +++ head/security/suricata/Makefile (revision 300749) @@ -1,113 +1,115 @@ # New ports collection makefile for: suricata # Date created: Sun Aug 29 16:39:08 BRT 2010 # Whom: Patrick Tracanelli # # $FreeBSD$ # PORTNAME= suricata -PORTVERSION= 1.2.1 -PORTREVISION= 1 +PORTVERSION= 1.3 CATEGORIES= security MASTER_SITES= http://www.openinfosecfoundation.org/download/ \ http://mirrors.rit.edu/zi/ MAINTAINER= zi@FreeBSD.org COMMENT= Open Source next generation IDS/IPS engine by OISF LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= pcre.1:${PORTSDIR}/devel/pcre \ +LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre \ yaml:${PORTSDIR}/textproc/libyaml \ - htp-0.2.1:${PORTSDIR}/devel/libhtp + htp:${PORTSDIR}/devel/libhtp BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet \ pkg-config:${PORTSDIR}/devel/pkg-config USE_AUTOTOOLS= automake autoconf libtool 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 \ - PORTS_PCAP "Use libpcap from ports" off \ - DAG "Enable Endace DAG Support" off +OPTIONS_DEFINE= IPFW PRELUDE PORTS_PCAP DAG +OPTIONS_DEFAULT=IPFW +IPFW_DESC= Enable ipfw/ipdivert for IPS usage +PRELUDE_DESC= Enable Prelude NIDS integration +PORTS_PCAP_DESC=Use libpcap from ports +DAG_DESC= Enable Endace DAG Support + .include SUB_FILES= pkg-message HAS_CONFIGURE= yes USE_GMAKE= yes USE_LDCONFIG= yes CONFIGURE_ARGS+=--enable-non-bundled-htp --enable-gccprotect \ --with-libpcre-includes=${LOCALBASE}/include \ --with-libpcre-libraries=${LOCALBASE}/lib \ --with-libyaml-includes=${LOCALBASE}/include \ --with-libyaml-libraries=${LOCALBASE}/lib \ --with-libnet-includes=${LOCALBASE}/include/libnet11 \ --with-libnet-libraries=${LOCALBASE}/lib/libnet11 CONFIG_DIR?= ${PREFIX}/etc/suricata CONFIG_FILES= suricata.yaml classification.config reference.config RULES_DIR= ${PREFIX}/etc/suricata/rules LOGS_DIR= /var/log/suricata .include .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" BROKEN= Does not compile on ia64, powerpc, or sparc64 .endif -.if defined(WITH_PRELUDE) -LIB_DEPENDS+= prelude.20:${PORTSDIR}/security/libprelude +.if ${PORT_OPTIONS:MPRELUDE} +LIB_DEPENDS+= prelude:${PORTSDIR}/security/libprelude CONFIGURE_ARGS+= --enable-prelude \ --with-libprelude-prefix=${LOCALBASE} PLIST_SUB+= PRELUDE="" .endif -.if defined(WITH_IPFW) +.if ${PORT_OPTIONS:MIPFW} CONFIGURE_ARGS+= --enable-ipfw .endif -.if defined(WITH_PORTS_PCAP) -LIB_DEPENDS+= pcap.1:${PORTSDIR}/net/libpcap +.if ${PORT_OPTIONS:MPORTS_PCAP} +LIB_DEPENDS+= pcap:${PORTSDIR}/net/libpcap CONFIGURE_ARGS+= --with-libpcap-includes=${LOCALBASE}/include \ --with-libpcap-libraries=${LOCALBASE}/lib .else CONFIGURE_ARGS+= --with-libpcap-includes=/usr/include \ --with-libpcap-libraries=/usr/lib .endif -.if defined(WITH_DAG) +.if ${PORT_OPTIONS:MDAG} CONFIGURE_ARGS+= --enable-dag \ --with-dag-includes=${LOCALBASE}/include \ --with-dag-libraries=${LOCALBASE}/lib .endif AUTOTOOLSFILES= aclocal.m4 libhtp/aclocal.m4 post-patch: @${REINPLACE_CMD} -Ee 's|^(install-data-am: )install-pkgconfigDATA|\1|' ${WRKSRC}/libhtp/Makefile.in .for f in ${AUTOTOOLSFILES} - @${REINPLACE_CMD} -e 's|1.11.1|%%AUTOMAKE_APIVER%%|g' ${WRKSRC}/${f} + @${REINPLACE_CMD} -e 's|1.11.3|%%AUTOMAKE_APIVER%%|g' ${WRKSRC}/${f} .endfor pre-install: @${REINPLACE_CMD} -e 's|/etc/suricata|${PREFIX}/etc/suricata|g' ${WRKSRC}/suricata.yaml post-install: [ -d ${CONFIG_DIR} ] || ${MKDIR} ${CONFIG_DIR} [ -d ${RULES_DIR} ] || ${MKDIR} ${RULES_DIR} [ -d ${LOGS_DIR} ] || ${MKDIR} ${LOGS_DIR} .for f in ${CONFIG_FILES} ${INSTALL_DATA} ${WRKSRC}/${f} ${CONFIG_DIR}/${f}-sample @if [ ! -f ${CONFIG_DIR}/${f} ]; then \ ${CP} -p ${CONFIG_DIR}/${f}-sample ${CONFIG_DIR}/${f} ; \ fi .endfor @${CAT} ${PKGMESSAGE} .include Property changes on: head/security/suricata/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.14 \ No newline at end of property +1.15 \ No newline at end of property Index: head/security/suricata/distinfo =================================================================== --- head/security/suricata/distinfo (revision 300748) +++ head/security/suricata/distinfo (revision 300749) @@ -1,2 +1,2 @@ -SHA256 (suricata-1.2.1.tar.gz) = 169ac90c0d9c14387532ae5f2d14b14ee33feed7db97f14ee7cb54f2612945a8 -SIZE (suricata-1.2.1.tar.gz) = 2127754 +SHA256 (suricata-1.3.tar.gz) = e04c26178dc146b9bd7843e72fd7fdecf3195b883789550077a13046fd4cc69b +SIZE (suricata-1.3.tar.gz) = 2343074 Property changes on: head/security/suricata/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.4 \ No newline at end of property +1.5 \ No newline at end of property