# ex:ts=8
# Ports collection makefile for:  dlint
# Date created:			  Wed Dec 23, 1998
# Whom:				  David O'Brien (obrien@NUXI.com)
#
# $FreeBSD$
#

PORTNAME=	dlint
PORTVERSION=	1.4.0
CATEGORIES=	net
MASTER_SITES=	http://www.domtools.com/pub/
DISTNAME=	dlint${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org

NO_BUILD=	yes
MAN8=		dlint.8

do-configure:
	@${PERL} -pi.orig -e 's:/usr/local/bin:${PREFIX}/sbin:g' ${WRKSRC}/dlint
	@${SED} -e 's:DLINT 1:DLINT 8:g' ${WRKSRC}/dlint.1  >${WRKSRC}/dlint.8

do-install:
	cd ${WRKSRC} ; ${INSTALL_SCRIPT} dlint digparse ${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/dlint.8 ${PREFIX}/man/man8
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/dlint
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dlint
.endif

.include <bsd.port.mk>
