From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Aug 30 01:40:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8396F1065670 for ; Sun, 30 Aug 2009 01:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 62D6E8FC14 for ; Sun, 30 Aug 2009 01:40:02 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7U1e2jK028943 for ; Sun, 30 Aug 2009 01:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7U1e2rL028942; Sun, 30 Aug 2009 01:40:02 GMT (envelope-from gnats) Resent-Date: Sun, 30 Aug 2009 01:40:02 GMT Resent-Message-Id: <200908300140.n7U1e2rL028942@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Paul Schmehl Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48B66106564A for ; Sun, 30 Aug 2009 01:35:47 +0000 (UTC) (envelope-from root@utd65257.utdallas.edu) Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 21B638FC1B for ; Sun, 30 Aug 2009 01:35:46 +0000 (UTC) Received: by utd65257.utdallas.edu (Postfix, from userid 0) id 133BD34782B; Sat, 29 Aug 2009 20:19:32 -0500 (CDT) Message-Id: <20090830011932.133BD34782B@utd65257.utdallas.edu> Date: Sat, 29 Aug 2009 20:19:32 -0500 (CDT) From: Paul Schmehl To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/138326: New port submission, security/barnyard2 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2009 01:40:02 -0000 >Number: 138326 >Category: ports >Synopsis: New port submission, security/barnyard2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Aug 30 01:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Paul Schmehl >Release: FreeBSD 7.2-STABLE i386 >Organization: The University of Texas at Dallas >Environment: System: FreeBSD hostname.utdallas.edu 7.2-STABLE FreeBSD 7.2-STABLE #12: Wed May 6 12:12:16 CDT 2009 root@hostname.utdallas.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: New port submission, security/barnyard2, barnyard2 parses the new snort unified2 type of output file. This port does not obsolete the security/barnyard or security/barnyard-sguil ports >How-To-Repeat: >Fix: --- barnyard2.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # barnyard2/ # barnyard2/Makefile # barnyard2/distinfo # barnyard2/pkg-descr # barnyard2/pkg-plist # barnyard2/files # barnyard2/files/pkg-message.in # barnyard2/files/barnyard2.sh.in # echo c - barnyard2/ mkdir -p barnyard2/ > /dev/null 2>&1 echo x - barnyard2/Makefile sed 's/^X//' >barnyard2/Makefile << 'a57ee9d8398663733d96101d438f29ba' X# New ports collection makefile for: barnyard2 X# Date created: 28 Aug 2009 X# Whom: pauls X# X# $FreeBSD$ X# X XPORTNAME= barnyard2 XPORTVERSION= 1.6 XCATEGORIES= security XMASTER_SITES= http://www.securixlive.com/download/barnyard2/ X XMAINTAINER= pauls@utdallas.edu XCOMMENT= An output system for Snort that parses unified2 files X XRUN_DEPENDS+= ${LOCALBASE}/bin/snort:${PORTSDIR}/security/snort X XOPTIONS= MYSQL "Enable MySQL support" on \ X POSTGRESQL "Enable PostgreSQL support" off X XUSE_RC_SUBR= barnyard2.sh XGNU_CONFIGURE= yes XCONFIGURE_ENV= LDFLAGS="${LDFLAGS}" XSUB_FILES= pkg-message X XPORTDOCS= INSTALL README README.aruba README.database README.sguil X X.include X X.if defined(WITH_MYSQL) XUSE_MYSQL= yes XCONFIGURE_ARGS+= --with--mysql \ X --with-mysql-includes=${LOCALBASE}/include/mysql \ X --with-mysql-libraries=${LOCALBASE}/lib/mysql X.endif X X.if defined(WITH_POSTGRESQL) XUSE_PGSQL= yes XCONFIGURE_ARGS+= --with-postgresql X.endif X Xpost-install: X X.for f in barnyard2.conf X ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${PREFIX}/etc/${f}-sample X [ -f ${PREFIX}/etc/${f} ] || \ X ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${PREFIX}/etc/${f} X.endfor X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X# cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} X cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} X.endif X X @${CAT} ${PKGMESSAGE} X X.include a57ee9d8398663733d96101d438f29ba echo x - barnyard2/distinfo sed 's/^X//' >barnyard2/distinfo << '2e6eeb04a009a049aa831fbf1af3dee1' XMD5 (barnyard2-1.6.tar.gz) = fe49fae09f585677af7dda53f3f4bedf XSHA256 (barnyard2-1.6.tar.gz) = c8b9b58d48b420634c502d27f21cbdaf42df0205abeb2970f9ee7e114744433b XSIZE (barnyard2-1.6.tar.gz) = 631471 2e6eeb04a009a049aa831fbf1af3dee1 echo x - barnyard2/pkg-descr sed 's/^X//' >barnyard2/pkg-descr << '3f076fc757cf3651d9962cb53d801d48' XBarnyard is a critical tool for the parsing of Snort's unified binary files, Xprocessing and on-forwarding to a variety of output plugins. Unfortunately Xit has not seen an updated in over 4 years and is not going to be maintained Xby the original developers. With the new version of the unified format X(ie. unified2) arriving we need something to bridge this gap. X XThe SXL team love barnyard. So much so that we want it to stay and have been Xtinkering around with the code to give it a breath of new life. Here is what Xwe have achieved to far for this reinvigorated code base: X X * Parsing of the new unified2 log files. X * Maintaining majority of the command syntax of barnyard. X * Addressed all associated bug reports and feature requests arising since X barnyard-0.2.0. X * Completely rewritten code based on the GPLv2 Snort making it entirely X GPLv2. X XThis is an effort to fuse the awesome work of Snort and the original concept Xof barnyard giving it a fresh update along the way. We've come a long way so Xfar and have a very stable build that we've integrated into our NSMnow Xframework. If you have any feature requests, bugs or gripes then send them Xour way. X XWWW: http://www.securixlive.com/barnyard2/ 3f076fc757cf3651d9962cb53d801d48 echo x - barnyard2/pkg-plist sed 's/^X//' >barnyard2/pkg-plist << '29584d6ec5453f4d04ea928a8465c5bc' Xbin/barnyard2 X@unexec if [ -f %D/etc/barnyard2.conf ] && cmp -s %D/etc/barnyard2.conf %D/etc/barnyard2.conf-sample; then rm -f %D/etc/barnyard2.conf; fi Xetc/barnyard2.conf-sample X@exec if [ ! -f %D/etc/barnyard2.conf ] ; then cp -p %D/%F %B/barnyard2.conf; fi 29584d6ec5453f4d04ea928a8465c5bc echo c - barnyard2/files mkdir -p barnyard2/files > /dev/null 2>&1 echo x - barnyard2/files/pkg-message.in sed 's/^X//' >barnyard2/files/pkg-message.in << 'a26c3c5c6050e31ba94a7b52178a5248' X************************************************************************ X XRead the notes in the barnyard2.conf file for how to configure X%%PREFIX%%/etc/barnyard2.conf after installation. For addtional information Xsee the Securixlive FAQ at http://www.securixlive.com/barnyard2/faq.php. X XIn order to enable barnyard2 to start on boot, you must edit /etc/rc.conf Xwith the appropriate flags, etc. See the FreeBSD Handbook for syntax: Xhttp://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcng.html X XFor the various options available, type % barnyard2 -h after install or read Xthe options in the startup script - in %%PREFIX%%/etc/rc.d. X X************************************************************************ a26c3c5c6050e31ba94a7b52178a5248 echo x - barnyard2/files/barnyard2.sh.in sed 's/^X//' >barnyard2/files/barnyard2.sh.in << 'e4a3ed4cfba9044cd8e20afda2db7f0a' X#!/bin/sh X# X X# PROVIDE: barnyard2 X# REQUIRE: DAEMON X# BEFORE: LOGIN X# KEYWORD: shutdown X X# Add the following lines to /etc/rc.conf to enable barnyard2: X# barnyard2_enable (bool): Set to YES to enable barnyard2 X# Default: NO X# barnyard2_flags (str): Extra flags passed to barnyard2 X# Default: -D X# barnyard2_conf (str): Barnyard configuration file X# Default: %%PREFIX%%/etc/barnyard2.conf X# X# USAGE: barnyard2 [-options] X# X# General Options: X# -? Show this information X# -c Use configuration file X# -g Run barnyard gid as group (or gid) after initialization X# -m Set umask = X# -q Quiet. Don't show banner and status report X# -u Run barnyard uid as user (or uid) after initialization X# -v Be verbose X# -C Read the classification map from X# -D Run barnyard in background (daemon) mode X# -G Read the gen-msg map from X# -L Write output files in X# -R Read the reference map from X# -S Read the sid-msg map from X# -T Test and report on the current configuration X# -U Use UTC for timestamps X# -V Show version and exit X# X# Continual Processing Options: X# -a Archive processed files to X# -f Use as the base filename pattern X# -d Spool files from X# -n Only process new events X# -w Enable bookmarking using X# X# Batch Processing Mode Options: X# -o Enable batch processing mode X# X# Longname options and their corresponding single char version X# --reference Same as -R X# --classification Same as -C X# --gen-msg Same as -G X# --sid-msg Same as -S X# --pid-path Specify the path for the barnyard PID file X# --create-pidfile Create PID file, even when not in Daemon mode X# --nolock-pidfile Do not try to lock barnyard PID file X# --help Same as -? X# --version Same as -V X X. %%RC_SUBR%% X Xname="barnyard2" Xload_rc_config $name Xrcvar=`set_rcvar` X# set some defaults X: ${barnyard2_enable="NO"} X: ${barnyard2_conf="%%PREFIX%%/etc/barnyard2.conf"} X: ${barnyard2_flags="-D"} X Xcommand="%%PREFIX%%/bin/barnyard2" Xcommand_args="-c ${barnyard2_conf} ${barnyard2_flags}" X Xrun_rc_command "$1" e4a3ed4cfba9044cd8e20afda2db7f0a exit --- barnyard2.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: