# New ports collection makefile for:	bsnmp-regex
# Date created:				11 February 2007
# Whom:					brock@cotcomsol.com
#
# $FreeBSD: ports/net-mgmt/bsnmp-regex/Makefile,v 1.4 2010/06/05 19:43:07 miwi Exp $
#

PORTNAME=	bsnmp-regex
PORTVERSION=	0.5
CATEGORIES=	net-mgmt
MASTER_SITES=	http://memberwebs.com/stef/software/bsnmp-regex/

MAINTAINER=	brock@cotcomsol.com
COMMENT=	A bsnmpd module allowing creation of counters from log files

GNU_CONFIGURE=	yes

OPTIONS=	PCRE	"Use PCRE instead of the default regex library"	Off

.include <bsd.port.options.mk>

.if defined(WITH_PCRE)
LIB_DEPENDS+=		pcre.0:${PORTSDIR}/devel/pcre
CONFIGURE_ARGS+=	--enable-pcre
.else
CONFIGURE_ARGS+=	--disable-pcre
.endif

MAN1=		sockin.1
MAN5=		bsnmp-regex.conf.5
MAN8=		bsnmp-regex.8

PLIST_FILES=	bin/sockin lib/snmp_regex.so lib/snmp_regex.so.0 \
		lib/snmp_regex.a lib/snmp_regex.la

.include <bsd.port.mk>
