aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2011-10-21 21:44:45 +0800
committerzi <zi@FreeBSD.org>2011-10-21 21:44:45 +0800
commit758810b2f74db39879f722a239c4177dd77f5170 (patch)
treef03dd2b50ff196d1cf89e7b367bdd70c4c019cab /security
parent6634d9270fc17430849fc0e86e84c8e50c2a6f76 (diff)
downloadfreebsd-ports-gnome-758810b2f74db39879f722a239c4177dd77f5170.tar.gz
freebsd-ports-gnome-758810b2f74db39879f722a239c4177dd77f5170.tar.zst
freebsd-ports-gnome-758810b2f74db39879f722a239c4177dd77f5170.zip
- 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 <zi@FreeBSD.org> Approved by: Dean Freeman <wfreeman@sourcefire.com> (maintainer)
Diffstat (limited to 'security')
-rw-r--r--security/snort/Makefile21
-rw-r--r--security/snort/distinfo4
2 files changed, 19 insertions, 6 deletions
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 <bsd.port.options.mk>
@@ -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