freebsd-ports/security/bro/Makefile
2005-09-04 19:36:50 +00:00

64 lines
1.5 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: bro
# Date created: Sat Feb 28, 1998
# Whom: David O'Brien (obrien@FreeBSD.org)
#
# $FreeBSD$
#
PORTNAME= bro
PORTVERSION= 0.8
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ftp://ftp.ee.lbl.gov/
DISTNAME= ${PORTNAME}-pub-${PORTVERSION}a37
MAINTAINER= ports@FreeBSD.org
COMMENT= System for detecting Network Intruders in real-time
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
WRKSRC= ${WRKDIR}/${PORTNAME}-pub-${PORTVERSION}a37
USE_REINPLACE= yes
GNU_CONFIGURE= yes
MAKE_ENV+= CC="${CC}"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --libdir=${PREFIX}/share
USE_PERL5= yes
post-extract:
@cd ${WRKSRC} && ${TAR} xfz libedit.src.tar.gz
post-patch:
@${REINPLACE_CMD} -e 's|CFLAGS+=-g -O0||g; \
s|CC=gcc||' \
${WRKSRC}/libedit/Makefile.in \
${WRKSRC}/libedit/Makefile
@${REINPLACE_CMD} -e "s,tr '\[a-z\]' '\[A-Z\]',tr 'a-z' 'A-Z',g" \
${WRKSRC}/libedit/makelist
@${REINPLACE_CMD} -E -e 's,(const char\*) const (helpstring),\1 \2,g' \
${WRKSRC}/DebugCmds.h
pre-configure:
@${ECHO_CMD} "Configure libedit..."
@(cd ${WRKSRC}/libedit && ${MAKE_ENV} ./configure)
pre-build:
@${ECHO_CMD} "Building libedit..."
@(cd ${WRKSRC}/libedit && ${MAKE})
pre-install:
@${MKDIR} ${DATADIR}
post-install:
@${STRIP_CMD} ${PREFIX}/sbin/bro
@${INSTALL_DATA} ${WRKSRC}/policy/*.* ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/bro-CN99.ps ${DOCSDIR}
@${GZIP_CMD} ${DOCSDIR}/bro-CN99.ps
.endif
.include <bsd.port.mk>