Date: Tue, 18 Nov 2014 12:42:25 -0800 From: John-Mark Gurney <jmg@funkthat.com> To: ports@FreeBSD.org Subject: Re: help w/ port just installing files... Message-ID: <20141118204225.GF24601@funkthat.com> In-Reply-To: <20141118203522.GE24601@funkthat.com> References: <20141118033110.GX24601@funkthat.com> <20141118203522.GE24601@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--vSsTm1kUtxIHoa7M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline John-Mark Gurney wrote this message on Tue, Nov 18, 2014 at 12:35 -0800: > John-Mark Gurney wrote this message on Mon, Nov 17, 2014 at 19:31 -0800: > > 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... > > Ok, so here is a port I'm submitting for reivew so that I can commit it. Oops, forgot to run portlist -A on it before submitting... I've fixed the direct use of chmod, mkdir and cp... I moved the MASTER_SITES and DISTFILES to the earlier section... Now portlint only says: WARN: Makefile: [25]: possible use of "${CHMOD}" found. Use @owner/@group operators in pkg-plist instead. FATAL: Makefile: extra item "BASE_URL" placed in the PORTNAME section. WARN: Makefile: Consider defining LICENSE. I can't do much about the CHMOD warning as that is necessary unless we want world writable files installed by the package... I could move BASE_URL to after the COMMENT, and it would work (because make), but I find that less that readable... Attached is the new Makefile... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." --vSsTm1kUtxIHoa7M Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Makefile # Created by: John-Mark Gurney <jmg@FreeBSD.org> # $FreeBSD$ PORTNAME= nist-kat DISTVERSION= 1.0 CATEGORIES= security 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 MAINTAINER= jmg@FreeBSD.org COMMENT= Collection of NIST's Know Answer Test Vectors #LICENSE= PUBLICDOMAIN # We want each dist file in it's own subdir EXTRACT_CMD= ${MKDIR} ${PORTNAME}/$${file%.zip} && ${TAR} EXTRACT_AFTER_ARGS=-C ${PORTNAME}/$${file%.zip} && \ ${CHMOD} -R a-w ${PORTNAME}/$${file%.zip} NO_BUILD= NO_WRKSUBDIR= do-install: ${MKDIR} ${STAGEDIR}${LOCALBASE}/share && \ ${CP} -Rp ${WRKSRC}/${PORTNAME} ${STAGEDIR}${LOCALBASE}/share .include <bsd.port.mk> --vSsTm1kUtxIHoa7M--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141118204225.GF24601>