aboutsummaryrefslogtreecommitdiffstats
path: root/security/bro/Makefile
blob: 6f4d739e0fadafa748066151f73255cd507046cd (plain) (blame)
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
# 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}" CFLAGS="${CFLAGS}"
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --libdir=${PREFIX}/share
USE_BISON=  yes
USE_PERL5=  yes

post-extract:
    @(cd ${WRKSRC} && ${TAR} xfvz libedit.src.tar.gz > /dev/null)

post-patch:
    @${REINPLACE_CMD} -e 's|CFLAGS+=-g -O0||g; \
        s|CC=gcc||' \
        ${WRKSRC}/libedit/Makefile.in \
        ${WRKSRC}/libedit/Makefile

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>