freebsd-ports/security/nist-kat/Makefile
Li-Wen Hsu 049525d726 Fix fetch
Sponsored by:	The FreeBSD Foundation
2019-11-11 05:43:23 +00:00

42 lines
1.1 KiB
Makefile

# Created by: John-Mark Gurney <jmg@FreeBSD.org>
# $FreeBSD$
PORTNAME= nist-kat
DISTVERSION= 0.0.2015.02.23
PORTREVISION= 1
CATEGORIES= security
BASE_URL= https://csrc.nist.gov/groups/STM/cavp/documents
MASTER_SITES= ${BASE_URL}/aes/:aes
MASTER_SITES+= ${BASE_URL}/des/:des
MASTER_SITES+= ${BASE_URL}/mac/:mac
MASTER_SITES+= ${BASE_URL}/shs/:shs
DISTFILES= KAT_AES.zip:aes
DISTFILES+= XTSTestVectors.zip:aes
DISTFILES+= KAT_TDES.zip:des
DISTFILES+= ccmtestvectors.zip:mac
DISTFILES+= gcmtestvectors.zip:mac
DISTFILES+= hmactestvectors.zip:mac
DISTFILES+= shabytetestvectors.zip:shs
MAINTAINER= jmg@FreeBSD.org
COMMENT= Collection of NIST's Known Answer Test Vectors
LICENSE= PD
# We want each dist file in it's own subdir
EXTRACT_AFTER_ARGS= -s ":^:nist-kat/$${file%.zip}/:"
NO_BUILD=
NO_WRKSUBDIR=
post-extract:
# The SHA test distribution already includes a subdir
(cd ${WRKSRC}/${PORTNAME} && ${MV} shabytetestvectors tmp && \
${MV} tmp/shabytetestvectors . && ${RMDIR} tmp)
do-install:
${MKDIR} ${STAGEDIR}${LOCALBASE}/share && \
(cd ${WRKSRC}/${PORTNAME} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>