summaryrefslogtreecommitdiffstats
path: root/security/bro/Makefile
blob: 889d92229ff57cde1deddf033a61dc3d40368e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# 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

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_BISON=	yes
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>
OpenPOWER on IntegriCloud