From 0cf5eb2a02fabb73079f95a849d4dc2faf13cfaf Mon Sep 17 00:00:00 2001 From: Ryan Steinmetz Date: Fri, 21 Oct 2011 13:44:45 +0000 Subject: - Update to 2.9.1.2 - Add debugging OPTION to build snort with debug symbols, etc. - Add sourcefire OPTION to build snort with --enable-sourcefire - Take maintainership per private email conversation with current maintainer PR: ports/161876 Submitted by: Ryan Steinmetz Approved by: Dean Freeman (maintainer) --- security/snort/Makefile | 21 +++++++++++++++++---- security/snort/distinfo | 4 ++-- 2 files changed, 19 insertions(+), 6 deletions(-) (limited to 'security/snort') diff --git a/security/snort/Makefile b/security/snort/Makefile index 2a09791a14b1..8f95516c62b2 100644 --- a/security/snort/Makefile +++ b/security/snort/Makefile @@ -6,13 +6,13 @@ # PORTNAME= snort -PORTVERSION= 2.9.1.1 +PORTVERSION= 2.9.1.2 CATEGORIES= security MASTER_SITES= SF/snort/snort PATCH_DIST_STRIP= -p1 -MAINTAINER= wfreeman@sourcefire.com +MAINTAINER= zi@FreeBSD.org COMMENT= Lightweight network intrusion detection system LICENSE= GPLv2 @@ -39,7 +39,9 @@ OPTIONS= IPV6 "Enable IPv6 support" on \ POSTGRESQL "Enable PostgreSQL support" off \ PRELUDE "Enable Prelude NIDS integration" off \ LRGPCAP "Enable pcaps larger than 2GB" off \ - SNORTSAM "Unofficial Snortsam Patch" off + SNORTSAM "Unofficial Snortsam Patch" off \ + SRCFIRE "Enable sourcefire build option" off \ + DBGSNORT "Enable debugging symbols+core dumps" off .include @@ -73,9 +75,9 @@ LIBNET_LIBS= -L${LOCALBASE}/lib/libnet11 -lnet LIBNET_INCDIR= ${LIBNET_CFLAGS:M-I*:S/-I//} LIBNET_LIBDIR= ${LIBNET_LIBS:M-L*:S/-L//} +CFLAGS+= -fstack-protector CONFIGURE_ARGS= --enable-dynamicplugin --enable-build-dynamic-examples \ --enable-reload --enable-reload-error-restart \ - --disable-corefiles \ --with-dnet-includes=${LIBNET_INCDIR} \ --with-dnet-libraries=${LIBNET_LIBDIR} @@ -124,6 +126,17 @@ PLIST_SUB+= PRELUDE="@comment " CONFIGURE_ARGS+= --enable-large-pcap .endif +.if defined(WITH_DBGSNORT) +CONFIGURE_ARGS+= --enable-corefiles --enable-debug +MAKE_ENV+= DONTSTRIP="yes" +.else +CONFIGURE_ARGS+= --disable-corefiles +.endif + +.if defined(WITH_SRCFIRE) +CONFIGURE_ARGS+= --enable-sourcefire +.endif + .if defined(WITH_PERFPROFILE) CONFIGURE_ARGS+= --enable-perfprofiling --enable-ppm .endif diff --git a/security/snort/distinfo b/security/snort/distinfo index 3bb1766c8b6c..500658cc7447 100644 --- a/security/snort/distinfo +++ b/security/snort/distinfo @@ -1,2 +1,2 @@ -SHA256 (snort-2.9.1.1.tar.gz) = 9b89c3345541050b4f2b6355a3023512e08ba16913c0cf5815397441df8c962e -SIZE (snort-2.9.1.1.tar.gz) = 6249252 +SHA256 (snort-2.9.1.2.tar.gz) = eac98be8138f9debdcc8f77061dab1950e88fa40c18311ddbab0a329852375f5 +SIZE (snort-2.9.1.2.tar.gz) = 6233647 -- cgit v1.2.3