# New ports collection makefile for:	t-prot
# Date created:		2004-10-03
# Whom:			Sergei Kolobov <sergei@FreeBSD.org>
#
# $FreeBSD: branches/RELEASE_8_4_0/mail/t-prot/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	t-prot
PORTVERSION=	2.101
CATEGORIES=	mail
MASTER_SITES=	http://www.escape.de/~tolot/mutt/t-prot/downloads/ \
		LOCAL/sergei

MAINTAINER=	torres.g.alex@gmail.com
COMMENT=	TOFU Protection - Display Filter for RFC822 messages

RUN_DEPENDS=	p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long \
	p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext

USE_PERL5=	yes
NO_BUILD=	yes

MAN1=		t-prot.1
DOCS=		ChangeLog README TODO

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/t-prot ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/t-prot.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTEXAMPLES)
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/contrib/* ${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>
