# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD: tags/RELEASE_11_1_0/security/tthsum/Makefile 419856 2016-08-08 14:46:25Z ehaupt $

PORTNAME=	tthsum
PORTVERSION=	1.3.2
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	http://tthsum.devs.nu/pkg/ \
		LOCAL/ehaupt

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Command-line utility for generating and checking TTH message digests

LICENSE=	GPLv3

CONFLICTS=	microdc2-[0-9]*

USES=		gmake

PLIST_FILES=	bin/tthsum man/man1/tthsum.1.gz

MAKE_ENV+=	STAGEDIR=${STAGEDIR}
WRKSRC=		${WRKDIR}/${PORTNAME}

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

regression-test: build
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} test runtest

.include <bsd.port.mk>
