On Mon, 17 Nov 2014 19:31:10 -0800 John-Mark Gurney <j...@funkthat.com> wrote
> So, I'm trying to get a port that will install the NIST's KAT vectors > so I can write a test program using them... > > I don't know what is the best way to handle plist creation and > installation. I have this Makefile so far: > # Created by: John-Mark Gurney <j...@freebsd.org> > # $FreeBSD$ > > PORTNAME= nist-kat > DISTVERSION= 1.0 > CATEGORIES= security > > MAINTAINER= j...@freebsd.org > COMMENT= Collection of NIST's Know Answer Test Vectors > > #LICENSE= PUBLICDOMAIN > > BASE_URL= http://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 > > DISTFILES= KAT_AES.zip:aes > DISTFILES+= XTSTestVectors.zip:aes > DISTFILES+= KAT_TDES.zip:des > DISTFILES+= gcmtestvectors.zip:mac > DISTFILES+= hmactestvectors.zip:mac > > # We want each dist file in it's own subdir > EXTRACT_CMD= mkdir $${file%.zip}; ${TAR} > EXTRACT_AFTER_ARGS=-C $${file%.zip} > > NO_BUILD= > NO_WRKSUBDIR= > > do-install: > mkdir -p ${PREFIX}/share/nist-kat && \ > cp -Rp ${WRKSRC}/ ${PREFIX}/share/nist-kat > > .include <bsd.port.mk> > > But the cp command copies more than I want, including the staging dir. > > Does someone know an easier way to do this? > > Thanks. I don't know the exact layout you have in ${WRKSRC} But it might be as simple as: (cd ${WRKSRC} && cp -Rp . ${STAGEDIR}${PREFIX}/share/nist-kat) or some slight derivative. :) Hope this helps. --Chris > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"