mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
e95afc3979
PR: 149718 Submitted by: Paul Schmehl <pauls _at_ utdallas.edu> (maintainer) Approved by: glarkin (mentor)
72 lines
1.7 KiB
Makefile
72 lines
1.7 KiB
Makefile
# New ports collection makefile for: barnyard
|
|
# Date created: 1 Feb 2005
|
|
# Whom: pauls
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= barnyard
|
|
PORTVERSION= 0.2.0
|
|
PORTREVISION= 6
|
|
CATEGORIES= security
|
|
MASTER_SITES= SF/barnyard/barnyard-0.2/${PORTVERSION}
|
|
|
|
MAINTAINER= pauls@utdallas.edu
|
|
COMMENT?= An output system for Snort
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/snort:${PORTSDIR}/security/snort
|
|
|
|
OPTIONS= MYSQL "Enable MySQL support" on \
|
|
POSTGRESQL "Enable PostgreSQL support" off
|
|
|
|
DEPRECATED= Use security/barnyard2 instead
|
|
EXPIRATION= 2010-12-31
|
|
|
|
USE_AUTOTOOLS= autoheader:262 aclocal:19
|
|
USE_RC_SUBR= barnyard.sh
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}"
|
|
SLAVEDIRS= security/barnyard-sguil6
|
|
SUB_FILES= pkg-message
|
|
|
|
DOCS= AUTHORS COPYING LICENSE.QPL README
|
|
PORTDOCS= BUGS ChangeLog FAQ INSTALL NEWS USAGE
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_MYSQL)
|
|
USE_MYSQL= yes
|
|
CONFIGURE_ARGS+= --enable-mysql \
|
|
--with-mysql-includes=${LOCALBASE}/include/mysql \
|
|
--with-mysql-libraries=${LOCALBASE}/lib/mysql
|
|
.endif
|
|
|
|
.if defined(WITH_POSTGRESQL)
|
|
USE_PGSQL= yes
|
|
CONFIGURE_ARGS+= --enable-postgres
|
|
.endif
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} =="ia64" || ${ARCH} == "sparc64"
|
|
EXTRA_PATCHES+= ${FILESDIR}/64-bit-barnyard.h \
|
|
${FILESDIR}/64-bit-input-plugins-dp-alert.h \
|
|
${FILESDIR}/64-bit-util.h \
|
|
${FILESDIR}/64-bit-event.h \
|
|
${FILESDIR}/64-bit-util.c
|
|
.endif
|
|
|
|
post-install:
|
|
|
|
.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}
|
|
cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|