mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- patch for enable feature to output plugin snortsam
- bump PORTREVISION PR: ports/126506 Submitted by: Danton Dorati <danton_AT_freebsdbrasil dot com dot br>
This commit is contained in:
parent
fcfa77118c
commit
09ece96a0f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=218997
2 changed files with 19 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue