1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/security/bsmtrace/Makefile
Christian S.J. Peron 701d7bd70a Update bsmtrace to 1.1.0.
1.1.0 fixes a pretty serious bug which resulted in BSM records without
pathname tokens being processed in some cases.

Additionally, timeout-window and timeout-probability features were added
to allow people defining sequences with timeouts to add an element of
randomness to the timeout, in theory making it more difficult for people
to attack.

timeout 60;
timeout-window 10;
timeout-probability 65;

Basically equates to:

"This sequence should timeout in a random amount of time, where the
 probability of the timeout being from 60-70 is 65%"

It should be noted that there is a probability of 35% that the value will
be completely random.  So naturally, the lower the timeout-probability, the
more random the timeout will be.

Approved by:	tmclaugh
2007-10-24 01:08:36 +00:00

47 lines
1.0 KiB
Makefile

# New ports collection makefile for: bsmtrace
# Date created: 13 March 2007
# Whom: alm
#
# $FreeBSD$
#
PORTNAME= bsmtrace
PORTVERSION= 1.1.0
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= csjp
MAINTAINER= alm@FreeBSD.org
COMMENT= BSM based intrusion detection system
SUB_FILES= pkg-message
MAN1= bsmtrace.1
MAN5= bsmtrace.conf.5
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 602000
IGNORE= release 6.2-RELEASE or later is required
.endif
.if defined(WITH_PCRE)
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
MAKE_ENV+= PCRE=1
.endif
pre-build:
${REINPLACE_CMD} -e \
's,/etc/bsmtrace.conf,${PREFIX}/etc/bsmtrace.conf,' \
${WRKSRC}/config.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bsmtrace ${PREFIX}/sbin
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/bsmtrace.conf ${EXAMPLESDIR}
${INSTALL_MAN} ${WRKSRC}/bsmtrace.1 ${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/bsmtrace.conf.5 ${MAN5PREFIX}/man/man5
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>