mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# Created by: John-Mark Gurney <jmg@FreeBSD.org>
|
|
|
|
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>
|