diff options
Diffstat (limited to 'security/bro/Makefile')
-rw-r--r-- | security/bro/Makefile | 56 |
1 files changed, 32 insertions, 24 deletions
diff --git a/security/bro/Makefile b/security/bro/Makefile index c90fce11a03d..10120d82896b 100644 --- a/security/bro/Makefile +++ b/security/bro/Makefile @@ -7,43 +7,51 @@ # PORTNAME= bro -PORTVERSION= 0.5a +PORTVERSION= 0.8 CATEGORIES= security -#MASTER_SITES= ftp://ee.lbl.gov/ -#see http://www-nrg.ee.lbl.gov/bro-info.html -DISTNAME= vp-bro-0.5-alpha +MASTER_SITES= ftp://ftp.ee.lbl.gov/ +DISTNAME= ${PORTNAME}-pub-${PORTVERSION}-current MAINTAINER= ports@FreeBSD.org COMMENT= System for detecting Network Intruders in real-time -RESTRICTED= "Author wishes Alpha releases not to be distrubted." +WRKSRC= ${WRKDIR}/${PORTNAME}-pub-${PORTVERSION}a37 -.include <bsd.port.pre.mk> - -.if !exists(${DISTDIR}/vp-bro-0.5-alpha${EXTRACT_SUFX}) -IGNORE=is still in alpha test. Please contact Vern Paxson <vern@ee.lbl.gov> to obtain the obtain the Bro source. Put it in ${DISTDIR} as ${DISTFILES} and run make again -.endif - -IS_INTERACTIVE= "manual fetch" -WRKSRC= ${WRKDIR}/bro-pub-0.5a1 -CONFIGURE_ARGS= --libdir=${PREFIX}/share +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: - @${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 + @${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} ${PREFIX}/share/bro + @${MKDIR} ${DATADIR} post-install: @${STRIP_CMD} ${PREFIX}/sbin/bro - @${INSTALL_DATA} ${WRKSRC}/policy/*.* ${PREFIX}/share/bro + @${INSTALL_DATA} ${WRKSRC}/policy/*.* ${DATADIR} .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 + @${MKDIR} ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/doc/bro-CN99.ps ${DOCSDIR} + @${GZIP_CMD} ${DOCSDIR}/bro-CN99.ps .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |