aboutsummaryrefslogblamecommitdiff
path: root/security/nist-kat/Makefile
blob: 1c659997b20bf972b1fc49a6942e0c1f2da7bc36 (plain) (tree)
1
2
3
4
5
6
7
8
9

                              
                 
                        
                                                               


                                    
                                    


                                      
                                      

                                       
                                          

                               
                                                              
 
                  

                                           
                                                        



             




                                                                      




                                                                               
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>