Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2006 21:54:37 -0600 (CST)
From:      Paul Schmehl <pauls@utdallas.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/92239: security/barnyard, update port and add slave port
Message-ID:  <20060124035437.6051844482D@utd59514.utdallas.edu>
Resent-Message-ID: <200601240400.k0O40MGb077494@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         92239
>Category:       ports
>Synopsis:       security/barnyard, update port and add slave port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 24 04:00:21 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Paul Schmehl
>Release:        FreeBSD 5.4-SECURITY i386
>Organization:
University of Texas at Dallas
>Environment:
System: FreeBSD hostname.utdallas.edu 5.4-SECURITY FreeBSD 5.4-SECURITY #0: Wed Jul 20 08:57:11 UTC 2005 root@builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	Update port to add a slave port
	Patch Makefile and pkg-plist
	Move pkg-message to files/pkg-message.in
	Move files/barnyard.sh to files/barnyard.sh.in
>How-To-Repeat:
	
>Fix:

	

--- patch-Makefile begins here ---
--- Makefile.orig	Mon Jan 23 21:42:07 2006
+++ Makefile	Mon Jan 23 21:40:15 2006
@@ -4,13 +4,12 @@
 #
 # $FreeBSD: ports/security/barnyard/Makefile,v 1.5 2005/11/15 06:50:54 ade Exp $
 #
-
 PORTNAME=	barnyard
 PORTVERSION=	0.2.0
-CATEGORIES=	security
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	barnyard
-#DISTNAME=	barnyard
+
+CATEGORIES=	security
 
 MAINTAINER=	pauls@utdallas.edu
 COMMENT=	An output system for Snort
@@ -21,16 +20,15 @@
 		POSTGRESQL "Enable PostgreSQL support" off
 
 USE_AUTOTOOLS=	autoheader:259 autoconf:259
-USE_REINPLACE=	yes
-USE_RC_SUBR=	yes
-RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
-
+USE_RC_SUBR=	barnyard.sh
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	LDFLAGS="${LDFLAGS}"
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+SLAVEDIRS=	security/barnyard-sguil6
+SUB_FILES=	pkg-message
 
-DOCS=		AUTHORS COPYING LICENSE.QPL README docs/BUGS docs/ChangeLog \
-		docs/FAQ docs/INSTALL docs/NEWS docs/USAGE
+DOCS=		AUTHORS COPYING LICENSE.QPL README
+PORTDOCS=	BUGS ChangeLog FAQ INSTALL NEWS USAGE
 
 .include <bsd.port.pre.mk>
 
@@ -44,12 +42,8 @@
 CONFIGURE_ARGS+=	--enable-postgres
 .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} ] || \
@@ -58,6 +52,7 @@
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+	cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 .endif
 	@${CAT} ${PKGMESSAGE}
 
--- patch-Makefile ends here ---

--- patch-pkg-plist begins here ---
--- pkg-plist.orig	Mon Jan 23 21:42:25 2006
+++ pkg-plist	Mon Jan 23 21:40:15 2006
@@ -1,15 +1,7 @@
-@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
+@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
 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
+%%DOCSDIR%%/AUTHORS
+%%DOCSDIR%%/COPYING
+%%DOCSDIR%%/LICENSE.QPL
+%%DOCSDIR%%/README
--- patch-pkg-plist ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060124035437.6051844482D>