ports/139879: new port submission

Paul Schmehl pauls at utdallas.edu
Sat Oct 24 04:00:12 UTC 2009


>Number:         139879
>Category:       ports
>Synopsis:       new port submission
>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:   Sat Oct 24 04:00:11 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Paul Schmehl
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD hostname.utdallas.edu 7.2-STABLE FreeBSD 7.2-STABLE #13: Thu Sep 24 09:02:53 CDT 2009 root at hostname.utdallas.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	new port submission, security/barnyard2-devel
>How-To-Repeat:
	
>Fix:

	

--- barnyard2-devel.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-devel/
#	barnyard2-devel/files
#	barnyard2-devel/files/pkg-message.in
#	barnyard2-devel/files/barnyard2.sh.in
#	barnyard2-devel/pkg-plist
#	barnyard2-devel/pkg-descr
#	barnyard2-devel/distinfo
#	barnyard2-devel/Makefile
#
echo c - barnyard2-devel/
mkdir -p barnyard2-devel/ > /dev/null 2>&1
echo c - barnyard2-devel/files
mkdir -p barnyard2-devel/files > /dev/null 2>&1
echo x - barnyard2-devel/files/pkg-message.in
sed 's/^X//' >barnyard2-devel/files/pkg-message.in << '1e40358a5235c61b324e171673200803'
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************************************************************************
1e40358a5235c61b324e171673200803
echo x - barnyard2-devel/files/barnyard2.sh.in
sed 's/^X//' >barnyard2-devel/files/barnyard2.sh.in << 'f1c78eb140ec8793e2f269d8972e085f'
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 <file>  Use configuration file <file>
X#        -g <gname> Run barnyard gid as <gname> group (or gid) after initialization
X#        -m <umask> Set umask = <umask>
X#        -q         Quiet. Don't show banner and status report
X#        -u <uname> Run barnyard uid as <uname> user (or uid) after initialization
X#        -v         Be verbose
X#        -C <file>  Read the classification map from <file>
X#        -D         Run barnyard in background (daemon) mode
X#        -G <file>  Read the gen-msg map from <file>
X#        -L <dir>   Write output files in <dir>
X#        -R <file>  Read the reference map from <file>
X#        -S <file>  Read the sid-msg map from <file>
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 <dir>   Archive processed files to <dir>
X#        -f <base>  Use <base> as the base filename pattern
X#        -d <dir>   Spool files from <dir>
X#        -n         Only process new events
X#        -w <file>  Enable bookmarking using <file>
X#
X# Batch Processing Mode Options:
X#        -o         Enable batch processing mode
X#
X# Longname options and their corresponding single char version
X#   --reference <file>              Same as -R
X#   --classification <file>         Same as -C
X#   --gen-msg <file>                Same as -G
X#   --sid-msg <file>                Same as -S
X#   --pid-path <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"
f1c78eb140ec8793e2f269d8972e085f
echo x - barnyard2-devel/pkg-plist
sed 's/^X//' >barnyard2-devel/pkg-plist << '4261c178e772fd5d5ae3728c7e34fee9'
Xbin/barnyard2
X at 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 at exec if [ ! -f %D/etc/barnyard2.conf ] ; then cp -p %D/%F %B/barnyard2.conf; fi
4261c178e772fd5d5ae3728c7e34fee9
echo x - barnyard2-devel/pkg-descr
sed 's/^X//' >barnyard2-devel/pkg-descr << 'd9137531c22ab8b94e05d508ac8015a4'
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/
d9137531c22ab8b94e05d508ac8015a4
echo x - barnyard2-devel/distinfo
sed 's/^X//' >barnyard2-devel/distinfo << '5e25e63075797455bcdb3c39cf4df631'
XMD5 (barnyard2-1.7-beta3.tar.gz) = 636bc3b605c83d1178f1a0651ad34c58
XSHA256 (barnyard2-1.7-beta3.tar.gz) = 87cbb11220bf6b8f8462df71191e5eade5dfa607860ef614e4b446c75e61e483
XSIZE (barnyard2-1.7-beta3.tar.gz) = 635844
5e25e63075797455bcdb3c39cf4df631
echo x - barnyard2-devel/Makefile
sed 's/^X//' >barnyard2-devel/Makefile << '9f90fc0bec11cb832aada3b5b257a520'
X# New ports collection makefile for:	barnyard2-devel
X# Date created:				21 Oct 2009
X# Whom:					pauls
X#
X# $FreeBSD$
X#
X
XPORTNAME=	barnyard2-devel
XPORTVERSION=	1.7.b3
XDISTNAME=	barnyard2-${DISTVERSION}
XDISTVERSION=	1.7-beta3
XCATEGORIES=	security
XMASTER_SITES=	http://www.securixlive.com/download/barnyard2/
X
XMAINTAINER=	pauls at 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 <bsd.port.pre.mk>
X
Xpost-extract:
X	${CHMOD} a+x ${WRKSRC}/install-sh
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 <bsd.port.post.mk>
9f90fc0bec11cb832aada3b5b257a520
exit
--- barnyard2-devel.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list