aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/bsnmp-regex/Makefile
blob: 66611a113f7eb8a679d2cb3a0f0caf9b3d8da770 (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
# Created by: brock@cotcomsol.com

PORTNAME=	bsnmp-regex
PORTVERSION=	0.6
PORTREVISION=	2
CATEGORIES=	net-mgmt
MASTER_SITES=	LOCAL/olivier

MAINTAINER=	koobs@FreeBSD.org
COMMENT=	bsnmpd module allowing creation of counters from log files

LICENSE=	BSD3CLAUSE

GNU_CONFIGURE=	yes
CPPFLAGS+=	"-I${LOCALBASE}/include"
INSTALL_TARGET=	install-strip
USES=		libtool

OPTIONS_DEFINE=	DEBUG PCRE
PCRE_DESC=	Use PCRE instead of the default regex library

PLIST_FILES=	bin/sockin lib/snmp_regex.so lib/snmp_regex.so.0 \
		lib/snmp_regex.so.0.0.0 lib/snmp_regex.a man/man1/sockin.1.gz \
		man/man5/bsnmp-regex.conf.5.gz \
		man/man8/bsnmp-regex.8.gz

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.else
CONFIGURE_ARGS+=--disable-debug
.endif

.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+=		libpcre.so:devel/pcre
CONFIGURE_ARGS+=	--enable-pcre
.else
CONFIGURE_ARGS+=	--disable-pcre
.endif

.include <bsd.port.mk>