summaryrefslogtreecommitdiff
path: root/net/dhcpd-pools/Makefile
blob: 65d3567e9c9187b969a33cccb3f4fad918ab3d16 (plain)
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
# $NetBSD: Makefile,v 1.3 2011/07/20 07:03:53 adam Exp $

DISTNAME=	dhcpd-pools-2.16
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=dhcpd-pools/}

MAINTAINER=	adam@NetBSD.org
HOMEPAGE=	http://dhcpd-pools.sourceforge.net/
COMMENT=	ISC dhcpd lease analysis and reporting
LICENSE=	gnu-gpl-v3

PKG_DESTDIR_SUPPORT=	user-destdir

USE_LANGUAGES=		c
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-dhcpd-leases=${VARBASE}/db/dhcpd.leases

BUILD_DEFS+=		VARBASE
REPLACE_PERL=		contrib/snmptest.pl
USE_TOOLS+=		perl:run

SUBST_CLASSES+=		fix-name
SUBST_STAGE.fix-name=	pre-configure
SUBST_MESSAGE.fix-name=	Removing program_invocation_short_name.
SUBST_FILES.fix-name=	src/dhcpd-pools.c src/other.c src/sort.c
SUBST_SED.fix-name=	-e 's,program_invocation_short_name,"dhcpd-pools",g'

.include "../../mk/bsd.pkg.mk"