# New ports collection makefile for:	dhcp6
# Date created:		Sept 24, 2008
# Whom:			laffer1
#
# $MidnightBSD$

PORTNAME=	dhcp6
PORTVERSION=	20080615.2
PORTREVISION=	0
DISTVERSIONPREFIX=	v
CATEGORIES=	net

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	KAME DHCP6 client, server, and relay

LICENSE=	bsd3
LICENSE_FILE=	${WRKSRC}/COPYRIGHT

USE_GITHUB=	yes
GH_ACCOUNT=	hrs-allbsd
GH_PROJECT=	wide-dhcpv6
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--sysconfdir=${LOCALBASE}/etc \
		--with-localdbdir=/var/db
USE_RC_SUBR=	dhcp6c dhcp6relay dhcp6s
PORTDOCS=	README

OPTIONS_DEFINE=	DOCS

.include <bsd.mport.options.mk>

post-install:
	cd ${WRKSRC} && ${INSTALL_DATA} \
	    dhcp6c.conf.sample dhcp6s.conf.sample \
	    ${PREFIX}/etc
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>
