Bug 77044 - New port: security/barnyard: Barnyard is a output system for Snort
Summary: New port: security/barnyard: Barnyard is a output system for Snort
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-03 05:50 UTC by pauls
Modified: 2005-02-10 00:17 UTC (History)
0 users

See Also:


Attachments
pkg-descr (1.05 KB, text/plain)
2005-02-03 05:50 UTC, pauls
no flags Details
pkg-plist (347 bytes, text/plain)
2005-02-03 05:50 UTC, pauls
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description pauls 2005-02-03 05:50:16 UTC
	New port submission - barnyard -0.2.0

Fix: MD5 (barnyard-0.2.0.tar.gz) = be3283028cf414b52b220308ceb411e9
SIZE (barnyard-0.2.0.tar.gz) = 161543
--- distinfo ends here ---

************************************************************************
 
Read the notes in the barnyard.conf file for how to configure 
%%PREFIX%%/etc/barnyard.conf after installation.  For 
further assistance, search the archives of the barnyard-users mailing 
list at http://sourceforge.net/mailarchive/forum.php?forum=barnyard-users

************************************************************************
--- pkg-message ends here ---



#!/bin/sh
# 

# PROVIDE: barnyard
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD shutdown

# Add the following lines to /etc/rc.conf to enable barnyard:
# barnyard_enable (bool):	Set to YES to enable barnyard
# 				Default: NO
# barnyard_flags (str):		Extra flags passed to barnyard
#				Default: -D
# barnyard_conf (str):		Barnyard configuration file
#				Default: ${PREFIX}/etc/barnyard.conf
#

. %%RC_SUBR%%

name="barnyard"
rcvar=`set_rcvar`

command="%%PREFIX%%/bin/barnyard"

load_rc_config $name

[ -z "$barnyard_enable" ]    && barnyard_enable="NO"
[ -z "$barnyard_conf" ]      && barnyard_conf="%%PREFIX%%/etc/barnyard.conf"
[ -z "$barnyard_flags" ]     && barnyard_flags="-D"

[ -n "$barnyard_conf" ]      && barnyard_flags="$barnyard_flags -c $barnyard_conf"

run_rc_command "$1"
--- barnyard.sh ends here -----5X9xpM33DsN11q4r2elyoPV7Gb7pbBCM65f4nlzKrZDJ68Lv
Content-Type: text/plain; name="Makefile"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="Makefile"

# New ports collection makefile for:	barnyard
# Date created:				1 Feb 2005
# Whom:					pauls
#
# $FreeBSD$
#

PORTNAME=	barnyard
PORTVERSION=	0.2.0
CATEGORIES=	security
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	barnyard
#DISTNAME=	barnyard

MAINTAINER=	pauls@utdallas.edu
COMMENT=	Barnyard is a output system for Snort

RUN_DEPENDS=	${LOCALBASE}/bin/snort:${PORTSDIR}/security/snort

OPTIONS=	MYSQL "Enable MySQL support" off \
		POSTGRESQL "Enable PostgreSQL support" off

USE_REINPLACE=	yes
USE_RC_SUBR=	yes
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	LDFLAGS="${LDFLAGS}"
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

DOCS=		AUTHORS COPYING LICENSE.QPL README docs/BUGS docs/ChangeLog \
		docs/FAQ docs/INSTALL docs/NEWS docs/USAGE

.if exists(/usr/lib/libssl.a) && exists(/usr/lib/libcrypto.a)
LDFLAGS+=	-lssl -lcrypto
.endif

.if defined(WITH_MYSQL)
USE_MYSQL=		yes
CONFIGURE_ARGS+=	--with-mysql=${LOCALBASE}
.else
CONFIGURE_ARGS+=	--with-mysql=no
.endif

.if defined(WITH_POSTGRESQL)
USE_PGSQL=		yes
CONFIGURE_ARGS+=	--with-postgresql=${LOCALBASE}
.else
CONFIGURE_ARGS+=	--with-postgresql=no
.endif

post-patch:
	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
		${FILESDIR}/barnyard.sh > ${WRKDIR}/barnyard.sh

post-install:
	${INSTALL_SCRIPT} -m 751 ${WRKDIR}/barnyard.sh ${PREFIX}/etc/rc.d/barnyard.sh
.for f in barnyard.conf
	${INSTALL_DATA} ${WRKSRC}/etc/${f} ${PREFIX}/etc/${f}-sample
	[ -f ${PREFIX}/etc/${f} ] || \
	${INSTALL_DATA} ${WRKSRC}/etc/${f} ${PREFIX}/etc/${f}
.endfor
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
	@${CAT} ${PKGMESSAGE}
#@${SED} 's|%%PREFIX%%|${PREFIX}|' ${PKGMESSAGE}

.include <bsd.port.mk>
Comment 1 pauls 2005-02-07 20:17:54 UTC
>Submitter-Id:	current-users
>Originator:	Paul Schmehl
>Organization:	
>Confidential:	no 
>Synopsis:	Re: ports/77044 - changes to new port submission
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		maintainer-update
>Release:	FreeBSD 4.9-SECURITY i386
>Environment:
System: FreeBSD unknown.utdallas.edu 4.9-SECURITY FreeBSD 4.9-SECURITY #0: Mon Jun 7 18:02:41 GMT 2004 root@builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	Edited the pkg-plist to add logic to remove the barnyard.conf file if it was
        identical to the barnyard.conf-sample file
        Edit the pkg-message file to add additional information about after-install
        issues
>How-To-Repeat:
	
>Fix:

	

--- pkg-plist begins here ---
@unexec if [ -f %D/etc/barnyard.conf ] && cmp -s %D/etc/barnyard.conf %D/etc/barnyard.conf-sample; then rm -f %D/etc/barnyard.conf; fi
bin/barnyard
etc/barnyard.conf-sample
etc/rc.d/barnyard.sh
share/doc/barnyard/AUTHORS
share/doc/barnyard/BUGS
share/doc/barnyard/COPYING
share/doc/barnyard/ChangeLog
share/doc/barnyard/FAQ
share/doc/barnyard/INSTALL
share/doc/barnyard/LICENSE.QPL
share/doc/barnyard/NEWS
share/doc/barnyard/README
share/doc/barnyard/USAGE
@dirrm share/doc/barnyard
--- pkg-plist ends here ---

--- pkg-message begins here ---
************************************************************************
 
Read the notes in the barnyard.conf file for how to configure 
%%PREFIX%%/etc/barnyard.conf after installation.  For 
further assistance, search the archives of the barnyard-users mailing 
list at http://sourceforge.net/mailarchive/forum.php?forum=barnyard-users

In order to enable barnyard to start on boot, you must edit /etc/rc.conf 
with the appropriate flags, etc.  See the FreeBSD Handbook for syntax:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcng.html

For the various options available, type % barnyard -h after install.

************************************************************************
--- pkg-message ends here ---
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2005-02-10 00:17:30 UTC
State Changed
From-To: open->closed

New port added, including pieces in ports/77322. 
Please, shar format for new ports.