From owner-freebsd-ports@FreeBSD.ORG Tue Nov 18 20:42:27 2014 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0198BFA4 for ; Tue, 18 Nov 2014 20:42:26 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C7EF86A for ; Tue, 18 Nov 2014 20:42:26 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id sAIKgPLW065779 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 18 Nov 2014 12:42:26 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id sAIKgP7p065778 for ports@FreeBSD.org; Tue, 18 Nov 2014 12:42:25 -0800 (PST) (envelope-from jmg) Date: Tue, 18 Nov 2014 12:42:25 -0800 From: John-Mark Gurney To: ports@FreeBSD.org Subject: Re: help w/ port just installing files... Message-ID: <20141118204225.GF24601@funkthat.com> Mail-Followup-To: John-Mark Gurney , ports@FreeBSD.org References: <20141118033110.GX24601@funkthat.com> <20141118203522.GE24601@funkthat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="vSsTm1kUtxIHoa7M" Content-Disposition: inline In-Reply-To: <20141118203522.GE24601@funkthat.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Tue, 18 Nov 2014 12:42:26 -0800 (PST) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2014 20:42:27 -0000 --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 # $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 --vSsTm1kUtxIHoa7M--