# New ports collection makefile for:    newbie
# Date created:         6 May 1998
# Whom:                 itojun@itojun.org
# Modified by:		doi@sfc.wide.ad.jp	(1999/08/16)
#
# $KAME: Makefile,v 1.3 1999/12/07 10:27:45 sumikawa Exp $
#

PORTNAME=	newbie
PORTVERSION=	0.22
CATEGORIES=	net
MASTER_SITES=   http://www.sfc.wide.ad.jp/~doi/softs/newbie/

MAINTAINER=     itojun@itojun.org

RESTRICTED=	"alpha test period, no redistribution allowed"
WRKSRC=		${WRKDIR}/${DISTNAME}/src
ALL_TARGET=	default

GNU_CONFIGURE=	yes
USE_AUTOCONF=	yes

HTDOCS=	aaaa-L.gif contrib.html copyrights.txt features-j.html \
	features.html guide.html index-j.html index.html \
	install-j.html install.html libnewres.html ncl.html \
	nconsole.html newbie.html newkey.html template-j.html \
	template.html todo.html whatisnew.html zone2db.html
SAMPLE=	newbie.boot res_core.conf root.cache

do-install:
	for i in newbie cnameupd zone2db nconsole ncl nsdump newkey; do \
		${INSTALL_PROGRAM} ${WRKSRC}/$$i ${PREFIX}/sbin; \
	done
	for i in newbie.kill; do \
		${INSTALL_SCRIPT} ${WRKSRC}/$$i ${PREFIX}/sbin; \
	done
	for i in libnewres.a; do \
		${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/lib; \
	done
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/newbie
	${MKDIR} ${PREFIX}/share/doc/newbie/html
	${MKDIR} ${PREFIX}/share/doc/newbie/sample
	for i in ${HTDOCS}; do \
		${INSTALL_DATA} ${WRKSRC}/../docs/html/$$i ${PREFIX}/share/doc/newbie/html; \
	done
	for i in ${SAMPLE}; do \
		${INSTALL_DATA} ${WRKSRC}/../sample/$$i ${PREFIX}/share/doc/newbie/sample; \
	done
	@${SED} -e "s#/usr/local#${PREFIX}#" ${PKGDIR}/MESSAGE
.endif

.include <bsd.port.mk>
