aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2008-08-22 16:24:11 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2008-08-22 16:24:11 +0000
commit09ece96a0f65b5df2bbbb0c577248bc0581464bc (patch)
tree7826e0123d6cfe356edf9f368e139223764010fe /security
parentfcfa77118c158123c7c2a6dbb6d5d2022936fae9 (diff)
downloadports-09ece96a0f65b5df2bbbb0c577248bc0581464bc.tar.gz
ports-09ece96a0f65b5df2bbbb0c577248bc0581464bc.zip
- patch for enable feature to output plugin snortsam
- bump PORTREVISION PR: ports/126506 Submitted by: Danton Dorati <danton_AT_freebsdbrasil dot com dot br>
Notes
Notes: svn path=/head/; revision=218997
Diffstat (limited to 'security')
-rw-r--r--security/snort/Makefile21
-rw-r--r--security/snort/distinfo3
2 files changed, 19 insertions, 5 deletions
diff --git a/security/snort/Makefile b/security/snort/Makefile
index 358eb03847d4..cc8fe0f2faf3 100644
--- a/security/snort/Makefile
+++ b/security/snort/Makefile
@@ -7,6 +7,7 @@
PORTNAME= snort
PORTVERSION= 2.8.2.1
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.snort.org/dl/current/
@@ -24,7 +25,8 @@ OPTIONS= DYNAMIC "Enable dynamic plugin support" on \
ODBC "Enable ODBC support" off \
POSTGRESQL "Enable PostgreSQL support" off \
PRELUDE "Enable Prelude NIDS integration" off \
- PERPROFILE "Enable Performance Profiling" off
+ PERPROFILE "Enable Performance Profiling" off \
+ SNORTSAM "Enable output plugin to SnortSam" off
USE_RC_SUBR= snort.sh
SUB_FILES= pkg-message
@@ -125,7 +127,20 @@ PLIST_SUB+= PRELUDE="@comment "
CONFIGURE_ARGS+= --enable-perfprofiling
.endif
+.if defined(WITH_SNORTSAM)
+PATCH_SITES+=http://www.freebsdbrasil.com.br/~urisso/files/snort/:snortsam
+PATCHFILES+=snortsam-2.8.2.1.diff:snortsam
+.endif
+
post-patch:
+.if defined(WITH_SNORTSAM)
+BUILD_DEPENDS+= automake>=1.10.1:${PORTSDIR}/devel/automake110
+.endif
+
+pre-configure:
+.if defined(WITH_SNORTSAM)
+ @cd ${WRKSRC} && ${SH} ${WRKSRC}/autojunk.sh
+.endif
${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e \
's|lib/snort_|lib/snort/|g'
${REINPLACE_CMD} "s,/etc/snort.conf,${CONFIG_DIR}/snort.conf," \
@@ -137,10 +152,6 @@ post-patch:
.if defined(WITHOUT_DYNAMIC)
${REINPLACE_CMD} -e "s,-am: install-libLTLIBRARIES,-am:," \
${WRKSRC}/src/dynamic-plugins/sf_engine/Makefile.in
-.endif
-
-pre-configure:
-.if defined(WITHOUT_DYNAMIC)
@${CAT} ${PATCHDIR}/pkg-message-dynamicplugin
@sleep 5
.endif
diff --git a/security/snort/distinfo b/security/snort/distinfo
index bfcaf14efc61..63f426e11a31 100644
--- a/security/snort/distinfo
+++ b/security/snort/distinfo
@@ -1,3 +1,6 @@
MD5 (snort-2.8.2.1.tar.gz) = b39e784dd8a5cf180aae20e94a7b52dd
SHA256 (snort-2.8.2.1.tar.gz) = 55ffb0bf34eac5ce48e3b517a83d6c05f838d864586cebbd7d14d575ba2d5d7b
SIZE (snort-2.8.2.1.tar.gz) = 4377110
+MD5 (snortsam-2.8.2.1.diff) = 0d246e535cbe7b7d042879a188b2ce1c
+SHA256 (snortsam-2.8.2.1.diff) = cb0b347a25ddc7bf8dc96203fab9b1823b8ccadbe67563b4746c2b080bfad476
+SIZE (snortsam-2.8.2.1.diff) = 113845