Date: 13 Aug 2008 11:39:05 -0300 From: Danton Dorati <danton@freebsdbrasil.com.br> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Danton Dorati <urisso@bsd.com.br> Subject: ports/126506: Update port: security/snort [patch] for enable feature to output plugin snortsam Message-ID: <20080813143905.76939.qmail@capeta.freebsdbrasil.com.br> Resent-Message-ID: <200808131520.m7DFK2GL095450@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 126506 >Category: ports >Synopsis: Update port: security/snort [patch] for enable feature to output plugin snortsam >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 13 15:20:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Danton Dorati >Release: FreeBSD 6.1-PRERELEASE i386 >Organization: FreeBSD Brasil LTDA. >Environment: System: FreeBSD capeta.freebsdbrasil.com.br 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Fri Mar 24 13:05:22 BRT 2006 root@capeta.freebsdbrasil.com.br:/usr/obj/usr/src/sys/CAPETA i386 >Description: Hello, I did a new port SnortSam to the Ports Tree and if possible you could to include a patch to Snort Master Port, and this feature disabling it by default. Facilitating the integration between the port that I'm sending and the current port, I suggest this plugin. Thus we don't need to the create a new port to include this plugin only You can get this patch file in http://www.freebsdbrasil.com.br/~urisso/files/Makefile-snort.diff >How-To-Repeat: >Fix: diff -uNr Makefile Makefile.patch --- Makefile 2008-06-22 23:26:41.000000000 -0300 +++ Makefile.patch 2008-08-12 11:54:08.000000000 -0300 @@ -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 @@ 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 @@ -126,6 +128,11 @@ CONFIGURE_ARGS+= --enable-perfprofiling .endif +.if defined(WITH_SNORTSAM) +PATCH_SITES+=http://www.freebsdbrasil.com.br/~urisso/files/:snortsam +PATCHFILES+=snortsam-2.8.2.1.diff:snortsam +.endif + post-patch: ${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e \ 's|lib/snort_|lib/snort/|g' @@ -139,12 +146,18 @@ ${REINPLACE_CMD} -e "s,-am: install-libLTLIBRARIES,-am:," \ ${WRKSRC}/src/dynamic-plugins/sf_engine/Makefile.in .endif +.if defined(WITH_SNORTSAM) +BUILD_DEPENDS+=automake>=1.10.1:${PORTSDIR}/devel/automake110 +.endif pre-configure: .if defined(WITHOUT_DYNAMIC) @${CAT} ${PATCHDIR}/pkg-message-dynamicplugin @sleep 5 .endif +.if defined(WITH_SNORTSAM) + @cd ${WRKSRC} && ${SH} ${WRKSRC}/autojunk.sh +.endif post-install: .if !defined(WITHOUT_DYNAMIC) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080813143905.76939.qmail>