# New ports collection makefile for:	rlytest
# Date created:		16 January 1999
# Whom:			Paul Chvostek <paul@it.ca>
#
# $FreeBSD: ports/mail/rlytest/Makefile,v 1.11 2003/02/21 12:42:23 knu Exp $
#

PORTNAME=	rlytest
PORTVERSION=	1.22
CATEGORIES=	mail security
MASTER_SITES=	http://www.unicom.com/sw/rlytest/
DISTNAME=	${PORTNAME}
EXTRACT_SUFX=
EXTRACT_ONLY=   # defined

MAINTAINER=	paul@it.ca
COMMENT=	Test an SMTP host for third-party relay

USE_PERL5=	yes

NO_WRKSUBDIR=   yes

MAN1=           rlytest.1

pre-patch:
	perl -pe 's,^#!/usr/local/bin/perl$$,#!/usr/bin/perl,' < ${_DISTDIR}${DISTFILES} > ${WRKSRC}/rlytest

do-build:
	pod2man ${WRKSRC}/rlytest > ${WRKSRC}/rlytest.1

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/rlytest ${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/rlytest.1 ${PREFIX}/man/man1/

post-install:
	${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
