aboutsummaryrefslogtreecommitdiffstats
path: root/security/bro/Makefile
blob: ebd73722220820915b7389717093ea1a25e4f417 (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
# ex:ts=8
# Ports collection makefile for:  bro
# Version required:           0.3alpha
# Date created:           Sat Feb 28, 1998
# Whom:               David O'Brien (obrien@FreeBSD.org)
#
# $Id: Makefile,v 1.3 1998/03/03 09:56:10 asami Exp $
#

DISTNAME=   vp-bro-0.3-alpha
PKGNAME=    bro-0.3a
CATEGORIES= security net
MASTER_SITES=   ftp://ee.lbl.gov/

MAINTAINER=     obrien@FreeBSD.org

RESTRICTED= "Author wishes Alpha releases not to be distrubted."

WRKSRC=     ${WRKDIR}/bro-0.3
CONFIGURE_ARGS= --libdir=${PREFIX}/share
GNU_CONFIGURE=  yes

do-fetch:
    @if [ ! -f ${DISTDIR}/vp-bro-0.3-alpha${EXTRACT_SUFX} ]; then \
      echo ""; \
      echo "Please contact Vern Paxson <vern@ee.lbl.gov>"; \
      echo "to obtain the obtain the Bro source.  Put it in"; \
      echo "${DISTDIR} as vp-bro-0.3-alpha${EXTRACT_SUFX}"; \
      echo "and run make again"; \
      echo ""; \
      exit 1;\
    fi

post-patch:
    @${MV} ${WRKSRC}/util.cc ${WRKSRC}/util.cc.in
    @${SED} -e "s|/usr/src/rtsg/bro/policy:/usr/local/lib/bro|${PREFIX}/share/bro|" \
        ${WRKSRC}/util.cc.in >${WRKSRC}/util.cc
pre-install:
    @${MKDIR} ${PREFIX}/share/bro

post-install:
    @strip ${PREFIX}/sbin/bro
    @${INSTALL_DATA} ${WRKSRC}/policy/* ${PREFIX}/share/bro
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/bro
    ${INSTALL_MAN} ${WRKSRC}/doc/bro-usenix98-revised.ps \
        ${PREFIX}/share/doc/bro
    @${GZIP_CMD} ${PREFIX}/share/doc/bro/bro-usenix98-revised.ps
.endif

.include <bsd.port.mk>