# New ports collection makefile for:	gwhois
# Date created:		28 August 2007
# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD: ports/net/gwhois/Makefile,v 1.3 2007/10/13 18:02:33 sat Exp $
#

PORTNAME=	gwhois
PORTVERSION=	20070926
CATEGORIES=	net
MASTER_SITES=	http://gwhois.de/gwhois/ CENKES
DISTNAME=	${PORTNAME}_${DISTVERSION}

MAINTAINER=	infofarmer@FreeBSD.org
COMMENT=	Flexible whois client and proxy

RUN_DEPENDS=	p5-libwww>=5.805:${PORTSDIR}/www/p5-libwww \
		lynx:${PORTSDIR}/www/lynx \
		curl:${PORTSDIR}/ftp/curl

NO_BUILD=	yes
USE_PERL5_RUN=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
PLIST_FILES=	bin/${PORTNAME} %%DATADIR%%/pattern
PLIST_DIRS=	%%DATADIR%%
MAN1=	${PORTNAME}.1
PORTDOCS=	TODO README.RIPE

post-patch:
	@${REINPLACE_CMD} -e 's|/etc/gwhois|${DATADIR}|g'\
		${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.1

do-install:
	@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
	@${INSTALL} -d ${DATADIR}/
	@${INSTALL_DATA} ${WRKSRC}/pattern ${DATADIR}/
.ifndef NOPORTDOCS
	@${INSTALL} -d ${DOCSDIR}/
	@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif

.include <bsd.port.mk>


syntax highlighted by Code2HTML, v. 0.9.1