summaryrefslogtreecommitdiff
path: root/net/dhcpd-pools/Makefile
blob: 7d0bb935b6ca26d3921a4af8d7b9be49facc22a8 (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
PORTNAME=	dhcpd-pools
PORTVERSION=	3.1
CATEGORIES=	net
MASTER_SITES=	SF/${PORTNAME} \
		ZI

MAINTAINER=	zi@FreeBSD.org
COMMENT=	Tool to analyze isc-dhcp pool usage based on leases

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${LOCALBASE}/include/uthash.h:devel/uthash

USES=		charsetfix shebangfix tar:xz
USE_CSTD=	c99
SHEBANG_FILES=	contrib/snmptest.pl
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-dhcpd-conf=${LOCALBASE}/etc/dhcpd.conf \
		--with-dhcpd-leases=/var/db/dhcpd/dhcpd.leases \
		--with-uthash=${LOCALBASE}/include
MAKE_JOBS_UNSAFE=	yes

PORTDATA=	snmptest.pl

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e '/features.h/d' ${WRKSRC}/src/getdata.c

.include <bsd.port.mk>